Examples ======== Duplication of meshes ---------------------- Let ma_1 be a mesh that already contains the meshes: .. code-block:: text M1 M2 M3 and the group of elements: .. code-block:: text shell: M1 M2 Each stitch is based on the following knots: .. code-block:: text M1: N1 N2 N3 M2: N3 N4 N5 M3: N4 N5 N6 my_2 = CREA_MAILLAGE (MAILLAGE = my_1, CREA_MAILLE = _F (NOM = ground, GROUP_MA = 'shell', PREF_MAILLE = 'A', PREF_NUME = 100,), ) After calling command CREA_MAILLAGE, the new mesh then contains: * mesh groups: * shell (initial) * ground = (meshes: A100 A101) * the stitches are based on the following knots: * M1: N1 N2 N3 * M2: N3 N4 N5 * M3: N4 N5 N6 * A100: N1 N2 N3 * A101: N3 N4 N5 Transforming triangles with 6 knots into triangles with 7 knots ------------------------------------------------------------ .. code-block:: text my_2 = CREA_MAILLAGE (MAILLAGE = my_1, MODI_MAILLE = _F (GROUP_MA = 'triangle', OPTION = 'TRIA6_7', PREF_NOEUD = 'NMI', PREF_NUME = 10,), ) Suppose that in ma_1 the GROUP_MA triangle is composed of two meshes M1, M2 with the following nodes: M1: N1 N2 N3 N3 N4 N5 N6 M2: N1 N2 N7 N7 N4 N8 N9 In the mesh ma_2, the two meshes M 1, M 2 will have the following nodes: M1: N1 N2 N3 N3 N4 N4 N5 N6 NMI10 M2: N1 N2 N7 N7 N4 N8 N9 NMI11 Transforming quadrangles with 4 knots into triangles with 3 knots -------------------------------------------------------------- This example is from test SSLV04E: The geometry, representing a quarter of a disk, is meshed in a quadrangle. We want one eighth of the disk to be meshed in a triangle. .. code-block:: text ma = CREA_MAILLAGE (MAILLAGE = m0, MODI_MAILLE = _F (GROUP_MA = 'S2', OPTION = 'QUAD_TRIA3', PREF_MAILLE = 'MS', PREF_NUME = 1,), ) Example of using DECOUPE_LAC ------------------------------------- This example comes from the zzzz383 test cases. .. image:: images/100000000000033E000001F6A3CCBE3A2FB50D6F.png :width: 3.4445in :height: 2.3071in .. _RefImage_100000000000033E000001F6A3CCBE3A2FB50D6F.png: Initial mesh Mesh with patch