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
extendInitialConditionsBB.RdIf an initial condition for the combination <container, molecule> already exists in the IC-BB, the value will be kept AS IS.
Usage
extendInitialConditionsBB(
initialConditionsBuildingBlock,
spatialStructureModule,
moleculesModule,
moleculeNames = NULL
)Arguments
- initialConditionsBuildingBlock
A
BuildingBlockobject of typeInitial Conditions.- spatialStructureModule
A module with a spatial structure building block. Entries will be created for the selected molecules in all physical containers of the spatial structure.
- moleculesModule
A module with a molecules building block. The entries will be created for all molecules from this building block, or for a subset of molecules defined in the
moleculeNamesargument.- moleculeNames
Optional list of molecule names. If provided, only the molecules with these names will be added to the
initialConditionsBuildingBlock. If a specified molecule is not present in the provided molecules BB, it will be ignored.