Extend an Initial Conditions Building Block (BB) with new entries for molecules from a molecules BB in all physical containers of a spatial structure BB.
Source:R/utilities-building-block.R
extendInitialConditions.RdIf an initial condition for the combination container, molecule already exists in the IC-BB, the value will be kept AS IS.
Usage
extendInitialConditions(
initialConditionsBuildingBlock,
spatialStructureBB,
moleculesBB,
moleculeNames = NULL
)Arguments
- initialConditionsBuildingBlock
A
BuildingBlockobject of typeInitial Conditions.- spatialStructureBB
A
BuildingBlockobject of typeSpatial Structure. Entries will be created for the selected molecules in all physical containers of this spatial structure.- moleculesBB
A
BuildingBlockobject of typeMolecules. The entries will be created for all molecules from this building block, or for a subset of molecules defined in themoleculeNamesargument.- moleculeNames
Optional list of molecule names. If provided, only the molecules with these names will be added to the
initialConditionsBuildingBlock.