Post · 1 min read· pp. 40–42

Units

JSBSim uses English units for internal calculations almost exclusively. However, it is possible to input some parameters in the configuration file using different units. In fact, to avoid confusion, it is recommended that the unit always be specified. Units are specified using the unit attribute. For instance, the specification for the wingspan looks like this:

text
<wingspan unit="FT"> 35.8 </wingspan>

The above statement specifies a wingspan of 35.8 feet. The following statement specifying the wingspan in meters would result in the wingspan being converted to 35.8 feet as it was read in:

text
<wingspan unit="M"> 10.91 </wingspan>

The two statements for wingspan are effectively equivalent.

The following units are currently supported in JSBSim:

Length

unit=unit
FTft
INin
Mm
KMkm

Area

unit=unit
M2m²
FT2ft²

Volume

unit=unit
FT3ft³
CCcm³
M3m³
LTRl

Mass and Weight

unit=unit
LBSlbm
KGkg

Moments of Inertia

unit=unit
SLUG*FT2slug ft²
KG*M2kg m²

Angles

unit=unit
RADrad
DEGdeg

Spring Force

unit=unit
N/MN/m
LBS/FTlb/ft

Damping Force

unit=unit
N/M/SECN/(m s)
LBS/FT/SEClb/(ft s)

Power

unit=unit
WATTSW
HPHp

Force

unit=unit
LBSlb
NN

Velocity

unit=unit
KTSkts
FT/SECft/s
M/Sm/s

Torque

unit=unit
N*MN m
FT*LBSlb ft

Pressure

unit=unit
PSFlb/ft²
PSIlb/in²
ATMatm
PAN/m²
INHGin HG