Fluid volumes are used to contain and manage flow primitives so that they only affect objects within the defined volume.
More...
Fluid volumes are used to contain and manage flow primitives so that they only affect objects within the defined volume.
◆ Shape
Defines the shape of the volume.
◆ AddPrimitive()
| void AerodynamicObjects.FluidVolume.AddPrimitive |
( |
FlowPrimitive |
flowPrimitive | ) |
|
◆ GetInteractingPrimitives() [1/2]
| List< FlowPrimitive > AerodynamicObjects.FluidVolume.GetInteractingPrimitives |
( |
int |
flowAffectedID | ) |
|
Iterates over the list of flow primitives and adds each primitive which will interact with the provided ID.
This function is useful when you need to cache multiple interaction checks before getting velocities. For example, when a particle system is getting the velocities for each particle, the interaction check is done at the Flow Particles level with a single ID for the whole collection of particles.
- Parameters
-
| flowAffectedID | ID of the flow affected object to check the primitives agains |
- Returns
- List of flow primitives from the fluid volume which interact with the ID.
◆ GetInteractingPrimitives() [2/2]
| List< FlowPrimitive > AerodynamicObjects.FluidVolume.GetInteractingPrimitives |
( |
int |
flowAffectedID, |
|
|
List< FlowPrimitive > |
interactingPrimitives |
|
) |
| |
Iterates over the list of flow primitives and adds each primitive which will interact with the provided ID.
This function is useful when you need to cache multiple interaction checks before getting velocities. For example, when a particle system is getting the velocities for each particle, the interaction check is done at the Flow Particles level with a single ID for the whole collection of particles.
- Parameters
-
| flowAffectedID | ID of the flow affected object to check the primitives agains |
- Returns
- List of flow primitives from the fluid volume which interact with the ID.
◆ GetInteractingVelocityFunctions()
| List< VelocityEventHandler > AerodynamicObjects.FluidVolume.GetInteractingVelocityFunctions |
( |
int |
flowAffectedID | ) |
|
◆ GetInteractionID()
| void AerodynamicObjects.FluidVolume.GetInteractionID |
( |
| ) |
|
Obtains a unique interaction ID for the object.
Should be called when the object is created.
◆ IgnoreInteraction()
| void AerodynamicObjects.FluidVolume.IgnoreInteraction |
( |
int |
flowAffectedID | ) |
|
◆ IsInteractionIgnored()
| bool AerodynamicObjects.FluidVolume.IsInteractionIgnored |
( |
int |
flowAffectedID | ) |
|
◆ IsPositionInsideZone()
| virtual bool AerodynamicObjects.FluidVolume.IsPositionInsideZone |
( |
Vector3 |
position | ) |
|
|
virtual |
◆ OnEnable()
| void AerodynamicObjects.FluidVolume.OnEnable |
( |
| ) |
|
◆ OnTriggerEnter()
| virtual void AerodynamicObjects.FluidVolume.OnTriggerEnter |
( |
Collider |
other | ) |
|
|
virtual |
◆ OnTriggerExit()
| virtual void AerodynamicObjects.FluidVolume.OnTriggerExit |
( |
Collider |
other | ) |
|
|
virtual |
◆ OnValidate()
| virtual void AerodynamicObjects.FluidVolume.OnValidate |
( |
| ) |
|
|
virtual |
◆ RemovePrimitive()
| void AerodynamicObjects.FluidVolume.RemovePrimitive |
( |
FlowPrimitive |
flowPrimitive | ) |
|
◆ Reset()
| virtual void AerodynamicObjects.FluidVolume.Reset |
( |
| ) |
|
|
virtual |
◆ SetColliderEditor()
| void AerodynamicObjects.FluidVolume.SetColliderEditor |
( |
| ) |
|
◆ SetColliderRuntime()
| void AerodynamicObjects.FluidVolume.SetColliderRuntime |
( |
| ) |
|
◆ UpdateFluidProperties()
| virtual void AerodynamicObjects.FluidVolume.UpdateFluidProperties |
( |
AeroObject |
aeroObject | ) |
|
|
virtual |
Override this function to change the way fluid properties are calculated.
E.g. to add a pressure gradient.
- Parameters
-
| aeroObject | The aerodynamic object for which the fluid properties are relevant. |
◆ VelocityFunction() [1/3]
| Vector3 AerodynamicObjects.FluidVolume.VelocityFunction |
( |
Vector3 |
position | ) |
|
Calculate the velocity of all flow primitives contained in this fluid volume - no checks for if they interact.
- Parameters
-
| position | Position 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.
◆ VelocityFunction() [2/3]
| Vector3 AerodynamicObjects.FluidVolume.VelocityFunction |
( |
Vector3 |
position, |
|
|
int |
flowAffectedID |
|
) |
| |
Calculate the velocity of all flow primitives contained in this fluid volume including checks for if each flow primitive should interact with the provided ID.
- Parameters
-
| position | Position of the object in the global (earth) frame of reference. |
| flowAffectedID | The interaction ID of the object which is being affected by this fluid volume. |
- Returns
- The velocity of the fluid at the given position in the global (earth) frame.
◆ VelocityFunction() [3/3]
| Vector3 AerodynamicObjects.FluidVolume.VelocityFunction |
( |
Vector3 |
position, |
|
|
int |
flowAffectedID, |
|
|
List< FlowPrimitive > |
interactingFlowPrimitives |
|
) |
| |
◆ boxSize
◆ capsuleHeight
| float AerodynamicObjects.FluidVolume.capsuleHeight = 1f |
◆ capsuleRadius
| float AerodynamicObjects.FluidVolume.capsuleRadius = 0.5f |
◆ flowPrimitives
◆ fluidProperties
◆ interactionID
| int AerodynamicObjects.FluidVolume.interactionID = 0 |
The unique ID number for this fluid volume, used for identifying pairs of ignored interactions by the FlowInteractionManager.
◆ shape
| Shape AerodynamicObjects.FluidVolume.shape = Shape.Box |
◆ sphereRadius
| float AerodynamicObjects.FluidVolume.sphereRadius = 0.5f |
The documentation for this class was generated from the following file: