Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/use_cases/01-optimizing-ply-angles.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,3 +493,6 @@ def get_max_irf_for_parameters(

plt.tight_layout()
plt.show()

# Close MAPDL instance
mapdl.exit()
3 changes: 3 additions & 0 deletions examples/workflows/01-pymapdl-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,6 @@
# %%
# Release the composite model to close the open streams to the result file.
composite_model = None # type: ignore

# Close MAPDL instance
mapdl.exit()
3 changes: 3 additions & 0 deletions examples/workflows/02-advanced-pymapdl-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,3 +390,6 @@ def add_ply(mg, name, ply_material, angle, oss):
# Query and plot the results.
irf_field = output_all_elements.get_field({"failure_label": FailureOutput.FAILURE_VALUE})
irf_field.plot()

# Close MAPDL instance
mapdl.exit()
3 changes: 3 additions & 0 deletions examples/workflows/05-pymechanical-to-cdb-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,6 @@
{"failure_label": pydpf_composites.constants.FailureOutput.FAILURE_VALUE}
)
irf_field.plot()

# Close MAPDL instance
mapdl.exit()
3 changes: 3 additions & 0 deletions src/ansys/acp/core/extras/example_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,6 @@
# %%
# Release composite model to close open streams to result file.
composite_model = None # type: ignore

# Close MAPDL instance
mapdl.exit()

Check warning on line 269 in src/ansys/acp/core/extras/example_helpers.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/acp/core/extras/example_helpers.py#L269

Added line #L269 was not covered by tests
Loading