Class DragEffector
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] A drag effector is able to affect the forces and torques on a spacecraft as it moves through an atmosphere. This effector can be used for simple fixed drag models or more complex lookup table models.
public class DragEffector : DynamicEffector
- Inheritance
-
DragEffector
Constructors
DragEffector()
Default constructor
protected DragEffector()
Fields
DragCoefficient
Non-dimensional drag coefficient
[Unit(UnitType.NONE)]
[Range(0, 1.7976931348623157E+308)]
public double DragCoefficient
Field Value
FilePath
Filename for the lookup table if it exists
[ReadOnly]
public string FilePath
Field Value
In_AtmosphereMsg
Atmosphere message used to read density of the atmosphere at the current position.
public AtmosphereMessage? In_AtmosphereMsg
Field Value
ModelType
The model type describing the type of analysis model used for this particular effector.
[Unit(UnitType.NONE)]
[ReadOnly]
public AnalysisModelType ModelType
Field Value
ProjectedArea
Area of spacecraft projected in velocity direction
[Unit(UnitType.SQUARE_METRE)]
[Range(0, 1.7976931348623157E+308)]
public double ProjectedArea
Field Value
Methods
ComputeDynamics(double)
Method to compute the force and torque on the body. This will be triggered by the spacecraft on an Update call.
public override void ComputeDynamics(double time)
Parameters
time
double[s] The current integration time
LinkStateProperties(StateModel)
Links and registers any of the states from the state model that is associated with the root object.
public override void LinkStateProperties(StateModel properties)
Parameters
properties
StateModelThe model that contains the list of states to fetch
LoadLookup(string)
Loads the drag effector model from a CSV file and stores the data in the model. This will be able to use a lookup based on some parameter that is configured.
public void LoadLookup(string filePath)
Parameters
filePath
stringThe full file path to the particular lookup table
OnCreate()
Called when the 'Component' is created from the controller.
protected override void OnCreate()
OnLoad(double)
Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.
protected override void OnLoad(double time)
Parameters
time
double[s] The current clock time of the simulation