.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/Meshes/Mesh6_3D.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_Meshes_Mesh6_3D.py: Mesh6_3D ======== Refined 3D mesh in zones. .. GENERATED FROM PYTHON SOURCE LINES 11-36 .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh6_3D_001.png :alt: Mesh6 3D :srcset: /examples/Meshes/images/sphx_glr_Mesh6_3D_001.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.6.3/docs/examples/Meshes/images/sphx_glr_Mesh6_3D_001.vtksz .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh6_3D_002.png :alt: Mesh6 3D :srcset: /examples/Meshes/images/sphx_glr_Mesh6_3D_002.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.6.3/docs/examples/Meshes/images/sphx_glr_Mesh6_3D_002.vtksz .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/easyfea/envs/v1.6.3/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:975: PyVistaDeprecationWarning: ../../../../envs/v1.6.3/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:975: Arguments 'pointa', 'pointb', 'center' must be passed as keyword arguments to function 'CircularArc'. From version 0.50, passing these as positional arguments will result in a TypeError. arc1 = pv.CircularArc(geom.pt1.coord, geom.pt3.coord, geom.center.coord) /home/docs/checkouts/readthedocs.org/user_builds/easyfea/envs/v1.6.3/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:976: PyVistaDeprecationWarning: ../../../../envs/v1.6.3/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:976: Arguments 'pointa', 'pointb', 'center' must be passed as keyword arguments to function 'CircularArc'. From version 0.50, passing these as positional arguments will result in a TypeError. arc2 = pv.CircularArc( | .. code-block:: Python :lineno-start: 12 from EasyFEA import Display, ElemType, PyVista from EasyFEA.Geoms import Circle, Domain if __name__ == "__main__": Display.Clear() L = 1 meshSize = L / 4 contour = Domain((0, 0), (L, L), meshSize) circle = Circle((L / 2, L / 2), L / 3, meshSize) inclusions = [circle] refine1 = Domain((0, L), (L, L * 0.8), meshSize / 8) refine2 = Circle(circle.center, L / 2, meshSize / 8) refine3 = Circle((0, 0), L / 2, meshSize / 8) refineGeoms = [refine1, refine2, refine3] PyVista.Plot_Geoms([contour, circle, *refineGeoms]).show() mesh = contour.Mesh_Extrude( inclusions, [0, 0, -L], [5], ElemType.PRISM15, refineGeoms=refineGeoms ) PyVista.Plot_Mesh(mesh).show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.166 seconds) .. _sphx_glr_download_examples_Meshes_Mesh6_3D.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Mesh6_3D.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Mesh6_3D.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: Mesh6_3D.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_