Research Article
An Automatic Isotropic Triangular Grid Generation Technique Based on an Artificial Neural Network and an Advancing Front Method
Algorithm 1
Training data extraction algorithm.
(1) | : Initialize: Import the data file generated by some mature mesh generation software. | (2) | : for i = 1 to N; N is the number of edges. | (3) | : Find the vertex of a triangle according to the right-hand's rule of Edge i. | (4) | : Find the left and right immediate adjacent points of Edge i. | (5) | : If: the left adjacent point is the vertex of a triangle, then the mode is 2, as shown in Figure 7. | (6) | : Elif: the right adjacent point is the vertex of a triangle, then the mode is 3, as shown in Figure 7. | (7) | : Else: the mode is 1, as shown in Figure 7. | (8) | : Store data of coordinates with the corresponding mode. | (9) | : end for |
|