Working with Units in Field Functions

You can include units when defining a field function. Simcenter STAR-CCM+ assumes all physical quantities to be in SI units by default.

However, literal constants can have a unit specification in a different system. The syntax for the quantities is <number units>, for example:

<32 ft/s^2>

$Pressure - <32 psi>

<27 in> + <3 ft>

The units are parsed at run time, so they do not use the Preferred units setting and do not necessarily need to match any of the predefined units that the objects in the Tools > Units manager node represent.

Additionally, "-" binds tighter than "/", so kg/m-s^2 equals (kg)/(m-s^2) not (kg/m)*(s^2).