The serialize.py module#
Summary#
Output the JSON representation of a material in Fluent format to a string. |
|
Output the JSON representation of a material in Fluent format to a file. |
Description#
Provides functions to serialize materials.
Module detail#
- serialize.serialize_material(material: ansys.materials.manager.material.Material) str#
Output the JSON representation of a material in Fluent format to a string.
- Parameters:
- material
Material Material to serialize.
- material
- Returns:
strString representation of the material in Fluent format.
- serialize.serialize_material_to_file(material: ansys.materials.manager.material.Material, file_name: str | pathlib.Path)#
Output the JSON representation of a material in Fluent format to a file.
- Parameters:
- material
Material Material to serialize.
- file_name
Union[str,pathlib.Path] Name of the file to create.
- material