Hostname: page-component-74656f9884-rngvg Total loading time: 0 Render date: 2026-11-06T10:18:59.892Z Has data issue: false hasContentIssue false

A self-learning finite element extraction system based on reinforcement learning

Published online by Cambridge University Press:  21 April 2021

Jie Pan
Affiliation:
Concordia Institute for Information Systems Engineering, Concordia University, Montreal, QC, Canada
Jingwei Huang
Affiliation:
Department of Engineering Management & Systems Engineering, Old Dominion University, Norfolk, VA, USA
Yunli Wang
Affiliation:
Digital Technologies Research Centre, National Research Council Canada, Ottawa, ON, Canada
Gengdong Cheng
Affiliation:
State Key Laboratory of Structural Analysis for Industrial Equipment, Department of Engineering Mechanics, Dalian University of Technology, Dalian, People's Republic of China
Yong Zeng*
Affiliation:
Concordia Institute for Information Systems Engineering, Concordia University, Montreal, QC, Canada
*
Author for correspondence: Yong Zeng, E-mail: yong.zeng@concordia.ca
Rights & Permissions [Opens in a new window]

Abstract

Automatic generation of high-quality meshes is a base of CAD/CAE systems. The element extraction is a major mesh generation method for its capabilities to generate high-quality meshes around the domain boundary and to control local mesh densities. However, its widespread applications have been inhibited by the difficulties in generating satisfactory meshes in the interior of a domain or even in generating a complete mesh. The element extraction method's primary challenge is to define element extraction rules for achieving high-quality meshes in both the boundary and the interior of a geometric domain with complex shapes. This paper presents a self-learning element extraction system, FreeMesh-S, that can automatically acquire robust and high-quality element extraction rules. Two central components enable the FreeMesh-S: (1) three primitive structures of element extraction rules, which are constructed according to boundary patterns of any geometric boundary shapes; (2) a novel self-learning schema, which is used to automatically define and refine the relationships between the parameters included in the element extraction rules, by combining an Advantage Actor-Critic (A2C) reinforcement learning network and a Feedforward Neural Network (FNN). The A2C network learns the mesh generation process through random mesh element extraction actions using element quality as a reward signal and produces high-quality elements over time. The FNN takes the mesh generated from the A2C as samples to train itself for the fast generation of high-quality elements. FreeMesh-S is demonstrated by its application to two-dimensional quad mesh generation. The meshing performance of FreeMesh-S is compared with three existing popular approaches on ten pre-defined domain boundaries. The experimental results show that even with much less domain knowledge required to develop the algorithm, FreeMesh-S outperforms those three approaches in essential indices. FreeMesh-S significantly reduces the time and expertise needed to create high-quality mesh generation algorithms.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2021. Published by Cambridge University Press
Figure 0

Fig. 1. Quad mesh generation process (Yao et al., 2005).

Figure 1

Fig. 2. Three primitive generation rules (Zeng and Cheng, 1993).

Figure 2

Fig. 3. Changes of intermediate boundary shapes: all boundaries are represented in red lines from (2) to (9).

Figure 3

Fig. 4. Challenges in selecting a proper rule to extract an element for an edge V1V2.

Figure 4

Fig. 5. Trade-off between qualities of an extracted element and the remaining boundary. (a–c) correspond to the situation in Figure 4b; (d) and (e) correspond to the situation in Figure 4f. Points A, A1, and A2 form better elements than B, B1, and B2.

Figure 5

Fig. 6. Element extraction architecture.

Figure 6

Fig. 7. Architecture of reinforcement learning (Sutton and Barto, 2018).

Figure 7

Fig. 8. Element extraction process as reinforcement learning.

Figure 8

Fig. 9. Partial boundary.

Figure 9

Fig. 10. A2C agent architecture for element extraction.

Figure 10

Fig. 11. A2C network structure. In general, the actor will simulate three primitive rules, as shown in Figure 2a–c. In the current implementation, the extraction rule in Figure 2a is not considered, and it will be implemented in the next version of the system.

Figure 11

Fig. 12. Coordinate transformation.

Figure 12

Fig. 13. Invalid situations of the element. P0 is the reference point, and P is the newly generated point.

Figure 13

Fig. 14. Different quality of elements.

Figure 14

Fig. 15. New boundary angles.

Figure 15

Fig. 16. FNN agent architecture.

Figure 16

Fig. 17. FNN module structure.

Figure 17

Fig. 18. Three types of outputs.

Figure 18

Fig. 19. Example of experience extraction of one element. In (a), each element has a tuple < element id; element quality > inside, where element id refers to the generation order of the element; and element quality is calculated by $\eta _i^e$; (b)–(d) show three types of patterns collected for training samples: (b) type 0; (c) type 1; (d) type 2.

Figure 19

Table 1. Examples of extracted samples for element 15: the reference point P0(x0, y0) and output point Pi(xi, yi) are the same across these samples, respectively

Figure 20

Table 2. Examples of extracted samples in Table 1 after coordinate transformation following Eq. (13)

Figure 21

Fig. 20. Proposed self-learning system FreeMesh-S: architecture.

Figure 22

Fig. 21. 10 experimental domains.

Figure 23

Table 3. Description of 10 testing domains

Figure 24

Table 4. Mesh quality metrics

Figure 25

Fig. 22. Model training process.

Figure 26

Fig. 23. Partial results of sampling.

Figure 27

Table 5. Extracted sample records from valid elements

Figure 28

Fig. 24. The first meshing result of the FNN model.

Figure 29

Table 6. Self-evolving process of FNN model

Figure 30

Fig. 25. Temporal training cost of A2C network.

Figure 31

Table 7. Different element quality threshold comparison: L, H indicates if the lower value or higher value is preferred, respectively.

Figure 32

Table 8. Comparison of FNN network structures: L, H indicate if the lower value or higher value is preferred, respectively.

Figure 33

Table 9. Meshing speed (elements per second) of A2C and FNN for all ten domains.

Figure 34

Fig. 26. All the meshing results of freeMesh-S.

Figure 35

Fig. 27. Meshing results of GB method.

Figure 36

Fig. 28. Meshing results of GD method.

Figure 37

Fig. 29. Meshing results of CP method.

Figure 38

Table 10. Mesh quality metrics of four methods on ten domains:L, H indicate if the lower value or higher value is preferred, respectively. The value in bold means the best among other approaches in a domain. GB refers to Gmsh-Blossom; GD indicates Gmsh-DelQuad; CP is CUBIT-Pave; and SS means the proposed self-learning system, FreeMesh-S

Figure 39

Fig. 30. Number of domains that each method achieves the best performance in each metrics.

Figure 40

Table 11. Comparison of geometry knowledge required to develop and implement the algorithms and system

Figure 41

Table 12. Averaged mesh quality metrics of four methods on ten domains:L, H indicate if the lower value or higher value is preferred, respectively. The value in bold means the best among other approaches in a domain. GB refers to Gmsh-Blossom; GD indicates Gmsh-DelQuad; CP is CUBIT-Pave; and SS means the proposed self-learning system, FreeMesh-S

Figure 42

Fig. 31. Multi-connected domain to single-connected domain. (1) multi-connected domain; (2) single-connected domain.