-
Notifications
You must be signed in to change notification settings - Fork 5
Physics
Editor's Note: This page is still under development.
YSFlight Community Edition (YSCE) retains much of YSFlight's physics engine, however there are some tweaks which clean up some bugs and issues in particular situations.
The YSCE atmosphere extends from ground level (0 meters) to 32,000 meters.
The YSCE Atmospheric Density largely follows the Standard Atmospheric Model below 16,000 meters, but deviates at higher altitudes due to the way performance is calculated.

| Altitude (m) | Air Density ( |
|---|---|
| 0 | 1.224991 |
| 4000 | 0.819122 |
| 8000 | 0.529999 |
| 12000 | 0.299988 |
| 16000 | 0.153000 |
| 20000 | 0.084991 |
| 31999 | 0.084991 |
| 32000 | 0 |
YSCE gravity is a constant value at all altitudes:
An aircraft's Indicated airspeed is a function of its altitude and True Air Speed.
Where:
-
$IAS$ is the Indicated Airspeed -
$TAS$ is the True Airspeed -
$\rho_{alt}$ is the Air Density at the aircraft's altitude. -
$\rho_{sea}$ is the Air Density at sea level (0 meters altitude).
The Jet Engine performance calculations are relatively straight forward and a function of DATVARs and Altitude.
The thrust of the jet engine is calculated based on two DAT Variables (THRMILIT and THRAFTBN), throttle setting and altitude (in the form of the jet engine thrust efficiency). This equation does not account for thrust reversers or thrust vectoring.
For non-afterburning operations:
For afterburning operations:
Where:
-
$\eta$ is the Jet Engine Thrust Efficiency -
$Thr$ is the throttle (0 to 1, where 0 = idle, 1 = max)
The Jet Engine Thrust Effiency
| Altitude (m) | |
|---|---|
| 0 | 1 |
| 4000 | 1 |
| 12000 | 0.6 |
| 16000 | 0.3 |
| 20000 | 0.084991 |
| 31999 | 0.084991 |
| 32000 | 0 |

The DAT file defines the sea-level fuel consumption at maximum afterburning and non-afterburning throttle settings (FUELABRN and FUELMILI). YSCE does not account for altitude in fuel consumption rates.
For Afterburning operations:
For non-Afterburning operations:
Where:
-
$\dot{F}$ is the change in fuel weight -
$dt$ is the change in time -
$Thr$ is the throttle setting
In YSCE, the Lift Cofficient is a function of a number of DATVARs and the Lift Coefficient curve as a function of angle of attack. The magnitude of the Lift Coefficient, is primarily calculated at two reference conditions: Cruise and Landing. The YSCE Lift Coefficient "curve" is defined by 6 reference angles of attack:
- A = CRITAOAM - FLATCLR2 - CLDECAY2
- B = CRITAOAM - FLATCLR2
- C = CRITAOAM
- D = CRITAOAP
- E = CRITAOAP + FLATCLR1
- F = CRITAOAP + FLATCLR1 + CLDECAY1

If an aircraft is flying at an angle of attack greater than CRITAOAP, it will be in the positive stall region. If an aircraft is flying at an angle of attack less than CRITAOAM, it will be in the negative stall region. If an aircraft DAT File contains post-stall maneuverability specifications, then the player will have various levels of control of their aircraft's attitude as a function of throttle setting. This is mostly designed to simulate the F-22's thrust vectoring capabilities, but can be used in other ways.