diff --git a/examples/011_rst_workflow.py b/examples/011_rst_workflow.py index abb74b837..cf3d6c464 100644 --- a/examples/011_rst_workflow.py +++ b/examples/011_rst_workflow.py @@ -6,8 +6,8 @@ This example shows the postprocessing of an MAPDL (RST) model with layered elements that was not preprocessed by ACP. The difference between the RST- -only and ACP-based workflow is that `composite` of the :class:`.ContinuousFiberCompositesFiles` class -is empty, and so the section data are automatically loaded from the RST file. +only and ACP-based workflow is that `composite` of the :class:`.ContinuousFiberCompositesFiles` +class is empty, and so the section data are automatically loaded from the RST file. The engineering data file (XML or ENGD) with the material properties is needed anyway. Otherwise, the material properties cannot be mapped. You should create it before @@ -18,10 +18,11 @@ The material UUIDs in the engineering data file must be identical to the UUIDs in the Mechanical APDL (RST file). -You can set the material UUID in Mechanical APDL with the ``MP,UVID,,`` command. +You can set the material UUID in Mechanical APDL with +the ``MP,UVID,,`` command. This workflow is supported in 2024 R2 (DPF Server version 8.0) and later. A few advanced features are -not supported with the RST onl workflow. For more information, see :ref:`limitations`. +not supported with the RST only workflow. For more information, see :ref:`limitations`. """ # %% # Set up analysis @@ -31,17 +32,16 @@ # # Load Ansys libraries. -from ansys.dpf.composites.composite_model import CompositeModel, CompositeScope +from ansys.dpf.composites.composite_model import CompositeModel from ansys.dpf.composites.constants import FailureOutput from ansys.dpf.composites.example_helper import get_continuous_fiber_example_files from ansys.dpf.composites.failure_criteria import ( CombinedFailureCriterion, CoreFailureCriterion, + FaceSheetWrinklingCriterion, MaxStrainCriterion, MaxStressCriterion, VonMisesCriterion, - FaceSheetWrinklingCriterion, - ShearCrimpingCriterion, ) from ansys.dpf.composites.server_helpers import connect_to_or_start_server diff --git a/src/ansys/dpf/composites/layup_info/_add_layup_info_to_mesh.py b/src/ansys/dpf/composites/layup_info/_add_layup_info_to_mesh.py index dcc51504f..fd5375c0d 100644 --- a/src/ansys/dpf/composites/layup_info/_add_layup_info_to_mesh.py +++ b/src/ansys/dpf/composites/layup_info/_add_layup_info_to_mesh.py @@ -114,6 +114,7 @@ def add_layup_info_to_mesh( if rst_stream_provider: from ..server_helpers import version_equal_or_later + # pylint: disable=protected-access if version_equal_or_later(layup_provider._server, "8.0"): layup_provider.inputs.rst_stream(rst_stream_provider)