MEDYAN.add_diffusing_species!

Tuple{MEDYAN.SysDef, Symbol}

add_diffusing_species!(s::SysDef, name::Symbol; coeff::Float64)

Dynamically add a new diffusing species to the system definition.

Arguments

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

Returns

The modified SysDef.

Throws

  • Error if a diffusing species with the given name already exists.