Skip to contents

Flow and Stream are the values of the connect metadata of connector variables: Variable("i", t, connect = Flow). In a connection, flow variables sum to zero (outside connectors with a negative sign) and all other variables, of type "Equality" (the default), are set equal. Stream variables carry quantities transported by a flow and are read with instream(). ModelingToolkit's Equality is the string "Equality" here, since the name is taken by symcompR.

Usage

Flow

Stream

Format

Character strings.

Examples

i <- Variable("i", t_nounits, connect = Flow)
getconnect(i)
#> [1] "Flow"