ThermallyPerfectGas#
- class ThermallyPerfectGas[source]#
Bases:
Flow360BaseModelMulti-species thermally perfect gas model.
Combines NASA 9-coefficient polynomials from multiple species weighted by mass fraction. All species must use the same temperature range boundaries. The mixture properties are computed as mass-fraction-weighted averages of individual species properties.
This model supports temperature-dependent specific heats (cp) while maintaining fixed mass fractions (non-reacting flow).
Example
>>> fl.ThermallyPerfectGas( ... species=[ ... fl.FrozenSpecies(name="N2", nasa_9_coefficients=..., mass_fraction=0.7555), ... fl.FrozenSpecies(name="O2", nasa_9_coefficients=..., mass_fraction=0.2316), ... fl.FrozenSpecies(name="Ar", nasa_9_coefficients=..., mass_fraction=0.0129), ... ] ... )
Attributes
- species: list[FrozenSpecies]#
List of species with their NASA 9 coefficients and mass fractions. Mass fractions must sum to 1.0.
Additional Constructors
- classmethod from_file(filename)#
Loads a
Flow360BaseModelfrom .json, or .yaml file.- Parameters:
filename (str) – Full path to the .yaml or .json file to load the
Flow360BaseModelfrom.- Returns:
An instance of the component class calling load.
- Return type:
Flow360BaseModel
Example
>>> params = Flow360BaseModel.from_file(filename='folder/sim.json')
Methods
- help(methods=False)#
Prints message describing the fields and methods of a
Flow360BaseModel.- Parameters:
methods (bool = False) – Whether to also print out information about object’s methods.
- Return type:
None
Example
>>> params.help(methods=True)