Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Force render in example #2046

Merged
merged 60 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
33bdbb4
Force render in example
AlejandroFernandezLuces May 8, 2023
50f8357
Test revert
AlejandroFernandezLuces May 8, 2023
04d0eea
fix: solve warnings on docs build
RobPasMue May 8, 2023
84afc65
Test
AlejandroFernandezLuces May 8, 2023
92eaa81
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 8, 2023
03c14e2
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 9, 2023
3ce2415
Test pyvista example
AlejandroFernandezLuces May 9, 2023
354fbd0
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 9, 2023
042eb21
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 9, 2023
38e18c9
Close plotter
AlejandroFernandezLuces May 9, 2023
cbc5556
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 9, 2023
b9c3e07
Remove pyvista example
AlejandroFernandezLuces May 9, 2023
4cebc35
Don't force render contact mesh
AlejandroFernandezLuces May 9, 2023
5f5e819
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 9, 2023
3a849aa
Test
AlejandroFernandezLuces May 9, 2023
1a9174a
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 9, 2023
f26e442
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 17, 2023
b1c66d8
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 23, 2023
5ed3a77
Update pyvista in docs
AlejandroFernandezLuces May 23, 2023
435e563
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 23, 2023
c632d5e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 23, 2023
afa21ae
Merge branch 'main' into fix/force-render-example
germa89 May 30, 2023
264898b
Test double gif
AlejandroFernandezLuces May 31, 2023
d81c5fa
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 31, 2023
6ffc068
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 31, 2023
a916f09
Change gif name
AlejandroFernandezLuces May 31, 2023
794beeb
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 31, 2023
fbb2955
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 31, 2023
aecb7a9
Test palettesize
AlejandroFernandezLuces May 31, 2023
de9bac4
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 31, 2023
900b06f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 31, 2023
db33f0e
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 31, 2023
a29a08b
Test smaller window size
AlejandroFernandezLuces May 31, 2023
a82d708
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces May 31, 2023
3d1ad15
Remove second plotter
AlejandroFernandezLuces May 31, 2023
bbf3cad
Change window size to better aspect ratio
AlejandroFernandezLuces May 31, 2023
30290c5
Test no contact
AlejandroFernandezLuces May 31, 2023
c8b58a3
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces May 31, 2023
5d637f9
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces Jul 3, 2023
a9cd2d5
Revert changes
AlejandroFernandezLuces Jul 3, 2023
bca75f8
Bump pyvista version
AlejandroFernandezLuces Jul 3, 2023
62580cd
Update pyvista docs dependency
AlejandroFernandezLuces Jul 3, 2023
c2b08be
Bump sphinx version
AlejandroFernandezLuces Jul 3, 2023
f050113
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces Jul 17, 2023
a8766c3
Merge branch 'main' into fix/force-render-example
RobPasMue Jul 18, 2023
8b5b9eb
Merge branch 'main' into fix/force-render-example
RobPasMue Jul 19, 2023
eabfb5c
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces Jul 24, 2023
4d94f98
test gif generation
AlejandroFernandezLuces Jul 24, 2023
c82c92d
Add xvfb
AlejandroFernandezLuces Jul 24, 2023
12c265c
Move example run to another place
AlejandroFernandezLuces Jul 24, 2023
ccc6456
Add OFF SCREEN flag
AlejandroFernandezLuces Jul 24, 2023
ceb09cc
Move example run to doc build
AlejandroFernandezLuces Jul 24, 2023
7833770
Fix path
AlejandroFernandezLuces Jul 24, 2023
a88e1a3
Manually add gif
AlejandroFernandezLuces Jul 24, 2023
ba23722
Merge branch 'main' into fix/force-render-example
AlejandroFernandezLuces Jul 24, 2023
95a607a
copy image to build folder
AlejandroFernandezLuces Jul 24, 2023
7c32f85
Merge branch 'fix/force-render-example' of https://github.com/pyansys…
AlejandroFernandezLuces Jul 24, 2023
0d35504
Merge branch 'main' into fix/force-render-example
germa89 Jul 24, 2023
e8fa68a
Merge branch 'main' into fix/force-render-example
germa89 Jul 25, 2023
dbc8bd3
Resolve comments
AlejandroFernandezLuces Jul 26, 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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ jobs:
run: |
xvfb-run make -C doc html SPHINXOPTS="-j auto -W --keep-going"

- name: "Substitute defective GIF"
run: |
cd doc/_build/html/examples/gallery_examples/00-mapdl-examples
cp ../../../../../source/images/dcb.gif ../../../_images/
sed -i 's+../../../_images/sphx_glr_composite_dcb_004.gif+../../../_images/dcb.gif+g' composite_dcb.html
cd ../../../../../../
- name: "Upload HTML Documentation"
uses: actions/upload-artifact@v3
with:
Expand Down
Binary file added doc/source/images/dcb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions examples/00-mapdl-examples/composite_dcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
opacity=0.3,
)


# Add the contact mesh to the scene
mesh_contact = result_mesh.grid
plotter.add_mesh(
Expand All @@ -381,7 +382,6 @@
clim=[0, 1],
scalars=np.zeros((mesh_contact.n_cells)),
)

for i in range(1, 100):
# Get displacements
disp = model.results.displacement(time_scoping=i).eval()
Expand All @@ -402,10 +402,9 @@
plotter.update_coordinates(disp_result.data, mesh=mesh_beam, render=False)
plotter.update_coordinates(disp_cohesive.data, mesh=mesh_contact, render=False)
plotter.update_scalars(cohesive_damage.data, mesh=mesh_contact, render=False)

plotter.write_frame()

plotter.show()
plotter.close()


###############################################################################
Expand Down