14.2. Adding a New Unit

Engineering Knowledge Manager

Administration Guide | Chapter 14: Units: Defining and Configuring Using XML |

14.1. Schema Definition for Units |  | 14.3. Adding a New Quantity
Prev |  | Next

## 14.2. Adding a New Unit

Units are defined within the `quantity` element in `Units.xml`. Figure 14.3: Quantity and Unit Definition demonstrates how units are defined for the `temperature` quantity. To add a new unit to an existing quantity, simply add a new `unit` element with the following attributes:

- `name`: This is the name of the `unit`. For example, `C` is the name for centigrade unit in Figure 14.3: Quantity and Unit Definition.

- `multFactor`: This is the factor that needs to be multiplied to the unit value to convert it to SI. For example, 1R = 0.555556K. SI units will always have `multFactor` equal to 1.0.

- `addFactor`: This is an optional attribute that needs to be added to the unit value to convert it to SI. For example, 1C = (1+273.15)K. If the `addFactor` is not specified it is assumed to be `0.0`.

Figure 14.3: Quantity and Unit Definition

    <quantity name="temperature">
    			<unit name="K" multFactor="1.000000"/>
    			<unit name="C" multFactor="1.000000" addFactor="273.150000"/>
    			<unit name="R" multFactor="0.555556"/>
    			<unit name="F" multFactor="0.555556" addFactor="459.670000"/>
    </quantity>

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Prev | Up / Contents | Next

Release 18.2 - © ANSYS, Inc. All rights reserved.