### 6.4.2. Material

This section contains the following topics:

- PropertySet

`class compolyx.Material`(graph, obj, parent=None)

ComPoLyX material class.

This class allows to retrieve all material properties defined within the loaded Finite Element model.

Access

    >>> import compolyx
    >>> db = compolyx.DB()
    >>> model = db.models['class40.1']
    >>> materials = model.material_data.materials
    >>> mat_UD300 = materials['UD300_GLAS']
    >>> print mat_UD300.property_names

['density', 'engineering_constants', 'larc_constants', 'puck_constants', 'strain_limits', 'stress_limits', 'thermal_expansion_coefficients', 'tsai_wu_constants', 'woven_characterization', 'woven_puck_constants_1', 'woven_puck_constants_2', 'woven_stress_limits_1', 'woven_stress_limits_2']

    >>> property_set_eng_const = mat_UD300['engineering_constants']

`active_properties`

  List of the active properties for the underlying material.

`create_property_set`(property_name, **kwargs)

  Function to create a specific property set.

  Parameters

  - property_name : A string defining the PropertySet to be created.

  Key word arguments can be passed to define the constant properties of the newly created PropertySet. If the property already exists, it will be overwritten with the new data.

  Example

      >>> m = db.active_model
      >>> mat = m.material_data.materials['Corecell_A450']
      >>> mat.create_property_set('density', rho=2150.0)

`delete_property_set`(property_name)

  Function to delete a specific property set.

  Parameter

  - property_name : String defining the PropertySet to be deleted.

`ext_id`

  Id of corresponding Material in external source.

`is_constant`

  True if engineering constants are constant.

`is_isotropic`

  True if ply_type is isotropic or isotropic_homogeneous_core.

`link_path`

  Root path of the current node in the tree for links to this object

`locked`

  Material is generated from an external source and cannot be changed.

`ply_type`

  Ply type. Allowed string values: regular , woven , orthotropic_homogeneous_core , isotropic_homogeneous_core , honeycomb_core , isotropic , undefined

`property_names`

  List with all available property keys.

`serialize`()

  Serialize to Python string

Release 18.2 - © ANSYS, Inc. All rights reserved.