MaterialManager#
- class ansys.materials.manager.material_manager.MaterialManager#
Manage material creation, assignment, and other management tasks.
This class is the main entry point for the Pythonic material management interface.
Overview#
Add a material into the library. |
|
Extend the models defined within a specific material. |
|
Delete a material from the library. |
|
Return a material from the library. |
|
Write the materials in the library to a MatML file. |
|
Read materials from a MatML file and add them to the library. |
|
Write a material to the connected MAPDL session. |
|
Read material from the pyansys client session. |
|
Write the materials in the library to a LS-DYNA keyword file. |
|
Write a material to the connected Fluent session. |
Import detail#
from ansys.materials.manager.material_manager import MaterialManager
Property detail#
- property MaterialManager.materials: dict[str, ansys.materials.manager._models.material.Material]#
The material models.
- property MaterialManager.client: Any#
The provided client.
Method detail#
- MaterialManager.add_material(material: ansys.materials.manager._models.material.Material) None#
Add a material into the library.
- MaterialManager.extend_material(material_name: str, material_models: list[ansys.materials.manager._models._common.material_model.MaterialModel]) None#
Extend the models defined within a specific material.
- MaterialManager.get_material(material_name) ansys.materials.manager._models.material.Material | None#
Return a material from the library.
- MaterialManager.write_to_matml(path: str | pathlib.Path, material_names: list[str] | None = None) None#
Write the materials in the library to a MatML file.
- MaterialManager.read_from_matml(path: str | pathlib.Path) None#
Read materials from a MatML file and add them to the library.
- MaterialManager.write_to_mapdl(mapdl_client: ansys.materials.manager._models._common._MapdlCore | None = None, material_names: list[str] | None = None, material_ids: list[int] | None = None, reference_temperatures: list[float] | None = None) list[str] | None#
Write a material to the connected MAPDL session.
- MaterialManager.read_from_mapdl_session(mapdl_client: ansys.materials.manager._models._common._MapdlCore) None#
Read material from the pyansys client session.