Manually Setting Up the Geometric Multigrid Solver
Overview
The geometric multigrid (GMG) solver accelerates the convergence of the iterative solver by solving the finite element problem on a series of meshes rather than a single one. The multigrid algorithm starts with the initial physics-controlled mesh or user-defined mesh and automatically builds a series of coarser meshes.
Each additional mesh is approximately twice as coarse as the previous one. The total number of meshes depends on the size of the model. Multigrid meshes are automatically built by the solver until the coarsest mesh leads to a low enough number of degrees of freedom to be solved with a direct solver.
While building the multigrid levels, the mesh size on the coarsest meshes might become larger than the size of the model’s smallest geometrical features. This is typically the case when the geometry includes small features or parts with a high aspect ratio. There are some different approaches that we can use to address this, which we discuss below.
Resolving Models with Complex Geometries Using the GMG Solver
Different strategies can be used to resolve large models containing complex geometries with the iterative multigrid solver. To illustrate them, we consider the example model geometry pictured below.
An example model geometry wherein a manual setup for the GMG solver is demonstrated. The geometry consists of a block containing a sphere that has a thin outermost layer.
This cube, made of one material, includes a sphere made of a second material and is coated with a thin layer of a third material. The thickness of this layer is much smaller than the size of the sphere, which would cause the multigrid solver to fail. Regardless of the type of geometry you are working with and the features contained therein, there are ways we can resolve this issue when encountered and proceed with using the GMG solver.
Approach 1: Replace Multigrid Meshes that Failed with User-Defined Meshes
Rather than letting the mesher automatically build coarser meshes from the initial mesh, manually build and replace the meshes that failed with user-defined meshing sequences. Then, select these meshes within the multigrid solver settings. The number of multigrid levels required to solve the model discussed in this article can be seen in theSettingswindow below for theMultigrid 1node.
The settings for the multigrid solver node used to set up a GMG solver.
In this example, three additional meshes are required, as seen in theNumber of multigrid levelsfield. After clicking theComputebutton, the solver returns the error message: "Problem setting up multigrid". To visualize the multigrid meshes and see how many of them failed, we can select theKeep generated multigrid levelscheck box in the settings for theMultigrid 1node (pictured above). After recomputing the solution, the multigrid levels are added as subfeatures to the study step nodeStep 1: Stationary.
The multigrid levels added under theStationarystudy step after the model is recomputed.
If you are unable to see the multigrid levels that populated under the study step node, you may need to toggle on the advanced study options available in the software. To enable viewing these nodes, you can use theShowbutton in theModel Buildertoolbar and select theMultigrid Levelcheck box under theStudycategory.
The corresponding coarser meshes will appear in the model tree. Mesh 1 is the original mesh. Meshes 2 through 4 represent the multigrid levels 1 to 3, respectively. As seen in the below snapshots, Mesh 4 fails because it is too coarse to discretize the geometry.
In order to fixMesh 4, we can follow one of these procedures:
- Build the meshing sequence forMesh 4manually using a finer mesh or a swept mesh
- Add a new coarse mesh,Mesh 5, and change the settings inMultigrid Level 3fromMesh 4toMesh 5
- Delete the coarsest mesh,Mesh 4, and the correspondingMultigrid Level 3node underStep 1: Stationaryto reduce the number of multigrid levels
Note: You need to switch theHierarchy generation methodon the multigrid solver toManualfor selecting the multigrid levels to consider. IfKeep generated multigrid levelsis checked and if there is no problem when setting up the multigrid levels, theHierarchy generation methodis automatically switched toManual.
Approach 2: Build All Multigrid Levels Manually
We can build the meshes for each multigrid level manually using user-defined meshing sequences. Each subsequent mesh should be approximately twice as coarse as the previous one. Set the initial mesh toMesh 1inStep 1: Stationaryand set the additional meshes as multigrid level subfeatures toStep 1: Stationary(Multigrid Level 1and3, for instance, should be set toMesh 2and4, respectively.)
Settings window for one of theMultigrid Levelnodes, where the geometry and mesh selection to be used is specified.
If the multigrid level subfeature is not available, activate the advanced study options in theShowbutton in theModel Buildertoolbar as discussed earlier in this article. Lastly, in the solver settings, we will want to change theHierarchy generation methodtoManual. Upon switching toManual, you will see theSettingswindows update.
There are a few examples in the Application Libraries where the GMG solver is used, such as the Submodel in a Wheel Rim tutorial model. The model can be found in the software through the Application Libraries (under Structural Mechanics Module > Tutorials) or in the respectiveApplication Gallery entry.
请提交与此页面相关的反馈,或点击此处联系技术支持。