WOLFRAM SYSTEM MODELER

ConstantPressureRate

Wolfram Language

In[1]:=
SystemModel["SystemModelerExtras.Experimental.Units.Examples.ConstantPressureRate"]
Out[1]:=

Information

Combining the withUnit and inUnit operators to express a pressure in pascal with constant rate of change.

In the variable p1, the coefficients of the affine function of time are given in unscaled units pascal and seconds. This only requires a single use of withUnit for each coefficient.

In the variable p2, the same coefficients are expressed in scaled units hectopascal and hours. This is accomplished by nested uses of withUnit and inUnit for each coefficient; first using withUnit with the unit preferred to express the coefficient, and then using inUnit for converting to the actual unit of the coefficient.