ANSYS Fluent allows you to replace your mesh, so that you can continue to run your simulation on a new mesh without having to manually copy the case file settings or interpolate the existing data. Replacing the mesh globally may be helpful, for example, if you would like to perform a mesh refinement study with a prepared series of meshes, or if your results indicate that your current mesh is not of sufficient quality. Note that the data interpolation is done automatically during the replacement if data exists (that is, you have initialized the flow field or run a calculation).
Global mesh replacement is performed by clicking in the Setting Up Domain ribbon tab Zones group box), which opens the Select File dialog box (Figure 5.75: The Select File Dialog Box).
The steps for replacing the mesh using the Select File dialog box (Figure 5.75: The Select File Dialog Box) are as follows:
Select the replacement mesh from the appropriate folder.
By default, data is interpolated between matching zone pairs (that is, between the zones with the same names in both the current mesh and the replacement mesh). You can enable the Interpolate Data Across Zones option if you want to interpolate data across cell zones when replacing the mesh. This option is appropriate when the matching zone pairs do not have the same interior zone boundaries. Note that global conservation of data is not enforced when the Interpolate Data Across Zones option is enabled, so it should only be used when absolutely necessary. For best data interpolation, the zone boundaries of the replacement mesh should be coincident with those of the current mesh.
When running in parallel the
replacement mesh gets partitioned such that matching cells reside
on the same compute node. In some cases, differences in mesh resolution
can cause the mesh to not be able to find its interpolation cell on
the same compute node during interpolation. Fluent then automatically
enables Interpolate Data Across Zones to ensure
successful data interpolation across zones, even if you have not enabled
the option. To avoid this behavior use the Scheme command: (rpsetvar 'dynamesh/replace-mesh/partition-per-zone? #t). Note that using this command comes at the expense of requiring
additional repartitioning steps.
Click the button to replace the mesh.
The following limitations apply when replacing meshes:
The boundary conditions of the zones in the current mesh are mapped onto the zones with the same names in the replacement mesh, as described in Reading and Writing Boundary Conditions. If your replacement mesh contains zones for which no match is found, these zones will have the default boundary conditions for that zone type.
The replacement mesh is expected to be an ANSYS Fluent mesh
(.msh) file. You can select an ANSYS Fluent case
(.cas) file instead, but be aware that only
the mesh information will be used and all of the setup information
associated with that case file will be ignored.
If you intend to select an ANSYS Fluent case (.cas) file as the replacement mesh, you must first delete
any defined non-conformal mesh interfaces in the case file (as described
in Using a Non-Conformal Mesh in ANSYS Fluent).
You should ensure that the replacement mesh has the same mesh scaling as your current mesh. The data interpolation will not work properly if the meshes are scaled differently.