Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Flow.DisplacementBody Class Reference

Models the flow displaced by an ellipsoid body using a three-component doublet. More...

Inheritance diagram for AerodynamicObjects.Flow.DisplacementBody:
AerodynamicObjects.FlowPrimitive

Public Member Functions

override void Awake ()
 
override Vector3 VelocityFunction (Vector3 position)
 Override this function to change the way the velocity of the fluid is calculated. More...
 
- Public Member Functions inherited from AerodynamicObjects.FlowPrimitive
void GetInteractionID ()
 Obtains a unique interaction ID for the object. More...
 
virtual void Awake ()
 
virtual void OnEnable ()
 
virtual void OnDestroy ()
 
virtual void OnDisable ()
 
void AddSelfToScene ()
 
void AcquireFluidVolume (FluidVolume fluidVolume)
 
void RemoveFromScene ()
 
Vector3 VelocityFunction (Vector3 position, int flowAffectedID)
 Wrapper function which first checks if the interaction should happen. More...
 
virtual Vector3 VelocityFunction (Vector3 position)
 Override this function to change the way the velocity of the fluid is calculated. More...
 
bool IsInteractionIgnored (int flowAffectedID)
 
void IgnoreInteraction (int flowAffectedID)
 
void IgnoreInteraction (FlowAffected flowAffected)
 
void AddSelfToGlobalFluid ()
 
void RemoveSelfFromGlobalFluid ()
 

Additional Inherited Members

- Public Attributes inherited from AerodynamicObjects.FlowPrimitive
float strengthScale = 1f
 This value is used to scale the flow primitive behaviour. More...
 
int interactionID = 0
 The unique ID number for this flow primitive, used for identifying pairs of ignored interactions by the FlowInteractionManager. More...
 

Detailed Description

Models the flow displaced by an ellipsoid body using a three-component doublet.

See https://en.wikipedia.org/wiki/Potential_flow The strength of the doublet is scaled with the free stream speed of the flow so that the flow boundary ellipsoid defined by the transform scale remains constant. The solution is exact according to potential flow theory for equal scaling (ellipsoid is a sphere). For unequal scaling the flow at the surface is correct but the outer flow becomes less realistic with great asymetry. Axis scale ratios of a factor of 2 remain reasonable.

Member Function Documentation

◆ Awake()

override void AerodynamicObjects.Flow.DisplacementBody.Awake ( )
virtual

Reimplemented from AerodynamicObjects.FlowPrimitive.

◆ VelocityFunction()

override Vector3 AerodynamicObjects.Flow.DisplacementBody.VelocityFunction ( Vector3  position)
virtual

Override this function to change the way the velocity of the fluid is calculated.

Parameters
positionPosition of the object in the global (earth) frame of reference.
Returns
The velocity of the fluid at the given position in the global (earth) frame.

Reimplemented from AerodynamicObjects.FlowPrimitive.


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