get_constant_property_dict#
- ansys.dpf.composites.layup_info.material_properties.get_constant_property_dict(material_properties, materials_provider, data_source_or_streams_provider, mesh)#
Get a dictionary with constant properties.
Returns a dictionary with the DPF material ID as a key and a dictionary with the requested properties as the value. Only constant properties are supported. Variable properties are evaluated at their default values. Because this method can be slow to evaluate, it should not be called in a loop.
- Parameters:
material_properties (
Collection
[MaterialProperty
]) – Material properties to request.materials_provider (
Operator
) – DPF Materials provider operator. This value is Available from theCompositeModel.material_operators
attribute.data_source_or_streams_provider (
Union
[DataSources
,Operator
]) – DPF data source or stream provider that contains the RST file.mesh (
MeshedRegion
) – DPF meshed region enriched with lay-up information.
- Return type:
dict
[int64
,dict
[MaterialProperty
,float
]]