Computes the acceleration due to drag in the Earth's atmosphere for a given height and velocity.
More...
|
static int double3 a_out | Accel (ref ExternalAccel.EAStateData eaState, ref ExternalAccel.EADesc eaDesc, NativeArray< double3 > data, double scaleLtoKm, double scaleTtoSec, double scaleAccelToSI) |
|
static double3[] | Alloc (double heightKm, double coeffDrag, double xsecArea, double massKg, uint massLU) |
| Create a data[] block for core physics parameters/data and initialize.
|
|
|
static int | status |
| Determine acceleration due to atmospheric drag based on an exponential Earth atmopsphere model with a nominal density table. (Vallado 5th p572).
|
|
const int | STATUS_IMPACT = 1 |
|
const int | STATUS_NAN = 2 |
|
const int | STATUS_OK = 0 |
|
Computes the acceleration due to drag in the Earth's atmosphere for a given height and velocity.
This is a SELF force because it depends on the mass of the specific body.
◆ Alloc()
static double3[] GravityEngine2.EarthAtmosphere.Alloc |
( |
double | heightKm, |
|
|
double | coeffDrag, |
|
|
double | xsecArea, |
|
|
double | massKg, |
|
|
uint | massLU ) |
|
static |
Create a data[] block for core physics parameters/data and initialize.
- Parameters
-
heightKm | |
coeffDrag | |
xsecArea | |
massKg | |
massLU | |
- Returns
◆ status
int GravityEngine2.EarthAtmosphere.status |
|
static |
Determine acceleration due to atmospheric drag based on an exponential Earth atmopsphere model with a nominal density table. (Vallado 5th p572).
This requires the current mass of the ship. For a re-entering ship this can be configured and remain constant. For ascent the mass will be highly time varying and needs to be linked to the ExtAccel representing the real-time mass. For maximum accuracy this is done on a time-step basis:
- this block can be configured to
- Parameters
-
eaState | |
eaDesc | |
data | |
scaleLtoKm | |
scaleTtoSec | |
scaleAccelToSI | |
- Returns
The documentation for this class was generated from the following file:
- ge2/GE2/Assets/GravityEngine2/Runtime/Core/ExternalAcceleration/EarthAtmosphere.cs