diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4452b0243..e2e15d7c58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/doc/source/images/dcb.gif b/doc/source/images/dcb.gif new file mode 100644 index 0000000000..ae1e4efa46 Binary files /dev/null and b/doc/source/images/dcb.gif differ diff --git a/examples/00-mapdl-examples/composite_dcb.py b/examples/00-mapdl-examples/composite_dcb.py index 3e07ab744a..77a2f16d9c 100644 --- a/examples/00-mapdl-examples/composite_dcb.py +++ b/examples/00-mapdl-examples/composite_dcb.py @@ -372,6 +372,7 @@ opacity=0.3, ) + # Add the contact mesh to the scene mesh_contact = result_mesh.grid plotter.add_mesh( @@ -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() @@ -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() ###############################################################################