Automatically Appending Units

When you enter a dimensioned number, link or expression into an input field which expects (based on the element’s display units) a different set of dimensions, the text will be displayed in red, indicating that the input is invalid. For example, if you specify the display units for an Expression element as days, and you define it as “10 ft”, GoldSim will indicate that there is an error.

Note, however, that if you enter a dimensionless number into an input field that expects a dimensioned input, rather than treating the input as invalid, GoldSim will automatically apply the correct dimensionality to the number when you close the dialog by appending the appropriate units (based on the specified display units for the element). For example, if you specify the display units for an Expression element as days, and you define it as “10”, GoldSim will automatically append “days” to the entry when you close the dialog.

Note that GoldSim will only do this for dimensionless numbers. Hence, if you specify that the display units for an Expression element as days, and you define it as “A”, GoldSim will indicate that there is an error (unless A has dimensions of time). Similarly, if you define the element as an expression (e.g., 3 + 4), GoldSim will not automatically append units and will indicate that there is an error.

Related Topics…