Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This tutorial illustrates the setup of a dynamic mesh and the effect of using the remeshing approach.
The purpose of this tutorial is to get familiar with the third mesh method of the moving deforming
mesh module, which is called remeshing. Through this tutorial you will go through and set the methods,
play with the options and parameters, in order to understand and see the changes applied on the mesh.
Remeshing is applicable only to the tri and tet elements. So, not all elements can be used. Cells are
either added or deleted. Remeshing is often associated with smoothing
This tutorial is written with the assumption that you are familiar with the ANSYS Fluent tree and menu
structure. Some steps in the setup and solution procedure will not be shown explicitly.
6.1. Preparation
6.2. Remeshing for Local Cell
6.3. Changing Remeshing Settings
6.4. Removing Smoothing
6.5. Changing the Smoothing Settings
6.6. Changing the Size Meshing Interval Setting
6.7. Summary
6.1. Preparation
1. Copy the files (remesh.msh, local-cell-remesh.msh, bottom-motion.prof, and rotation.c)
to your working folder.
2. Launch Fluent.
b. Ensure that Display Mesh After Reading is enabled under Display Options in the Fluent
Launcher dialog box. This will ensure that the mesh is displayed automatically after reading.
e. Make sure you have set the correct working directory in the General Options tab.
Note
• Double Precision is recommended when moving deforming mesh is handling very thin
cells (about the width of micron - µm).
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Remeshing of a 2D Tri Mesh
Note
The mesh is a big domain with an object inside. This object is going to rotate around
the center line in the domain and also around itself.
ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.
3. Check the scale of the mesh to understand the dimensions of the mesh and the units used.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Remeshing for Local Cell
4. In the mesh display check each surface of the geometry so that you know which surface will be moved.
Display → Mesh...
c. Select each surface one by one and click Display to check which displayed surface represents which
name.
d. Select all Surfaces and click Display to display the full mesh.
a. Click Add... under Source Files dialog box to open the Select File dialog box.
b. Select the rotation.c file in the Select File dialog box and click OK.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Remeshing of a 2D Tri Mesh
c. Click Build.
d. Click Load and then close the Compiled UDFs dialog box.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Remeshing for Local Cell
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Remeshing of a 2D Tri Mesh
iv. Retain the default settings for the rest of the parameters.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Remeshing for Local Cell
Note
This selection is retained as the object is going to move inside the domain
without touching anything. So all the boundaries will be rigid bodies and they
will not be deformed or even remeshed.
ii. Click Use Defaults to set the Parameters to the default values. This will display the Minimum
Length Scale and the Maximum Length Scale.
iii. Set the Minimum Length Scale to 0.007 which is close to the default value.
iv. Similarly set the Maximum Length Scale to 0.084 which is also quite close to the default value.
v. Slightly decrease Maximum Cell Skewness from its default value to 0.6.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Remeshing of a 2D Tri Mesh
5. In the mesh display check each surface of the geometry so that you know which surface will be moved.
Display → Mesh...
c. Select each surface one by one and click Display to check which displayed surface represents which
name.
d. Select all Surfaces and click Display to display the full mesh.
Note
You will now create motion for the object which is inside the domain.
a. In the Dynamic Mesh Zones dialog box select object from the Zone Names drop-down list.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Remeshing for Local Cell
c. Retain the selection of object::libudf from the Motion UDF/Profile drop-down list.
d. In the Motion Attributes and Meshing Options tab retain the default settings.
Note
No change is made in Cell Height in the Meshing Options tab as you have a rigid
body which is not impacted in terms of number or distribution of nodes.
e. Click Create.
3. Click Apply.
Note
Previewing a mesh, allows you to quickly check the quality of the mesh motion
throughout the simulation cycle but, it updates the node locations. So the initial position
will not be restored. Thus save the case before clicking on Preview.
5. Click Preview.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Remeshing of a 2D Tri Mesh
Note
The object moves around an axis which is the center of the global domain and it also
moves around itself. The density of the cells around the object is not the same as it was
at the beginning. There are small cells next to the object and the transition to bigger
cells is quick. There is not much impact of the smoothing. You will now read the saved
case and try out different settings for the parameters and see their effect on the mesh.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Remeshing for Local Cell
3. Click Settings... in Mesh Methods to open the Mesh Method Settings dialog box.
a. In the Remeshing tab enter 0.025 for Minimum Length Scale and 0.06 for Maximum Length
Scale.
b. Click OK.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Remeshing of a 2D Tri Mesh
• Click Preview.
Note
By changing the default sizing, the number of big cells behind the object when it
moves, has disappeared. Even if the density around the object is not as it was at
the beginning, the transition or smoothing of the mesh around the object is much
better.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing Remeshing Settings
3. In the mesh display check each surface of the geometry so that you know which surface will be moved.
Display → Mesh...
c. Select each surface one by one and click Display to check which displayed surface represents which
name.
4. Check the scale of the mesh to understand the dimensions of the mesh and the units used.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Remeshing of a 2D Tri Mesh
i. Retain the default settings in the Smoothing tab. You will play around with these settings later.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing Remeshing Settings
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Remeshing of a 2D Tri Mesh
D. Set the Minimum Length Scale to 0.01 which is close to the default value.
E. Similarly set the Maximum Length Scale to 0.028 which is also quite close to the default
value.
F. Slightly decrease Maximum Cell Skewness from its default value to 0.5.
7. Before defining a motion to one of the surface zones you will read the motion profile file.
Define → Profiles...
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing Remeshing Settings
a. Click Read... in the Profiles dialog box to open the Select File dialog box.
b. Select the bottom-motion.prof file in the Select File dialog box and click OK.
8. To create an additional dynamic mesh zone click Create/Edit... under Dynamic Mesh Zones.
a. In the Dynamic Mesh Zones dialog box select bottom from the Zone Names drop-down list.
ii. In the Motion Attributes tab select profile-name from the Motion UDF/Profile drop-down
list.
iii. In the Meshing Options tab retain 0 for Cell Height since no elements will be deleted, or added.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Remeshing of a 2D Tri Mesh
b. Now select the zone left-side, from the Zone Names drop-down list.
ii. In the Meshing Options tab retain the default selections and click Zone Scale Info....
iii. From the values set in the Zone Scale Info dialog box set Minimum Length Scale to 0.019
in the Zone Parameters dialog box.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing Remeshing Settings
vi. In the Geometry Definition tab select plane from the Definition drop-down list.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Remeshing of a 2D Tri Mesh
c. Select the zone right-side, from the Zone Names drop-down list.
i. In the Geometry Definition tab set X in the Point on Plane group box to 0.3.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing Remeshing Settings
iii. Retain the settings in the Meshing Options tab which are the same as the left-side settings.
a. Enter 0.002 for Time Step Size and 10 for Number of Time Steps.
b. Click Apply.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Remeshing of a 2D Tri Mesh
Note
Previewing a mesh, allows you to quickly check the quality of the mesh motion
throughout the simulation cycle but, it updates the node locations. So the initial
position will not be restored. Thus save the case before clicking on Preview.
d. Click Preview.
Note
You can see that cells are deleted as the bottom wall moves up. As the bottom
wall starts to move down cells are added. But the cells that are added on the side
walls are quite wide and stretched.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Removing Smoothing
3. In the Dynamic Mesh task page open the Dynamic Mesh Zones dialog box by clicking on Create/Edit....
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Remeshing of a 2D Tri Mesh
b. Similarly select right-side from the list of Dynamic Mesh Zones and disable Smoothing in the
Meshing Options tab.
c. Click Create and close the Dynamic Mesh Zones dialog box.
• Click Preview.
Note
You can see the same behavior as previously when the bottom wall moves up.
When this latter moves down, the added cells on the side walls have a size equival-
ent to the one set in the Zone Parameters group box in the Meshing Options
tab. So, in the present setting, the cells are not very large or stretched as before.
Thus, it also impacts the volume mesh.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing the Smoothing Settings
Open the Mesh Method Settings dialog box by clicking Settings... in the Mesh Methods group
box.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Remeshing of a 2D Tri Mesh
• Click Preview.
Note
You can see the same behavior as the bottom wall moves up. When it moves down,
some cells which are added are stretched a lot, since the local smoothing is not
removed from the side walls. Even a smaller time step does not change the beha-
vior of the deforming mesh. The quality of the cells in the interior and also adjacent
to the side walls is much better than in the first case. Thus you can see that global
parameters do not have much effect on the side walls.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Changing the Size Meshing Interval Setting
Open the Mesh Method Settings dialog box by clicking Settings... in the Mesh Methods group
box.
a. In the Smoothing tab set Spring Constant Factor to 0.7 and Number of Iterations to 50.
b. In the Remeshing tab retain the selection of Local Cell and Region Face.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Remeshing of a 2D Tri Mesh
• Click Preview.
Note
You can see the same behavior as the bottom wall moves up. When this latter
moves, down the cells are more stretched since the mesh size interval is increased.
Thus you can see that before the cells are marked and remeshed, because they are
over the minimum and maximum cell values set in the global parameters, it will
only take into effect smoothing. That is the reason why the cells are much more
stretched than what used to be in the previous case when mesh interval was 2.
You can also try by reading the case again and setting the Size Meshing Interval
to 10. You can see the impact on the quality of cells added. The cells are more
stretched than with the Size Meshing Interval of 5 or 2.
5. Close Fluent.
6.7. Summary
In this tutorial, you have gone through the third mesh method of moving deforming mesh, which is
Remeshing. You have been playing with various options of this method, like:
• Local cell, used for an object in motion inside a domain where its limit does not change
• Region face, when the moving part does modify the limit of the domain
The Remeshing method can be applied on to 2D elements (tri), 3D ones (tetras), prisms for 2.5D method,
and mixed cells for the CutCell method.
Release 16.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.