flow360.GenericReferenceCondition#

class GenericReferenceCondition[source]#

Bases: MultiConstructorBaseModel

Operating condition defines the physical (non-geometrical) reference values for the problem.

Example


type_name: Literal['GenericReferenceCondition'] = 'GenericReferenceCondition'#
velocity_magnitude: VelocityType.Positive | None = None#

Freestream velocity magnitude. Used as reference velocity magnitude when reference_velocity_magnitude is not specified. Cannot change once specified.

thermal_state: ThermalState = ThermalState(type_name='ThermalState', private_attribute_constructor='default', private_attribute_input_cache=ThermalStateCache(altitude=None, temperature_offset=None), temperature=unyt_quantity(288.15, 'K'), density=unyt_quantity(1.225, 'kg/m**3'), material=Air(type='air', name='air', dynamic_viscosity=Sutherland(reference_viscosity=unyt_quantity(1.716e-05, 'Pa*s'), reference_temperature=unyt_quantity(273.15, 'K'), effective_temperature=unyt_quantity(110.4, 'K'))))#

Reference and freestream thermal state. Defaults to US standard atmosphere at sea level.

classmethod from_mach(mach, thermal_state=ThermalState(type_name='ThermalState', private_attribute_constructor='default', private_attribute_input_cache=ThermalStateCache(altitude=None, temperature_offset=None), temperature=unyt_quantity(288.15, 'K'), density=unyt_quantity(1.225, 'kg/m**3'), material=Air(type='air', name='air', dynamic_viscosity=Sutherland(reference_viscosity=unyt_quantity(1.716e-05, 'Pa*s'), reference_temperature=unyt_quantity(273.15, 'K'), effective_temperature=unyt_quantity(110.4, 'K')))))[source]#

Constructs a reference condition from Mach number and thermal state.

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

Computes Mach number.