:py:mod:`ansys.materials.manager.serialize` =========================================== .. py:module:: ansys.materials.manager.serialize .. autoapi-nested-parse:: Provides functions to serialize materials. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: ansys.materials.manager.serialize.serialize_material ansys.materials.manager.serialize.serialize_material_to_file .. py:function:: serialize_material(material: ansys.materials.manager.material.Material) -> str Output the JSON representation of a material in Fluent format to a string. :Parameters: **material** : :obj:`Material` Material to serialize. :Returns: :class:`python:str` String representation of the material in Fluent format. .. !! processed by numpydoc !! .. py:function:: serialize_material_to_file(material: ansys.materials.manager.material.Material, file_name: Union[str, pathlib.Path]) Output the JSON representation of a material in Fluent format to a file. :Parameters: **material** : :obj:`Material` Material to serialize. **file_name** : :obj:`Union`\[:class:`python:str`, :obj:`pathlib.Path`] Name of the file to create. .. !! processed by numpydoc !!