to_mPas function

Requirements.Units.Conversions.to_mPas  ยท source

Icon of to_mPas

Convert from pascal second to millipascal second

Extends Modelica.Units.Icons.Conversion

Convert from pascal second to millipascal second: mPas := 1000*Pas. The input Pas is the value in pascal second (type Modelica.Units.SI.DynamicViscosity), the output mPas the value in millipascal second (type NonSI.DynamicViscosity_mPas). The inverse is from_mPas.

The conversion is a multiplication by a constant factor, without offset, so it converts differences and rates alike; it is exact up to floating-point rounding and has no limits on the input. The function is inlined. A check model uses it to give a variable of the model in the unit in which the requirement states it; see Conversions. Examples.Elementary.Units.Conversions asserts it through the round trip to_mPas(from_mPas(7)).

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
Pas inputSI.DynamicViscosityValue in pascal second

Outputs

NameTypeDescription
mPas outputNonSI.DynamicViscosity_mPasValue in millipascal second