14.4. Adding a New Unit System

You can add a new unit system by adding a new unitSystem element to the units/unitSystems element. This element must have an attribute name that holds the value of unitSystem name. It may also have an optional attribute baseSystem that refers to the base unit system to use if a requested quantity is not found in the current unit system. If this attribute is not specified, the base system is assumed to be SI. This attribute is useful if you want to create a new unit system that only differs in some minor ways from an existing system. In this case, you only need to specify the quantities that differ from the base system in the new unit system.

The unitSystem element also has a number of child quantity elements. Each quantity element has attributes name and unit. This specifies the unit name to be used for a particular quantity. For example, Figure 14.4: Unit System shows a sample listing for a unitSystem named British. The unit for the quantity energy is BTU. Thus if the user has specified the British unit system as the preferred unit system in their user preferences, then the value of property with quantity energy will be displayed in BTU units.

Figure 14.4:  Unit System

<unitSystem name="British">
			<quantity name="forcePerArea" unit="lbf/ft2"/>
			<quantity name="massTransferRate" unit="kgmol/ft3-s"/>
			<quantity name="force" unit="lbf"/>
			<quantity name="energy" unit="BTU"/>


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