Skip to contents

Names of the metadata fields of variables (for getmetadata() and setmetadata()) and of systems (entries of the metadata list of System()), standing for ModelingToolkit's metadata key types: VariableUnit is "unit", VariableBounds "bounds", SymScope "scope", MTKVariableTypeCtx "kind", and so on. VariableType maps MTK's variable type enum (VARIABLE, PARAMETER, BROWNIAN, POISSONIAN) to the kinds used by modelcompR. ProblemTypeCtx, MiscSystemData, SymbolicADDisallowed and MTKVerbosityCtx are system metadata keys.

Usage

VariableBounds

VariableConnectType

VariableDescription

VariableInput

VariableIrreducible

VariableMisc

VariableOutput

VariableStatePriority

VariableUnit

MTKVariableTypeCtx

SymScope

VariableType

ProblemTypeCtx

MiscSystemData

SymbolicADDisallowed

MTKVerbosityCtx

Format

Character strings (VariableType a named character vector).

Examples

x <- Variable("x", t_nounits, unit = "m")
getmetadata(x, VariableUnit)
#> [1] "m"
sys <- System(list(), t_nounits, name = "s",
              metadata = stats::setNames(list("my data"), MiscSystemData))
get_metadata(sys)[[MiscSystemData]]
#> [1] "my data"