.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/Meshes/Mesh3_2D.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_Mesh3_2D.py: Mesh3_2D ======== Meshing a 2D domain with hole. .. GENERATED FROM PYTHON SOURCE LINES 11-26 .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh3_2D_001.png :alt: Mesh3 2D :srcset: /examples/Meshes/images/sphx_glr_Mesh3_2D_001.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.6.1/docs/examples/Meshes/images/sphx_glr_Mesh3_2D_001.vtksz .. tab-set:: .. tab-item:: Static Scene .. image-sg:: /examples/Meshes/images/sphx_glr_Mesh3_2D_002.png :alt: Mesh3 2D :srcset: /examples/Meshes/images/sphx_glr_Mesh3_2D_002.png :class: sphx-glr-single-img .. tab-item:: Interactive Scene .. offlineviewer:: /home/docs/checkouts/readthedocs.org/user_builds/easyfea/checkouts/v1.6.1/docs/examples/Meshes/images/sphx_glr_Mesh3_2D_002.vtksz .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/easyfea/envs/v1.6.1/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:973: PyVistaDeprecationWarning: ../../../../envs/v1.6.1/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:973: 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.1/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:974: PyVistaDeprecationWarning: ../../../../envs/v1.6.1/lib/python3.11/site-packages/EasyFEA/utilities/PyVista.py:974: 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 Domain, Circle if __name__ == "__main__": Display.Clear() contour = Domain((0, 0), (1, 1), 1 / 10) circle = Circle((1 / 2, 1 / 2), 1 / 3, 1 / 10, isHollow=True) PyVista.Plot_Geoms([contour, circle]).show() # "TRI3", "TRI6", "TRI10", "TRI15", "QUAD4", "QUAD8", "QUAD9" elemType = ElemType.TRI6 mesh = contour.Mesh_2D([circle], elemType) PyVista.Plot_Mesh(mesh).show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.117 seconds) .. _sphx_glr_download_examples_Meshes_Mesh3_2D.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Mesh3_2D.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Mesh3_2D.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: Mesh3_2D.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_