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:
<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:
<wingspan unit="M"> 10.91 </wingspan>
The two statements for wingspan are effectively equivalent.
The following units are currently supported in JSBSim:
Length
|
unit |
|---|---|
|
ft |
|
in |
|
m |
|
km |
Area
|
unit |
|---|---|
|
m² |
|
ft² |
Volume
|
unit |
|---|---|
|
ft³ |
|
cm³ |
|
m³ |
|
l |
Mass and Weight
|
unit |
|---|---|
|
lbm |
|
kg |
Moments of Inertia
|
unit |
|---|---|
|
slug ft² |
|
kg m² |
Angles
|
unit |
|---|---|
|
rad |
|
deg |
Spring Force
|
unit |
|---|---|
|
N/m |
|
lb/ft |
Damping Force
|
unit |
|---|---|
|
N/(m s) |
|
lb/(ft s) |
Power
|
unit |
|---|---|
|
W |
|
Hp |
Force
|
unit |
|---|---|
|
lb |
|
N |
Velocity
|
unit |
|---|---|
|
kts |
|
ft/s |
|
m/s |
Torque
|
unit |
|---|---|
|
N m |
|
lb ft |
Pressure
|
unit |
|---|---|
|
lb/ft² |
|
lb/in² |
|
atm |
|
N/m² |
|
in HG |