pyleecan.Methods.Machine.Machine.get_material_dict module

get_material_dict(self, path='self', is_unique=False)[source]

Get the dict of materials contained in a Machine

Parameters:
  • self (Machine) – A Machine object

  • path (str) – prefix to use for material object path

  • is_unique (bool) – True each material will only one in the dict

Returns:

materials – dict of materials contained in the object (key=”obj path” like self.mat_type)

Return type:

dict

get_material(obj, path='self')[source]

Get the dict of materials contained in a pyleecan object

Parameters:

obj (Pyleecan object) –

Returns:

materials – dict of materials contained in the object (key=obj path like self.mat_type)

Return type:

dict