Set or add initial conditions to an existing Initial Conditions building block.
Source:R/utilities-building-block.R
setInitialConditions.RdThis functions allows adding or modifying initial condition entries.
Usage
setInitialConditions(
initialConditionsBuildingBlock,
quantityPaths,
quantityValues,
scaleDivisors = 1,
isPresent = TRUE,
negativeValuesAllowed = FALSE,
formulas = NULL
)Arguments
- initialConditionsBuildingBlock
A
BuildingBlockobject of typeInitial Conditions. The entries will be added to or set in this building block.- quantityPaths
A list of full paths of the quantities (usually molecules). Should contain all path elements and the molecule name, separated by
|.- quantityValues
A list of values for the quantities. Should be
NULLif the argumentformulasis provided. If notNULL, the length of this list should be equal to the length ofquantityPaths.- scaleDivisors
Either a single value or a list of scale divisors for the quantities. If only single value is provided, the value will be set for all quantities. If a list is provided, the length of this list should be equal to the length of
quantityPaths.- isPresent
Either a single value (
TRUEorFALSE) or a list of boolean values indicating whether the quantity is present or not. If a list is provided, the length of this list should be equal to the length ofquantityPaths.- negativeValuesAllowed
A single boolean value or a list of boolean values indicating whether negative values are allowed for the quantities. If a list is provided, the length of this list should be equal to the length of
quantityPaths.- formulas
A list of
Formulaobjects that will be set for the quantities. Mixing offormulasandquantityValuesis not allowed. Ifformulasis provided,quantityValuesshould beNULL. If notNULL, the length of this list should be equal to the length ofquantityPaths.