GenericReferenceCondition#
- class GenericReferenceCondition[source]#
Bases:
MultiConstructorBaseModelOperating condition defines the physical (non-geometrical) reference values for the problem.
Example
Define
GenericReferenceConditionwithfrom_mach():>>> fl.GenericReferenceCondition.from_mach( ... mach=0.2, ... thermal_state=ThermalState(), ... )
Define
GenericReferenceConditionwithvelocity_magnitude:>>> fl.GenericReferenceCondition(velocity_magnitude=40 * fl.u.m / fl.u.s)
Attributes
- thermal_state: ThermalState#
Reference and freestream thermal state. Defaults to US standard atmosphere at sea level.
- Default:
ThermalState()
Properties
Additional Constructors
- classmethod from_mach(mach, thermal_state=None)[source]#
Constructs a reference condition from Mach number and thermal state.
- Parameters:
thermal_state (ThermalState | None)
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods