Skip to main content
Version: 2026R1

MaterialData

class compolyx.MaterialData(graph, parent=None)

MaterialData manages all composite material data.

Attributes

NameDescription
MaterialData.enabledWhether MaterialData is currently enabled or not
MaterialData.fabricsDictionary with all fabrics defined
MaterialData.is_dict_itemSpecifies whether the object is an item of a dict
MaterialData.is_list_itemSpecifies whether the object is an item of a list
MaterialData.link_pathRoot path of the current node in the tree for links to this object
MaterialData.material_apdl_pathOptional path to file with APDL material definitions to be used in the CDB export
MaterialData.materialsDictionary with all materials defined
MaterialData.matml_pathPath to MatML file as provided by Workbench EngineeringData
MaterialData.nameCurrently a name is needed for every object in the db tree
MaterialData.parentParent object in tree
MaterialData.root_pathRoot path of the current node in the tree
MaterialData.stackupsDictionary with all stack ups defined
MaterialData.sub_laminatesDictionary with all sub laminates defined
MaterialData.unit_systemUnit system of material data, propagated from model

Methods

NameDescription
MaterialData.copy(source[, on_duplicate_name])Copy a list of material data source
MaterialData.copy_fabric(source[, ...])Copy a fabric
MaterialData.copy_material(source[, ...])Copy a material
MaterialData.copy_stackup(source[, ...])Copy a stackup
MaterialData.copy_sub_laminate(source[, ...])Copy a sublamiante
MaterialData.create_fabric(name[, id, ...])Create a new fabric
MaterialData.create_material(name[, id, ...])Create a constant material
MaterialData.create_stackup(name[, id, ...])Create a new stackup
MaterialData.create_sub_laminate(name[, id, ...])Create a new sublaminate
MaterialData.export_matml(path[, unit_system])Export materials to ANSYS Engineering Data MatML format
MaterialData.find_materials(**properties)Find materials with the given properties or property ranges
MaterialData.find_parent(type)Function steps up the tree and returns the first parent with given type
MaterialData.import_matml(path[, ...])Import material data from MatML file as provided by Workbench Engineering Data
MaterialData.serialize()Serialize to Python string
MaterialData.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node