# 2.7 A complete example

This example corresponds to meshing the domain in figure 2.5. This figure presents symmetries, where only one section was studied. It is, furthermore, topologically cylindrical.

The remainder of this section contains:

• a flowchart of the different modules (figure 2.2);
• the two initial 2D meshes (figures 2.3 and 2.4);
• the data "cards", i.e., the data file for module APNOP3;
• the final mesh (figure 2.5).

Figure 2.2: Flowchart

up6.bas.psfig:depart2DMesh oneup6.haut.psfig:depart2D1Mesh two

Figure 2.5: Final mesh

The data file used by APNOXX to create the two 2D meshes which forms the basis, is given below:

```'3D TEST                                                             '
COURBES
1                                 \$ IMPRE
COURBE01(X,Y)=
(X-7.)**2+(Y+3.975094)**2-36.;
COURBE02(X,Y)=
X**2+(Y-4.)**2-64.;
COURBE03(X,Y)=
X**2+Y**2-2.05**2;
COURBE04(X,Y)=
X**2+Y**2-0.85**2;
COURBE05(X,Y)=
X**2+(Y+3.4)**2-0.09;
FIN
'POINTS                                                              '
1    11                            \$ IMPRE NPOINT  \$
\$   NOP   NOREF(NOP)     X(NOP).            Y(NOP).  \$
1       2         0.000000E+00     -.400000E+01
2       2         0.130000E+01     -.389367E+01
3       1         0.107976E+01     -.300000E+01
4       1         0.131722E+01     -.205000E+01
5       1         0.177535E+01     -.102500E+01
6       4         0.736122E+00     -.425000E+00
7       4         0.000000E+00     -.850000E+00
8       3         0.000000E+00     -.205000E+01
9       5         0.000000E+00     -.310000E+01
10       5         0.000000E+00     -.370000E+01
11       5         0.300000E+00     -.340000E+01
'LIGNE                                                               '
1    12                            \$ IMPRE  NDLM   \$
\$   NOLIG NOELIG NEXTR1 NEXTR2 NOREFL NFFRON       RAISON \$
1      5      1      2      2     10     0.100000E+01
2      5      2      3      1      0     0.100000E+01
3      5      4      3      1     10     0.100000E+01
4      5      5      6      0      0     0.100000E+01
5      6      7      6      4     10     0.100000E+01
6      5      7      8      0      0     0.100000E+01
7      5      8      9      0      0     0.100000E+01
8      3     11      9      5     10     0.100000E+01
9      3     10     11      5     10     0.100000E+01
10      3      1     10      0      0     0.100000E+01
11      6      8      5      3     10     0.100000E+01
12      5      4      5      0      0     0.100000E+01
'TRIH                                                                '
1     0     1     9     1          \$ IMPRE LEVEL NUDSD NBRELI NS1L
\$ LIST OF THE CONTOUR LINES :
1     2     3    12    11     7     8     9    10
1     0     1                      \$ NCOMP NBRINT IOPT \$
9                                  \$ COMPONENT \$
'REGU                                                                '
1     0     1                      \$ IMPRE NIVO1 NIVO2
'QUAC                                                                '
1     2     2     4     1          \$ IMPRE LEVEL NUDSD NBRELI NS1L
\$ LIST OF THE CONTOUR LINES :
6    11     4     5
5     1                            \$ IMAX NQUAD
'RECO                                                                '
1    1    2    3  0.10000E-02    1  \$ IMP NIV1 NIV2 NIV3 EPS IOPT
0     0                            \$ NBNNF NBNNSD
'SAUV                                                                '
1     3     0                      \$ IMPRE NINOPO NTNOPO
UP6.BAS.NOPO                           \$ FILE NAME
'SAUV                                                                '
1     2     0                      \$ IMPRE NINOPO NTNOPO
UP6.HAUT.NOPO                          \$ FILE NAME
'FIN                                                                 '
```

The data file used by APN3XX to create the final 3D mesh: we will re-encounter the keywords INTR, MA23, RECO, SYMP, ROTA, SAUV and FIN which specify the operations to be performed to obtain the final mesh:

• INTR : introduce the 2D mesh residing on file, with the name UP6.BAS.NOPO, into main memory;
• MA23 : construct from this mesh 2 (or 6) layers (i.e. 3 (or 7) sections) by simple translation;
• INTR and MA23 : the same operations for the mesh of UP6.HAUT.NOPO;
• RECO : glue together the 2 preceding meshes;
• SYMP : construct a symmetry with respect to plane x=0 of the resulting mesh;
• RECO : glue together the above mesh and its symmetry;
• ROTA (twice) : rotate the result to right and left;
• RECO (twice) : glue together;
• SAUV : store the final mesh on file;
• FIN : end of construction.

```'EXAMPLE_UP6.2D==>UP.                                                '
'INTR                                                                '
1     0                            \$ IMPRE NINOPO (EXTERNAL D.S.)
UP6.BAS.NOPO                           \$ FILE NAME
'MA23                                                                '
1     0     1                      \$ IMPRE NIVO2D NIVO3D
\$ ===  DEFINITION OF THE FUNCTION  ===
TRAN
2                                  \$ TOP SECTION
0.0000000E+00  0.0000000E+00  0.5000000E+00     \$ TRANSLATION VECTOR
BASE  -1.000000
FIN
\$ END OF FUNCTION DEFINITION
\$ =========== THE OPTIONS  =========
\$ ==== CALLING THE MESH GENERATOR  ====
GO
'INTR                                                                '
1     2                            \$ IMPRE NINOPO (EXTERIOR DS)
UP6.HAUT.NOPO                          \$ FILE NAME
'MA23XX                                                              '
1     2     3                      \$ IMPRE NIVO2D NIVO3D
\$ ===  DEFINITION OF THE FUNCTION  ===
TRAN
6                                  \$ TOP SECTION
0.0000000E+00  0.0000000E+00  0.5000000E+00     \$ TRANSLATION VECTOR
FIN
\$ END OF FUNCTION DEFINITION
\$ =========== THE OPTIONS  =========
\$ ==== CALLING THE MESH GENERATOR  ====
GO
'RECO                                                                '
1     1     3     4  0.10000E-02     0       \$ IMP NIV1 NIV2 NIV3 EPS IOPT
0     0                                                \$ NBNNF NBNNSD
'SYMP                                                                '
1     4     5                                          \$ IMPRE LEVEL1 LEVEL2
0     0                                                \$ NBNNF NBNNSD
0.1000000E+01  0.0000000E+00  0.0000000E+00  0.0000000E+00\$ A. B. C. D.
'RECO                                                                '
1     4     5     6  0.10000E-02     0       \$ IMP NIV1 NIV2 NIV3 EPS IOPT
0     0                                                \$ NBNNF NBNNSD
'ROTA                                                                '
1     6     7                                          \$ IMPRE LEVEL1 LEVEL2
0     0                                                \$ NBNNF NBNNSD
0.0000000E+00  0.0000000E+00  0.1000000E+01               \$ AXIS OF ROTATION
0.1200000E+03  0.0000000E+00  0.0000000E+00  0.0000000E+00\$ TETA. X. Y. Z.
'ROTA                                                                '
1     6     8                                          \$ IMPRE LEVEL1 LEVEL2
0     0                                                \$ NBNNF NBNNSD
0.0000000E+00  0.0000000E+00  0.1000000E+01               \$ AXIS OF ROTATION
-0.1200000E+03  0.0000000E+00  0.0000000E+00  0.0000000E+00\$ TETA. X. Y. Z.
'RECO                                                                '
1     6     8     9  0.10000E-02     0       \$ IMP NIV1 NIV2 NIV3 EPS IOPT
0     0                                                \$ NBNNF NBNNSD
'RECO                                                                '
1     9     7    10  0.10000E-02     0       \$ IMP NIV1 NIV2 NIV3 EPS IOPT
0     0                                                \$ NBNNF NBNNSD
'SAUV                                                                '
1    10     0                      \$ IMPRE NINOPO NTNOPO
UP.NOPO3D1                             \$ FILE NAME
'F                                                                   '
```

Next: 2.8 Abbreviated list of the keywords Up: 2 Three-dimensional mesh generation (1) Prev: 2.6.2 Keywords Index Contents