Skip to content

Commit 0152bd2

Browse files
authored
Improve the handling of missing materials (#474)
* Add new input pin for the material provider
1 parent e6cea95 commit 0152bd2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ansys/dpf/composites/layup_info/material_operators.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,19 @@ def get_material_operators(
145145
# Combines the material support in the engineering data XML file and the unit system.
146146
# Its output can be used to evaluate material properties.
147147
material_provider = Operator("eng_data::ans_mat_material_provider")
148-
material_provider.inputs.data_sources = engineering_data_source
149148
material_provider.inputs.unit_system_or_result_info(unit_system)
150149
material_provider.inputs.abstract_field_support(
151150
material_support_provider.outputs.abstract_field_support
152151
)
153152
material_provider.inputs.Engineering_data_file(engineering_data_source)
154153

154+
# pylint: disable=protected-access
155+
if version_equal_or_later(rst_data_source._server, "9.0"):
156+
# BUG 1060154: Mechanical adds materials to the MAPDL model for flexible
157+
# Remote Points etc. These materials should be skipped by adding
158+
# materials without properties.
159+
material_provider.inputs.skip_missing_materials(True)
160+
155161
return MaterialOperators(
156162
material_provider=material_provider,
157163
material_support_provider=material_support_provider,

0 commit comments

Comments
 (0)