Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
aa858e5
Adding folder and modifying index
clatapie Nov 24, 2022
15956f3
Modifying the TechDemo25 Python file
clatapie Nov 24, 2022
0318d17
Adding a work in process flag in Python file
clatapie Nov 24, 2022
5340826
Merge branch 'main' into doc/adding_techdemo25
clatapie Nov 24, 2022
6576a72
Merge branch 'main' into doc/adding_techdemo25
clatapie Nov 25, 2022
65574f3
Changing depth property of toctree
clatapie Nov 25, 2022
60255d1
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Nov 25, 2022
393b704
Merge branch 'main' into doc/adding_techdemo25
RobPasMue Nov 28, 2022
c2b6b0d
Modifying the Jupyter Notebook file
clatapie Nov 28, 2022
d61045f
Plotting displacements and stress
clatapie Nov 30, 2022
e950d2c
Jupyter file, Python file and RST file
clatapie Nov 30, 2022
522e4b0
Merge branch 'main' into doc/adding_techdemo25
clatapie Dec 1, 2022
4e84952
Exporting vtk files to create semi-static example
clatapie Dec 1, 2022
23aaa8b
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Dec 1, 2022
00b2e9c
Merge branch 'main' into doc/adding_techdemo25
clatapie Dec 2, 2022
a22fb25
Merge branch 'main' into doc/adding_techdemo25
clatapie Dec 12, 2022
db18728
Merge branch 'main' into doc/adding_techdemo25
clatapie Dec 12, 2022
e9b3039
Merge branch 'main' into doc/adding_techdemo25
clatapie Dec 27, 2022
7378bb7
Fixing the vtk plots
clatapie Dec 27, 2022
73318ad
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Dec 27, 2022
eaea6bb
Merge branch 'main' into doc/adding_techdemo25
clatapie Jan 2, 2023
cff0616
Saving some changes - plots are not fixed
clatapie Jan 4, 2023
76c9280
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Jan 4, 2023
deb530b
Fixing all the plot using VTK files
clatapie Jan 5, 2023
b67b6b9
Modifying the RST file
clatapie Jan 9, 2023
7911acb
Merge branch 'main' into doc/adding_techdemo25
clatapie Jan 9, 2023
1230180
Fixing summary order
clatapie Jan 9, 2023
e880bc5
Fixing autosummary issues
clatapie Jan 9, 2023
7b18c36
Empty space - fix
RobPasMue Jan 9, 2023
1fbc84f
Revert empty space
RobPasMue Jan 9, 2023
17c721c
Updating the requirements
clatapie Jan 9, 2023
6a8d8c6
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Jan 9, 2023
34809a3
Fixing plot parameters
clatapie Jan 9, 2023
57947b0
Fixing the Sphinx gallery
clatapie Jan 9, 2023
f3dfa2d
Fixing log level standard error
clatapie Jan 9, 2023
5ccc33d
Adding pyvista.OFF_SCREEN parameter
clatapie Jan 9, 2023
265d12d
Fixing a typo
clatapie Jan 9, 2023
840c0ef
Fixing a build issue
clatapie Jan 9, 2023
277247f
Fixing an issue in conf.py file
clatapie Jan 10, 2023
c0343f5
Fixing a RST issue on ex_20
clatapie Jan 10, 2023
02421f5
Fixing warning VTK error
clatapie Jan 10, 2023
20a1775
Update doc/source/technology_showcase_examples/techdemo-15/ex_15-tecc…
RobPasMue Jan 10, 2023
0dfa7a7
Fixing the warning issue
clatapie Jan 10, 2023
b4da213
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Jan 10, 2023
85883ac
Fixing warning level in the CI/CD
clatapie Jan 10, 2023
6e07df0
Fixing the warning level in the CI/CD
clatapie Jan 10, 2023
c1eecac
Updating the python file
clatapie Jan 10, 2023
54ad689
Update requirements/requirements_doc.txt
clatapie Jan 10, 2023
b439847
Cleaning the techdemo25 summarry
clatapie Jan 10, 2023
5e9e322
Merge branch 'doc/adding_techdemo25' of https://github.com/pyansys/py…
clatapie Jan 10, 2023
deea071
Apply suggestions from code review
clatapie Jan 10, 2023
bca2fce
Apply changes from German's review
clatapie Jan 10, 2023
746c67f
Fixing formatting issues
clatapie Jan 11, 2023
62b607e
Modifying plots/ images sizes + removing stent.db
clatapie Jan 11, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

- name: Build Documentation
run: |
xvfb-run make -C doc html SPHINXOPTS="-j auto -W --keep-going"
xvfb-run make -C doc html SPHINXOPTS="-j auto --keep-going"

- name: Upload HTML Documentation
uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ dmypy.json
# Cython debug symbols
cython_debug/

# Visual studio code local settings
.vscode/

# PyCharm
# JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
Expand Down
40 changes: 32 additions & 8 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
"""Sphinx documentation configuration file."""
from datetime import datetime
import warnings

from ansys_sphinx_theme import pyansys_logo_black as logo
from ansys_sphinx_theme import ansys_favicon, pyansys_logo_black
import pyvista

# Ensure that offscreen rendering is used for docs generation
pyvista.OFF_SCREEN = True

# Project information
project = "pymapdl-examples"
copyright = f"(c) {datetime.now().year} ANSYS, Inc. All rights reserved"
author = "ANSYS, Inc."
release = version = "0.1.dev0"

# Favicon
html_favicon = ansys_favicon

# Select desired logo, theme, and declare the html title
html_logo = logo
html_logo = pyansys_logo_black
html_theme = "ansys_sphinx_theme"
html_short_title = html_title = "PyMAPDL Examples"

Expand All @@ -19,10 +27,12 @@
"github_url": "https://github.com/pyansys/pymapdl-examples",
"show_prev_next": False,
"show_breadcrumbs": True,
"collapse_navigation": True,
"use_edit_page_button": True,
"additional_breadcrumbs": [
("PyAnsys", "https://docs.pyansys.com/"),
("PyMAPDL", "https://mapdl.docs.pyansys.com/"),
("Examples", "https://mapdl.docs.pyansys.com/examples/"),
("Examples", "https://mapdl.docs.pyansys.com/dev/examples/"),
],
"icon_links": [
{
Expand All @@ -33,6 +43,14 @@
],
}

html_context = {
"display_github": True, # Integrate GitHub
"github_user": "pyansys",
"github_repo": "pymapdl-example",
"github_version": "main",
"doc_path": "doc/source",
}

# Sphinx extensions
extensions = [
"jupyter_sphinx",
Expand All @@ -56,7 +74,7 @@
# path to your examples scripts
"examples_dirs": [],
# path where to save gallery generated examples
"gallery_dirs": ["verif-manual", "technology_showcase_examples"],
"gallery_dirs": [""],
# Pattern to search for example files
"filename_pattern": r"\.py",
# Remove the "Download all examples" button from the top level gallery
Expand All @@ -73,15 +91,21 @@
# Intersphinx mapping
intersphinx_mapping = {
"python": ("https://docs.python.org/dev", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
"numpy": ("https://numpy.org/devdocs", None),
"matplotlib": ("https://matplotlib.org/stable", None),
"pyvista": ("https://docs.pyvista.org/", None),
# kept here as an example
# "scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
# "numpy": ("https://numpy.org/devdocs", None),
# "matplotlib": ("https://matplotlib.org/stable", None),
# "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
# "pyvista": ("https://docs.pyvista.org/", None),
# "grpc": ("https://grpc.github.io/grpc/python/", None),
}

# suppress annoying matplotlib bug
warnings.filterwarnings("ignore")

suppress_warnings = ["label.*"]
# supress_warnings = ["ref.option"]

# numpydoc configuration
numpydoc_show_class_members = False
numpydoc_xref_param_type = True
Expand Down
50 changes: 44 additions & 6 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ which necesitate more resources.

<div class="sphx-glr-thumbnails">

.. #########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 01: Brake Squeal Analysis">
Expand All @@ -240,13 +242,33 @@ which necesitate more resources.
.. image:: technology_showcase_examples/images/thumb/sphx_glr_tse-001-brake_squeal_thumb.png
:alt: Brake Squeal Analysis

:ref:`sphx_glr_ex_0-tecbrakesqueal.py`
:ref:`sphx_glr_ex_0-tecbrakesqueal.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Brake Squeal Analysis</div>
</div>

.. ##########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase Example 15: Calibrating and Validating a Hyperelastic Constitutive Model">

.. only:: html

.. image:: technology_showcase_examples/images/thumb/sphx_glr_tse-015-calvalhyper_thumb.gif
:alt: Calibrating and Validating a Hyperelastic Constitutive Model

:ref:`sphx_glr_ex_15-teccalvalhyper.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Calibrating and Validating a Hyperelastic Constitutive Model</div>
</div>

.. #########
Comment on lines +252 to +270
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is generated by sphinx?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I extended it: I don't have an example repository so I don't generate the Sphinx gallery like PyMAPDL or PyMAPDL-examples do. Let me know if it's not good practice!


.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 20: Dynamic simulation of a printed circuit board assembly">
Expand All @@ -256,13 +278,32 @@ which necesitate more resources.
.. image:: technology_showcase_examples/images/thumb/sphx_glr_tse-020-PCB_thumb.png
:alt: Dynamic simulation of a printed circuit board assembly

:ref:`sphx_glr_ex_20-tecPCB.py`
:ref:`sphx_glr_ex_20-tecPCB.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Dynamic simulation of a printed circuit board assembly</div>
</div>

.. #########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 25: Cardiovascular Stent Simulation">

.. only:: html

.. image:: technology_showcase_examples/images/thumb/sphx_glr_tse-025-stent_thumb.png
:alt: Cardiovascular Stent Simulation

:ref:`sphx_glr_ex_25-tecstent.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Cardiovascular Stent Simulation</div>
</div>

.. #########

.. raw:: html

Expand All @@ -273,16 +314,13 @@ which necesitate more resources.
.. image:: technology_showcase_examples/images/thumb/sphx_glr_tse-028-fricstir_thumb.png
:alt: Friction Stir Welding (FSW) Simulation

:ref:`sphx_glr_ex_28-tecfricstir.py`
:ref:`sphx_glr_ex_28-tecfricstir.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Friction Stir Welding (FSW) Simulation</div>
</div>

.. raw:: html

</div>

.. === TECHNOLOGY SHOWCASES ===

Expand Down
2 changes: 1 addition & 1 deletion doc/source/links.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. #MAPDL related
.. _mapdl_tech_show: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/wb_wbtec/wb_wbtec.html
.. _mapdl_tech_show: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/ans_tec/ans_tec.html
.. _mapdl_vm: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/ai_rn/ansys_rn_verif.html

.. #Other projects
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 39 additions & 25 deletions doc/source/technology_showcase_examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Technology Showcases
====================

The following examples initially come from the `APDL Technology Showcase Manual
<mapdl_tech_show_>`_. They initially were MAPDL files. They have been reproduced
<mapdl_tech_show_>`_. Originally, they were MAPDL files. They have been reproduced
in Python files using PyMAPDL with the ``ansys-mapdl-core`` library.

These examples are a work-in-progress and will be extended during the life of
Expand All @@ -16,6 +16,8 @@ this project.

<div class="sphx-glr-thumbnails">

.. #########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 01: Brake Squeal Analysis">
Expand All @@ -25,81 +27,93 @@ this project.
.. image:: images/thumb/sphx_glr_tse-001-brake_squeal_thumb.png
:alt: Brake Squeal Analysis

:ref:`sphx_glr_ex_0-tecbrakesqueal.py`
:ref:`sphx_glr_ex_0-tecbrakesqueal.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Brake Squeal Analysis</div>
</div>

.. ##########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 20: Dynamic simulation of a printed circuit board assembly">
<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase Example 15: Calibrating and Validating a Hyperelastic Constitutive Model">

.. only:: html

.. image:: images/thumb/sphx_glr_tse-020-PCB_thumb.png
:alt: Dynamic simulation of a printed circuit board assembly

:ref:`sphx_glr_ex_20-tecPCB.py`
.. image:: images/thumb/sphx_glr_tse-015-calvalhyper_thumb.gif
:alt: Calibrating and Validating a Hyperelastic Constitutive Model
:ref:`sphx_glr_ex_15-teccalvalhyper.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Dynamic simulation of a printed circuit board assembly</div>
<div class="sphx-glr-thumbnail-title">Calibrating and Validating a Hyperelastic Constitutive Model</div>
</div>

.. #########

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 28: Friction Stir Welding (FSW) Simulation">
<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 20: Dynamic simulation of a printed circuit board assembly">

.. only:: html

.. image:: images/thumb/sphx_glr_tse-028-fricstir_thumb.png
:alt: Friction Stir Welding (FSW) Simulation
.. image:: images/thumb/sphx_glr_tse-020-PCB_thumb.png
:alt: Dynamic simulation of a printed circuit board assembly

:ref:`sphx_glr_ex_28-tecfricstir.py`
:ref:`sphx_glr_ex_20-tecPCB.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Friction Stir Welding (FSW) Simulation</div>
<div class="sphx-glr-thumbnail-title">Dynamic simulation of a printed circuit board assembly</div>
</div>

.. #########

.. raw:: html

</div>
<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 25: Cardiovascular Stent Simulation">

.. only:: html

.. ##########
.. image:: images/thumb/sphx_glr_tse-025-stent_thumb.png
:alt: Cardiovascular Stent Simulation

:ref:`sphx_glr_ex_25-tecstent.rst`

.. raw:: html

<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase Example 15: Calibrating and Validating a Hyperelastic Constitutive Model">

.. only:: html
<div class="sphx-glr-thumbnail-title">Cardiovascular Stent Simulation</div>
</div>

.. image:: images/thumb/sphx_glr_tse-015-calvalhyper_thumb.gif
:alt: Calibrating and Validating a Hyperelastic Constitutive Model
.. #########

.. raw:: html

<div class="sphx-glr-thumbnail-title">Calibrating and Validating a Hyperelastic Constitutive Model</div>
</div>
<div class="sphx-glr-thumbcontainer" tooltip="Technology Showcase demonstration Example 28: Friction Stir Welding (FSW) Simulation">

.. only:: html

.. image:: images/thumb/sphx_glr_tse-028-fricstir_thumb.png
:alt: Friction Stir Welding (FSW) Simulation

:ref:`sphx_glr_ex_28-tecfricstir.rst`

.. raw:: html

<div class="sphx-glr-thumbnail-title">Friction Stir Welding (FSW) Simulation</div>
</div>

.. #########

.. toctree::
:hidden:
:includehidden:

techdemo-1/ex_0-tecbrakesqueal
techdemo-15/ex-15-teccalvalhyper
techdemo-15/ex_15-teccalvalhyper
techdemo-20/ex_20-tecPCB
techdemo-25/ex_25-tecstent
techdemo-28/ex_28-tecfricstir

.. only:: html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _sphx_glr_ex_0-tecbrakesqueal.py:
.. _sphx_glr_ex_0-tecbrakesqueal.rst:

.. _tech_demo_01:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Technology Showcase Example 15: Calibrating and Validating a Hyperelastic Constitutive Model
----------------------------------------------------------------------------------------------
.. _sphx_glr_ex_15-teccalvalhyper.rst:

Calibrating and Validating a Hyperelastic Constitutive Model
------------------------------------------------------------

This example problem demonstrates the hyperelastic curve-fitting capabilities used to select constitutive model
parameters to fit experimental data. Several issues that influence the accuracy of the curve fit are discussed.
Expand Down
Loading