Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Aerodynamics.UserSuppliedDragModel Class Reference

A drag model which uses drag coefficients provided, instead of the default drag model's method of approximating the drag coefficients based on the object's geometry. More...

Inheritance diagram for AerodynamicObjects.Aerodynamics.UserSuppliedDragModel:
AerodynamicObjects.Aerodynamics.IAerodynamicModel

Public Member Functions

AerodynamicLoad GetAerodynamicLoad (AeroObject ao)
 Compute the aerodynamic load acting on the aerodynamic object. More...
 
void UpdateDimensionValues (AeroObject ao)
 Calculate and store any values which only depend on the object's dimensions. More...
 
AerodynamicLoad GetAerodynamicLoad (AeroObject ao)
 Compute the aerodynamic load acting on the aerodynamic object. More...
 
void UpdateDimensionValues (AeroObject ao)
 Calculate and store any values which only depend on the object's dimensions. More...
 

Public Attributes

Vector3 forwardDragCoefficients = Vector3.one
 Drag coefficients for each axis when the flow direction is 180 degress to that axis. More...
 
Vector3 reverseDragCoefficients = Vector3.one
 Drag coefficients for each axis when the flow direction is aligned with that axis. More...
 
float CD
 

Detailed Description

A drag model which uses drag coefficients provided, instead of the default drag model's method of approximating the drag coefficients based on the object's geometry.

Member Function Documentation

◆ GetAerodynamicLoad()

AerodynamicLoad AerodynamicObjects.Aerodynamics.UserSuppliedDragModel.GetAerodynamicLoad ( AeroObject  ao)

Compute the aerodynamic load acting on the aerodynamic object.

Parameters
aoThe aerodynamic object we want to compute the aerodynamic load for.
Returns
The resulting aerodynamic load.

Implements AerodynamicObjects.Aerodynamics.IAerodynamicModel.

◆ UpdateDimensionValues()

void AerodynamicObjects.Aerodynamics.UserSuppliedDragModel.UpdateDimensionValues ( AeroObject  ao)

Calculate and store any values which only depend on the object's dimensions.

This reduces overhead for objects whose dimensions don't change often.

Parameters
aoThe aero object we are using for calculations.

Implements AerodynamicObjects.Aerodynamics.IAerodynamicModel.

Member Data Documentation

◆ CD

float AerodynamicObjects.Aerodynamics.UserSuppliedDragModel.CD

◆ forwardDragCoefficients

Vector3 AerodynamicObjects.Aerodynamics.UserSuppliedDragModel.forwardDragCoefficients = Vector3.one

Drag coefficients for each axis when the flow direction is 180 degress to that axis.

◆ reverseDragCoefficients

Vector3 AerodynamicObjects.Aerodynamics.UserSuppliedDragModel.reverseDragCoefficients = Vector3.one

Drag coefficients for each axis when the flow direction is aligned with that axis.


The documentation for this class was generated from the following file: