newGlobalQuantity creates a new global quantity.
newGlobalQuantity(
name,
type = c("fixed", "assignment", "ode"),
unit = NULL,
initial_value = NULL,
initial_expression = NULL,
expression = NULL,
model = getCurrentModel()
)string
string
string
number
Initial expression to set, as string, finite numeric, or logical.
Expression to set, as string, finite numeric, or logical.
a model object
quantity key
Arguments priority from lowest to highest is initial_value, initial_expression.
The online article on model building provides some further context.
Other global quantity functions:
deleteGlobalQuantity(),
entity_finders,
getGlobalQuantities(),
getGlobalQuantityReferences(),
setGlobalQuantities()