ansys.materials.manager._models._common.constant
#
Module Contents#
Classes#
Represents a constant property value in a solver. |
Attributes#
- ansys.materials.manager._models._common.constant.TYPE_CHECKING = False#
- class ansys.materials.manager._models._common.constant.Constant(name: str, value: float)#
Bases:
ansys.materials.manager._models._common._base._BaseModel
Represents a constant property value in a solver.
Create a constant property value.
This property is created in the default unit system of the solver. Ensure that you provide the value in the correct units.
- Parameters:
- name: str
Name of the property to model as a constant.
- value: float
Value of the constant property.
- applicable_packages: SupportedPackage.MAPDL | SupportedPackage.FLUENT#
- write_model(material: ansys.materials.manager.material.Material, pyansys_session: Any) None #
Write this model to MAPDL.
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.