flow360.Air#

class Air[source]#

Bases: MaterialBase

Represents the material properties for air. This sets specific material properties for air, including dynamic viscosity, specific heat ratio, gas constant, and Prandtl number.

Example

>>> fl.Air(
...     dynamic_viscosity=1.063e-05 * fl.u.Pa * fl.u.s
... )

type: Literal['air'] = 'air'#
name: str = 'air'#
dynamic_viscosity: Sutherland | Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)] = Sutherland(reference_viscosity=unyt_quantity(1.716e-05, 'Pa*s'), reference_temperature=unyt_quantity(273.15, 'K'), effective_temperature=unyt_quantity(110.4, 'K'))#

The dynamic viscosity model or value for air. Defaults to a Sutherland model with standard atmospheric conditions.

property specific_heat_ratio: Annotated[float, Gt(gt=0)]#

Returns the specific heat ratio (gamma) for air.

Returns:

The specific heat ratio, typically 1.4 for air.

Return type:

pd.PositiveFloat

property gas_constant: Annotated[_Constrained, PlainSerializer(func=_dimensioned_type_serializer, return_type=PydanticUndefined, when_used=always)]#

Returns the specific gas constant for air.

Returns:

The specific gas constant for air.

Return type:

SpecificHeatCapacityType.Positive

property prandtl_number: Annotated[float, Gt(gt=0)]#

Returns the Prandtl number for air.

Returns:

The Prandtl number, typically around 0.72 for air.

Return type:

pd.PositiveFloat

get_pressure(density, temperature)[source]#

Calculates the pressure of air using the ideal gas law.

Parameters:
  • density (DensityType.Positive) – The density of the air.

  • temperature (AbsoluteTemperatureType) – The temperature of the air.

Returns:

The calculated pressure.

Return type:

PressureType.Positive

get_speed_of_sound(temperature)[source]#

Calculates the speed of sound in air at a given temperature.

Parameters:

temperature (AbsoluteTemperatureType) – The temperature at which to calculate the speed of sound.

Returns:

The speed of sound at the specified temperature.

Return type:

VelocityType.Positive

get_dynamic_viscosity(temperature)[source]#

Calculates the dynamic viscosity of air at a given temperature.

Parameters:

temperature (AbsoluteTemperatureType) – The temperature at which to calculate the dynamic viscosity.

Returns:

The dynamic viscosity at the specified temperature.

Return type:

ViscosityType.NonNegative