newCompartment
creates a new compartment.
newCompartment(
name,
type = c("fixed", "assignment", "ode"),
dimensionality = NULL,
initial_size = NULL,
initial_expression = NULL,
expression = NULL,
model = getCurrentModel()
)
string
string
Dimensionality of the compartment (0D, 1D, 2D, 3D), as number.
number
Initial expression to set, as string, finite numeric, or logical.
Expression to set, as string, finite numeric, or logical.
a model object
Arguments priority from lowest to highest is initial_size
, initial_expression
.
The online article on model building provides some further context.
Other compartment functions:
deleteCompartment()
,
entity_finders
,
getCompartmentReferences()
,
getCompartments()
,
setCompartments()