General

General

If a variable is defined using math non-linear functions on other variables that are defined with units, evaluated values may seem unexpected. For example, variable g is assigned a value of 8 mil. If another variable is introduced using linear math function of variable g, for example Linear_math, which is assigned a value of 2*g, will have an evaluated value of 16 mil. However, if we use non-linear math function, for example sqrt(g*g), the evaluated value will be a unitless value of 0.0002032 which may be confusing for a user (see Fig.1).

    • SolutionSolution
      Participant

      Ansys desktop cannot perform non-linear math operations such as log, sqrt etc. with variables that have units. Software converts values in SI units and perform math operations, resulting in unitless evaluated value of the defined variable. Please see the attached document.

      Attachments:
      1. Math%20funcitions%20in%20variables%20definition.pdf