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()
)

Arguments

name

string

type

string

unit

string

initial_value

number

initial_expression

Initial expression to set, as string, finite numeric, or logical.

expression

Expression to set, as string, finite numeric, or logical.

model

a model object

Value

quantity key

Details

Arguments priority from lowest to highest is initial_value, initial_expression.

The online article on model building provides some further context.