Skip to content

Commit

Permalink
style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed Nov 28, 2023
1 parent 498fee8 commit 4bfe5f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/011_rst_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,<material index>,<value>`` command.
You can set the material UUID in Mechanical APDL with
the ``MP,UVID,<material index>,<value>`` 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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4bfe5f9

Please sign in to comment.