Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
88c4e40
fix: example 28
clatapie Oct 3, 2024
8bf1fd6
fix: plot issue
clatapie Oct 3, 2024
7a5f113
fix: pre-commit
clatapie Oct 3, 2024
2c185a4
fix: removing python file
clatapie Oct 3, 2024
3afcb7e
fix: example 28
clatapie Oct 10, 2024
b22da8a
maint: updating the ``requirements.txt`` file
clatapie Jan 22, 2025
94fa4a1
maint: updating cicd
clatapie Jan 22, 2025
9c48554
fix: styling yml file
clatapie Jan 22, 2025
0edae69
fix: cicd and `pre-commit`
clatapie Jan 22, 2025
a566bd6
fix: code-style
clatapie Jan 22, 2025
0cf7865
fix: flake8
clatapie Jan 22, 2025
962e7ce
fix: adding ``.vale.ini``
clatapie Jan 22, 2025
005d3c3
fix: pre-commit and update ``vale``
clatapie Jan 22, 2025
e3ee05b
fix: attempt Vale fix
clatapie Jan 22, 2025
f40e27f
fix: attempt Vale fix - 2
clatapie Jan 22, 2025
317757c
fix: ``ansys`` term in ``accept.txt``
clatapie Jan 22, 2025
f04819f
maint: ignoring ``Documentation Syle Check``
clatapie Jan 22, 2025
6f7e576
maint: using ``sudo apt update ``
clatapie Jan 22, 2025
3c3cb6d
fix: ``libgl1``
clatapie Jan 22, 2025
9955e9c
fix: downgrade ``vtk`` to 9.3.1
clatapie Jan 22, 2025
e903196
fix: attempt cicd fix
clatapie Jan 22, 2025
656379a
fix: attempt cicd fix - 2
clatapie Jan 22, 2025
6f94637
fix: attempt cicd fix - 3
clatapie Jan 22, 2025
b809845
fix: attempt cicd fix - 4
clatapie Jan 22, 2025
bfe6609
fix: reverting changes in ``ex_28``
clatapie Jan 22, 2025
57b811c
fix: attempt fixing ``ex_28``
clatapie Jan 22, 2025
6c9de8a
fix: attempt fixing ``ex_28`` - 2
clatapie Jan 23, 2025
1a4a27e
fix: attempt fixing ``ex_28`` - 3
clatapie Jan 23, 2025
0a82e62
fix: attempt fixing ``ex_28`` - [esurf] - 4
clatapie Jan 23, 2025
5dc1ff0
test: using PyMAPDL @AlejandroFernandezLuces's dev branch
clatapie Jan 27, 2025
bd9a51d
fix: removing warnings
clatapie Jan 27, 2025
0de8617
fix: attempt fixing ``MESA: error``
clatapie Jan 27, 2025
1efd21b
fix: installing ``libgl1-mesa-glx`` in cicd
clatapie Jan 27, 2025
f07da06
fix: ``libgl1-mesa-glx`` in cicd
clatapie Jan 27, 2025
df1257a
fix: ``libglx-mesa0`` in cicd
clatapie Jan 27, 2025
d61123d
fix: cicd
clatapie Jan 27, 2025
a88f04e
fix: cicd - 2
clatapie Jan 27, 2025
1dfc9ce
fix: cicd - 3
clatapie Jan 27, 2025
7c12aad
fix: using ``ubuntu-22.04`` in cicd
clatapie Jan 27, 2025
c8bd339
fix: applying @AlejandroFernandezLuces's suggestions
clatapie Jan 27, 2025
882c2a9
fix: cicd - 4
clatapie Jan 27, 2025
e56835d
fix: using ``html`` jupyter_backend
clatapie Jan 27, 2025
3d328a4
fix: cleaning cicd and ``conf.py``
clatapie Jan 29, 2025
bff7dab
fix: using ``vtk-osmesa``
clatapie Jan 29, 2025
a497f2e
fix: ``pyvista!=0.44.2``
clatapie Jan 29, 2025
3b4149b
fix: ``conf.py``
clatapie Jan 29, 2025
fbb1348
fix: ``pre-commit``
clatapie Jan 29, 2025
0b64646
fix: trying to fix doc build
clatapie Jan 29, 2025
fd2815b
fix: attempt to fix xvfb fail to start error
clatapie Jan 29, 2025
5f7e47a
fix: reverting ``pyvista`` change
clatapie Jan 30, 2025
3070061
fix: attempt to fix plot rendering
clatapie Feb 13, 2025
30a482d
fix: attempt to fix plot rendering - 2
clatapie Feb 14, 2025
cc7d769
fix: attempt to fix plot rendering - 3
clatapie Feb 14, 2025
6060000
ci: update ``MAPDL_IMAGE_VERSION_DOCS_BUILD``
clatapie Mar 7, 2025
aca6cf4
fix: adding ``theme=mytheme`` in ``pyvista.Plotter`` constructor
clatapie Mar 7, 2025
87d275f
fix: adding ``theme=mytheme`` everywhere for fixed theme
clatapie Mar 7, 2025
f383e0c
fix: ``multiple values for keyword argument 'theme'`` in ``mapdl.geom…
clatapie Mar 7, 2025
aee8256
fix: attempt to fix ``Thermal boundary conditions`` plots
clatapie Mar 10, 2025
4f4a40a
fix: attempt to fix ``Thermal boundary conditions`` plots - 2
clatapie Mar 10, 2025
2fa1455
fix: applying @AlejandroFernandezLuces's suggestions
clatapie Mar 10, 2025
f3524cd
fix: ``mapdl.geometry.areas.plot`` by adding ``jupyter_backend`` arg
clatapie Mar 10, 2025
8ed7dfa
fix: applying changes from @AlejandroFernandezLuces's PyMAPDL branch
clatapie Mar 13, 2025
e660b0b
fix: using ``main`` pymapdl branch
clatapie Mar 18, 2025
57f9503
Merge branch 'main' into fix/cicd_fail_example28
clatapie Mar 27, 2025
d46e0c9
fix: small typo in Verification Manual index
clatapie Mar 27, 2025
f141a75
Merge branch 'main' into fix/cicd_fail_example28
clatapie Mar 27, 2025
d770215
fix: removing unnecessary file after @RobPasMue's review
clatapie Mar 27, 2025
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
5 changes: 4 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
env:
DPF_PORT: 21002
DPF_START_SERVER: False
MAIN_PYTHON_VERSION: '3.10'
MAIN_PYTHON_VERSION: '3.12'
MAPDL_PACKAGE: ghcr.io/ansys/mapdl
MAPDL_IMAGE_VERSION_DOCS_BUILD: v24.2-ubuntu
ON_CI: True
Expand Down Expand Up @@ -151,6 +151,9 @@ jobs:

- name: "Run Ansys documentation building action"
uses: ansys/actions/doc-build@v8
env:
LIBGL_ALWAYS_SOFTWARE: 1
PYANSYS_VISUALIZER_HTML_BACKEND: true
with:
requires-xvfb: true
python-version: ${{ env.MAIN_PYTHON_VERSION }}
Expand Down
3 changes: 2 additions & 1 deletion doc/source/common_jupyter_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
pyvista.global_theme.axes.show = True
pyvista.global_theme.show_scalar_bar = True
pyvista.global_theme.return_cpos = False
pyvista.global_theme.trame.server_proxy_enabled = True

pyvista.set_jupyter_backend("trame")
pyvista.set_jupyter_backend("html")

mytheme = pyvista.global_theme
6 changes: 2 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@
html_theme = "ansys_sphinx_theme"
html_short_title = html_title = "PyMAPDL Examples"

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

# necessary when building the sphinx gallery
pyvista.BUILDING_GALLERY = True
pymapdl.BUILDING_GALLERY = True
os.environ["PYVISTA_BUILDING_GALLERY"] = "true"
pyvista.BUILDING_GALLERY = True
pyvista.OFF_SCREEN = True

# specify the location of your github repo
html_theme_options = {
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Summary of the exposed Verification Manual Examples

.. include:: ./verif-manual/index.rst
:start-line: 8
:end-line: 416
:end-line: 417


.. === TECHNOLOGY SHOWCASES ===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Start this example by launching MAPDL and loading the model.
from ansys.mapdl.core.examples.downloads import download_vtk_rotor, download_tech_demo_data

rotor = pyvista.read(download_vtk_rotor())
rotor.plot(color='w', show_edges=True)
rotor.plot(color='w', show_edges=True, theme=mytheme)


1.4. Material properties
Expand Down Expand Up @@ -347,7 +347,7 @@ The following input shows the solution steps involved in this method:
:hide-code:

rotor1 = pyvista.read(download_tech_demo_data('td-1', 'rotor_linear_step21_unorm.vtk' ))
rotor1.plot(scalars='values', cmap='jet', show_edges=True)
rotor1.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)


**Figure 1.3: Mode Shape for Unstable Mode (Mode 21).**
Expand Down Expand Up @@ -504,7 +504,7 @@ The following inputs show the solution steps involved with this method:
:hide-code:

rotor2_21 = pyvista.read(download_tech_demo_data('td-1', 'rotor_partial_step21_unorm.vtk' ))
rotor2_21.plot(scalars='values', cmap='jet', show_edges=True)
rotor2_21.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)


**Figure 1.5: Mode Shape for Unstable Mode (Mode 21).**
Expand All @@ -516,7 +516,7 @@ Obtained from the `1.6.1. Linear Non-prestressed Modal Analysis`_ .
:hide-code:

rotor2_22 = pyvista.read(download_tech_demo_data('td-1', 'rotor_partial_step22_unorm.vtk' ))
rotor2_22.plot(scalars='values', cmap='jet', show_edges=True)
rotor2_22.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)


**Figure 1.6: Mode Shape for Unstable Mode (Mode 21).**
Expand Down Expand Up @@ -662,7 +662,7 @@ Following is the process for solving a brake-squeal problem using this method:
:hide-code:

rotor3_21 = pyvista.read(download_tech_demo_data('td-1', 'rotor_non_linear_step21_unorm.vtk' ))
rotor3_21.plot(scalars='values', cmap='jet', show_edges=True)
rotor3_21.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)



Expand All @@ -674,7 +674,7 @@ Following is the process for solving a brake-squeal problem using this method:
:hide-code:

rotor3_22 = pyvista.read(download_tech_demo_data('td-1', 'rotor_non_linear_step22_unorm.vtk' ))
rotor3_22.plot(scalars='values', cmap='jet', show_edges=True)
rotor3_22.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)



Expand All @@ -699,7 +699,7 @@ produce a squealing noise.
:hide-code:

rotor3_21 = pyvista.read(download_tech_demo_data('td-1', 'rotor_linear_step21_unorm.vtk' ))
rotor3_21.plot(scalars='values', cmap='jet', show_edges=True)
rotor3_21.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)


**Figure 1.9: Mode Shape for Unstable Mode (Mode 21).**
Expand All @@ -712,7 +712,7 @@ Obtained from the `1.6.1. Linear Non-prestressed Modal Analysis`_ .

rotor3_22 = pyvista.read(download_tech_demo_data('td-1', 'rotor_linear_step22_unorm.vtk' ))
rotor3_22['values'] = rotor3_22['values']*100
rotor3_22.plot(scalars='values', cmap='jet', show_edges=True)
rotor3_22.plot(scalars='values', cmap='jet', show_edges=True, theme=mytheme)


**Figure 1.10: Mode Shape for Unstable Mode (Mode 22).**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ It is recommended to use `DPF Post <dpf_post_docs_>`_.
total_def = core.operators.math.norm_fc(displacements)
total_def_container = total_def.outputs.fields_container()
mesh = model.metadata.meshed_region
mesh.plot(total_def_container.get_field_by_time_id(1))
mesh.plot(total_def_container.get_field_by_time_id(1), theme=mytheme)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ This section illustrates the use of PyDPF-Core to post-process the results.

file = "./source/technology_showcase_examples/techdemo-25/data/mesh.vtk"
mesh_file = pyvista.read(file)
pl = pyvista.Plotter()
pl = pyvista.Plotter(theme=mytheme)
pl.add_mesh(mesh_file, cmap='jet', show_scalar_bar=False, show_edges=True)
pl.add_text("Mesh of the model", color='w')
pl.show()
Expand All @@ -395,7 +395,7 @@ This section illustrates the use of PyDPF-Core to post-process the results.
file = "./source/technology_showcase_examples/techdemo-25/data/u.vtk"
u_file = pyvista.read(file)
u_file = u_file.warp_by_scalar('U')
pl = pyvista.Plotter(notebook=True)
pl = pyvista.Plotter(theme=mytheme, notebook=True)
pl.add_mesh(u_file, scalars = 'U', show_scalar_bar=True, scalar_bar_args={'title':'Displacements'}, cmap='jet')
pl.add_text("Displacements of the model", color='w')
pl.show()
Expand Down Expand Up @@ -423,7 +423,7 @@ This section illustrates the use of PyDPF-Core to post-process the results.
file = "./source/technology_showcase_examples/techdemo-25/data/s_VM.vtk"
s_VM_file = pyvista.read(file)
s_VM_file = s_VM_file.warp_by_scalar('S_VM')
pl = pyvista.Plotter(notebook=True)
pl = pyvista.Plotter(theme=mytheme, notebook=True)
pl.add_mesh(s_VM_file, scalars = "S_VM", show_scalar_bar=True, scalar_bar_args={'title':'Von Mises Stress'}, cmap='jet')
pl.add_text("Von Mises Stress", color='w')
pl.show()
Expand Down Expand Up @@ -475,7 +475,7 @@ This section illustrates the use of PyDPF-Core to post-process the results.
file = "./source/technology_showcase_examples/techdemo-25/data/mesh_sco.vtk"
mesh_sco_file = pyvista.read(file)

pl = pyvista.Plotter(shape=(1, 2))
pl = pyvista.Plotter(theme=mytheme, shape=(1, 2))
pl.subplot(0, 0)
pl.add_mesh(mesh_file, cmap="jet", show_scalar_bar=False, show_edges=True)
pl.add_text("Mesh of the model", color='w')
Expand All @@ -502,7 +502,14 @@ This section illustrates the use of PyDPF-Core to post-process the results.
u_stent_mesh.point_data['U_STENT'] = data
u_stent_mesh = mesh_sco_file.point_data_to_cell_data()
u_stent_mesh.title = 'Displacements of the stent'
u_stent_mesh.plot(scalars='U_STENT', show_scalar_bar=True, scalar_bar_args={'title':'Displacements'}, cmap='jet', text='Displacements of the stent')
u_stent_mesh.plot(
scalars='U_STENT',
show_scalar_bar=True,
scalar_bar_args={'title':'Displacements'},
cmap='jet',
text='Displacements of the stent',
theme=mytheme,
)


25.6. Exit MAPDL
Expand Down
Loading