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

Contains the properties and state of a fluid. More...

Public Member Functions

void CopyProperties (FluidProperties properties)
 Copies the properties from the property class. More...
 

Public Attributes

Vector3 globalVelocity = Vector3.zero
 The velocity of the fluid in the global (earth) frame of reference. More...
 
Vector3 localVelocity = Vector3.zero
 The velocity of the fluid in the object's frame of reference. More...
 
float pressure = 101325f
 The pressure of the fluid around the object. More...
 
float density = 1.23f
 The density of the fluid. More...
 
float dynamicViscosity = 1.8e-5f
 Dynamic viscosity of the fluid. More...
 

Detailed Description

Contains the properties and state of a fluid.

Member Function Documentation

◆ CopyProperties()

void AerodynamicObjects.Fluid.CopyProperties ( FluidProperties  properties)

Copies the properties from the property class.

We haven't included the class in this script for brevity.

Member Data Documentation

◆ density

float AerodynamicObjects.Fluid.density = 1.23f

The density of the fluid.

Assuming incompressible flow. Typical values include 1.23 for air and 1000 for water. (kg/m^3)

◆ dynamicViscosity

float AerodynamicObjects.Fluid.dynamicViscosity = 1.8e-5f

Dynamic viscosity of the fluid.

Default value is 1.8e-5 for air. (Nm/s)

◆ globalVelocity

Vector3 AerodynamicObjects.Fluid.globalVelocity = Vector3.zero

The velocity of the fluid in the global (earth) frame of reference.

This is independent of the object's velocity. (m/s) (Read Only)

◆ localVelocity

Vector3 AerodynamicObjects.Fluid.localVelocity = Vector3.zero

The velocity of the fluid in the object's frame of reference.

This is independent of the object's velocity. (m/s) (Read Only)

◆ pressure

float AerodynamicObjects.Fluid.pressure = 101325f

The pressure of the fluid around the object.

Default value is 101,325 Pa. The same as 1 atmosphere of pressure. (Pa)


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