ThermalState#
- class ThermalState[source]#
Bases:
MultiConstructorBaseModelRepresents the thermal state of a fluid with specific properties.
Example
>>> fl.ThermalState( ... temperature=300 * fl.u.K, ... density=1.225 * fl.u.kg / fl.u.m**3, ... material=fl.Air() ... )
Properties
Additional Constructors
- classmethod from_standard_atmosphere(altitude=0 * fl.u.m, temperature_offset=0 * fl.u.K)[source]#
Constructs a
ThermalStateinstance from the standard atmosphere model.- Parameters:
altitude (Length.Float64, optional) – The altitude at which the thermal state is calculated. Defaults to
0 * u.m.temperature_offset (DeltaTemperature.Float64, optional) – The temperature offset to be applied to the standard temperature at the given altitude. Defaults to
0 * u.K.
- Returns:
A thermal state representing the atmospheric conditions at the specified altitude and temperature offset.
- Return type:
Notes
This method uses the
StandardAtmosphereModelto compute the standard atmospheric conditions based on the given altitude.The
temperature_offsetallows for adjustments to the standard temperature, simulating non-standard atmospheric conditions.
Examples
Create a thermal state at an altitude of 10,000 meters:
>>> thermal_state = ThermalState.from_standard_atmosphere(altitude=10000 * u.m) >>> thermal_state.temperature <calculated_temperature> >>> thermal_state.density <calculated_density>
Apply a temperature offset of -5 Fahrenheit at 5,000 meters:
>>> thermal_state = ThermalState.from_standard_atmosphere( ... altitude=5000 * u.m, ... temperature_offset=-5 * u.delta_degF ... ) >>> thermal_state.temperature <adjusted_temperature> >>> thermal_state.density <adjusted_density>
- classmethod from_file(filename)#
Load a Flow360BaseModel from a .json file.
- Parameters:
filename (str)
- Return type:
Flow360BaseModel
Methods