MEDYAN.add_diffusion_coeff!

Tuple{MEDYAN.SysDef, Symbol, Float64}

add_diffusion_coeff!(s::SysDef, name::Symbol, coeff::Float64)

Update the diffusion coefficient for an existing diffusing species.

The species must already exist in s.diffusing (typically added via add_diffusing_species!.

Arguments

  • s::SysDef: The system definition to modify.
  • name::Symbol: The name of the existing diffusing species.
  • coeff::Float64: The diffusion coefficient in units of nm²/s.

Returns

The modified SysDef.

See also: add_diffusing_species! to add a new species with its diffusion coefficient in one step.