ansys.materials.manager._models._fluent.ideal_gas#

Module Contents#

Classes#

IdealGas

Provides for creating an ideal gas model for fluid properties.

class ansys.materials.manager._models._fluent.ideal_gas.IdealGas(name: str)#

Bases: ansys.materials.manager._models._BaseModel

Provides for creating an ideal gas model for fluid properties.

This model can be applied to density and specific heat capacity properties within Fluent. It requires that the molar mass be set as a property and models the following equation:

\[P * V = \frac{m * R * T}{M}\]

Create an ideal gas model for the Fluent solver.

property name: str#

Name of the property modeled.

applicable_packages#
write_model(material: ansys.materials.manager.material.Material, pyansys_session: Any) None#

Write this model to Fluent.

This method should make some effort to validate the model state before writing.

Parameters:
material: Material

Material object to associate with this model.

pyansys_session: Any

Configured instance of the PyAnsys session.

validate_model() Tuple[bool, List[str]]#

Perform pre-flight validation of the model setup.

Returns:
Tuple

First element is Boolean. True if validation is successful. If False, the second element contains a list of strings with more information.