Beruflich Dokumente
Kultur Dokumente
Antonio Catalano
Simulación numérica del
flujo alrededor de vehículo
Square ............................................................................................................................ 0
1. Sommario .................................................................................................... 1
2. Introduction ................................................................................................. 2
4. Mesh ............................................................................................................ 8
5. Results ....................................................................................................... 16
6. Bibliografia ............................................................................................... 41
1
2. Introduction
The purpose of this report is to verify the behavior of a motion fluid when it
impacts on square shaped cylinder.
Particularly, we will focus on the vortex created in behind the body when the air
flow bump into it with a constant velocity. Of course, the air flow behavior
depends on the geometry of the system and the speed of the air flow and,
consequently, from the Reynolds number. This is the reason why we are going
to study two different situation in order to compare the fluid behavior when the
fluid moves in laminar flows, with a small Reynold number (in our case it is
considered to be 𝑅𝑒 = 40); and when the fluid moves in turbulent flows, with a
In the first case, all the particles in the considered fluid move in an orderly way,
their trajectory create tiny layers which moves one on the other without
The first step to do, to solve this problem, is to define a proper domain of
observation, in order to use a software that can run a numerical simulation that
can help us predict the intensity of the vortexes in the area behind the body.
The software used is Ansys – Workbench, in its Fluent section, and in this report
are shown some steps we made in order to complete the simulation.
FLUID
SQUARE
𝑣(
3. System Model
First of all, it is necessary to size all the parameters of this problem and to realize
a sketch of the domain inside the software; of course, it can’t be done randomly
so following there are the observations that let us choose the value of each
parameter. All the observations are made in order to ensure truthfully results
and to reduce the simulation time.
Firstly, we did the Design Model which let us define the geometry of the system
and to size all the surfaces. In order to do that we realized a bi-dimensional
sketch, in the XY plane, that will be converted in the surface where all the forces
are applied.
3
Our problem is bi-dimensional because we are considering a cylinder which
has infinite width and the phenomenon at the edge of it don’t influence our
The system geometry establishes the creation of two different sketches: one of
them is rectangular shaped and it represent the domain of the simulation, the
other one is a square and it represent the body on which the fluid will bump into.
After that we will do a Boolean operation in order to subtract the square area
from the domain: in this way we will obtain a punched rectangle in which the air
will flow.
To do that, once both the sketches are drawn, it is possible to convert them into
surfaces through the command Surface from sketch paying attention that we
have to create two different surfaces, so we have to select Two base objects in
the specific menu.
4
At this point, we have to do a Boolean subtraction between the surfaces, it can
be done through the Create section paying attention to the order of selection.
Once the Generate button is pressed, the punched rectangle will appear.
5
3.2. Dimensions and profile conditions
As previously said, the sizes of the domain are very important to ensure truthfully
The first dimension to set is the edge of the square, it is decided from the start
and all the other dimensions will be set depending on it (𝐷). For example, the
base of the domain should be defined according to the fact that the simulation
has to start in a point where the fluid is not influenced by the cylinder so, it has
to be chosen big enough to respect this, but not too big in order to avoid the
calculation in unnecessary points of the domain. According to that, the distance
of the left edge of the domain from the square will be at 4,5 × 𝐷.
6
Likewise, we need to set the distances of the other edges of the rectangle from
the square: if we choose an edge too far from the square the software will
calculate all the forces in unnecessary points, otherwise we could lose some
important information. So, the rectangle’s height (𝐻) has been chosen of
12 × 𝐷, the base will be 20 × 𝐷. The square will be in the center of the rectangle,
so the distance between it and the upper edge and the lower edge is 5,5 × 𝐷;
we have already sad that the square is 4,5 × 𝐷 far from the left edge, so it will
7
4. Mesh
Computationally this kind of lattice is not efficient: the simulation will take a lot of
time to execute and the results will not be trustworthy [3]. The best way to solve
maximize the precision of the results: the lattice will be more solid in proximity
of the points of interest, in other words in the regions in which we expect the
physically quantity changes very quickly such as the edges of the square.
Instead, we expect that the regions far from the square are interested by slow
variations of physical quantities, so having a dense lattice is unnecessary.
8
For this reason, we have to split the work space in different areas, to do that we
have to return in the sketch section and modify it in order to draw the needed
lines to define the interest areas. After that we can transform those objects in
surfaces using the command’s combination Lines from Sketches and
Projection.
9
A this point the domain is going to be split in 8 different areas and we are going
to update it and delete the lines just drawn using Suppress Body.
10
Returning in the meshing software we can update the geometry and start
drawing the mesh. We split the set of the segments in 5 different groups: for
strictly each edge, the Bias type to choose the adequate trend and we payed
attention to the orientation of the Bias: in few cases it has been necessary to use
Invert.
The first two groups were the set of vertical segments in the upper domain, and
the one of lower domain, these two groups had to be specular so, for both of
them, we choose 50 divisions and the Bias factor of 10; as we sad they were
more solid near the square and they rarefy with the distance from it.
11
The third group was the set of horizontal segments at the left of the square, for
this group we choose the same parameters of the first two groups. Otherwise,
the fourth group, the set of horizontal segments in the right of the square, has
12
The last group was the set of segments that shape the square and all the
segments in the center of each edge of the rectangle; for it the number of
At this point we can generate the mesh using the Face Meshing command
paying attention to force the software in create only rectangles. If the mesh
sizing set was good enough, we will obtain a lattice of rectangles that is more
solid in the interesting point with dimension continuity in the segment’s joints.
Otherwise, we have to calibrate the previous parameters in order to obtain a
mesh just like the one in the following image.
13
14
An important Ansys tool let us display in the Console panel a report about the
mesh quality:
The last thing to do in this section of the software is to label each edge in order
to have references in the setup section. With the Name selection command, we
• Entrada
• Ariba
• Abajo
• Cuadrado
• Salida.
15
5. Results
At this point the domain is completely arranged, the next thing to do is to pass
all the input data to the software, after that we can lunch the simulation and
5.1.Setup configuration
In this section of the software it is possible to settle all the input of the software
and to decide which kind of simulation we are going to do.
In General panel we can adjust the mesh we did to the simulation parameter, a
very useful command is the Scale command, where we can choose the effective
dimension of the problem scaling all the dimensions. Moreover, from that same
panel, we can set the solver up choosing if the simulation we are going to launch
is pressure-based or density-based; if we are going to study the transient or the
steady state, and so on. Here we can also decide to add, in the force field, the
gravity acceleration.
16
In our case we choose to do a simulation pressure-based, in a planar 2D space
and we firstly choose to study the steady state without considering the gravity.
Moreover, we did a scale change choosing to transform the unit of
measurement from meters to centimeters.
The next panel in the software is the Models panel, inside it you can choose
which mathematic model the software has to use for each physical
17
After that we have to decide the material the objects in question are made of,
the software has a specific panel for that: we set up the fluid with constant
Regarding the solid materials, the only body in the system is the cylinder, for
this body it is not important to specify any material because it only effect the
thermic behavior of the system, but it is not important for us right now because
we already set OFF in the Energy models.
The main section here is the panel that let us set up the boundary conditions,
for each zone of the domain we have to decide its function, the fluid velocity and
so on:
18
- Entrada: it is a velocity inlet zone, the air enters in the domain from this
edge and we have to set up the velocity of it. To calculate the velocity,
we have to consider the Reynolds number [5]:
𝜌𝑣𝐿 𝜇
𝑅𝑒 = = 40 → 𝑣 = 𝑅𝑒 × = 2000 𝑚/𝑠
𝜇 𝜌𝐿
From this value we can easily understand that it is too big to imagine a
real situation with those values: we should have Drag and Lift forces too
big to be true; for that reason, it is better to study the problem in a
dimensionless way.
19
- Salida and Abajo: to set these zones we have to consider that the fluid
doesn’t have any vertical velocity because we set:
𝜕𝑈
= 𝑣@ = 0
𝜕𝑦
this can be done only if the problem has a vertical symmetry, for that
Reference values is the last panel in this section, in it you can set the last
parameters such as velocity, temperature, density and so on. The software,
20
5.2.Solution configuration
possible solution and, with some calculation, refresh this temporary solution
with a better one; this cycle is repeated over and over until the numerical
In our case the algorithm the software uses to refresh the previous solution
is the least square approximation and the quantity of pressure and velocity
are calculated as second order function.
21
Moreover, the software let us choose the under-relaxation factors which
𝑝CDE = 𝑝C + 𝛼H Δ𝑝
A CDE
𝑣 = 𝑣 C + 𝛼J Δ𝑣
If 𝛼H e 𝛼J are too high, solutions fluctuate too much and could never reach
a trustworthy value; instead, if they are too low it could take too much to
reach the final solution [7]. For this reason, it is very important to set up well
these two parameters; the software guide suggest us to choose two values
that respect this equation:
𝛼H + 𝛼J = 1
𝛼H = 0.3
K
𝛼J = 0.7
22
Moreover, thought the Monitor panel we choose to de-flag the option that
During the simulation it is possible to let the software show on screen the
simulation feedback in which we can obtain information about the
In this particular case the software will show us information about differential
equation’s residuals, one for the conservation of mass equation and two
from the movement equations. These residuals are the difference between
theoretical value and the one achieved through the numerical simulation. In
situation, if all the simulation parameters are good, they became very little
and constant.
23
Moreover, the software can display the trend of some values and how they
change during the iterations. This can be very useful to supervise the
convergence of the solutions. In our case we choose to show the trend of
the Area Weighted Average of pressure as Surface report. The software will
24
The number of iterations we did was affected by these plots: it was incremented
until all the quantities settle in a fixed value. After that point increasing the
number of iterations would be useless because it wouldn’t change the result
obtained in that moment.
parameters are constant in the beginning: we can verify that using the Contour
plot of static pressure and velocity. Otherwise, with the Hybrid initialization, the
software uses an inner algorithm to calculate the beginning values of velocity
and pressure. According to these facts, the initialization has been set as
Standard.
25
5.3.Results
After almost 400 iterations the Drag coefficient settled on a fixed value and
The final thing to is show the simulation results through graphical methods.
From the Contours section we can plot the trend of some important quantity:
• Velocity magnitude:
26
As we can see, the system has a horizontal symmetry; this is
QR
agreement that we set the derivate Q@ = 0.
The velocity magnitude increases very quickly when the fluid bump
into the cylinder, this phenomenon can be explained with the Venturi
• Stream function:
27
From this graph we can observe the path of the particles and it is quite
• Static pressure:
As we can see, when the fluid reaches the cylinder there is a region
in which the pressure increases. In this plot we can see again a
horizontal symmetry due to the fact that the forces on the upper and
the lower edges of the cylinder are equal and opposite, so summing
them, they cancel themselves.
Moreover, we can use XY-plots and Vectors to have graphical feedback from
• Velocity magnitude;
28
• Pressure on the edges of the cylinder
29
• Dinamic pressure, it depends from the velocity squared so the
trend is quite similar[10].
30
After this simulation it is interesting to show what changes using a bigger
𝜌𝑣𝐿
𝑅𝑒 =
𝜇
In this case we choose to modify the fluid speed that will be:
𝜇
𝑣 = 𝑅𝑒 × = 5000 𝑚/𝑠
𝜌𝐿
As we can see, it is bigger than the previous one due to the proportionality
between these two quantities.
31
In order to use the geometry used for the previous simulation, we can create
another equal one using the Duplicate command. At this point we have to
modify the velocity parameter in the Boundary Conditions and launch again
the simulation.
As we can see from the following image, in this case the residuals do not
converge to zero as before, they became bigger and bigger; a similar thing
happens to the drag and lift coefficients, they fluctuate with the iterations.
From these considerations we can imagine we will never reach a fixed
solution. In fact, as we will see, the solution will be time-variant.
32
To solve this kind of problems we have to modify some setting we previous
set: in the General panel, for example, we have to set the problem as
Transient; in the Solution Method panel, we set a Second Order Implicit
approximation for the time function.
33
Consequently, from now on, we will consider the time as a physical quantity
34
Before running the simulation, from the Run calculation panel, we set a very
little Δ𝑇 = 1 𝑚𝑠 and, for each one of them, we establish that the software has
to do 200 iterations.
At this point, we launch the simulation and we verify whether this number of
iterations is enough to let the simulation convergence, but they are not
enough.
A more efficient way to set those two parameters is using the Courant
35
This number gives back an information about the flow in each cell: it
compares the distance made by a particle with the dimension of the cell; in
plot: Cell Convective Courant number. With the parameters firstly set this
number is very big, that means that each particle does a distance very big
36
To calculate an adequate Δ𝑇 we can use the following equation:
Δ𝑇(
Δ𝑇 = = 6 × 10gh 𝑠
max(𝐶f )
With this new set the residuals are three orders of magnitude littler and the
iterations from 200 to 30. The product between the number of iterations for
each time step and the number of timesteps we want to consider gives us
the total number of iterations the software has to do.
37
Launching the simulation, we can plot again the drag and lift coefficient; for
a Transient problem, the permanent capacity is reached when the physical
case the drag coefficient fluctuates around the value of 1,7; otherwise, the
lift coefficient fluctuates between −0,3 and 0,3 with a null average value.
38
These results can be verified through the theoretical values shown following.
An important tool we can use on Ansys is the possibility to export a file video
39
40
6. Bibliografia
[3] Abbott, Ira H., and Von Doenhoff, Albert E.: Theory of Wing
Sections. Sections 1.2 and 1.3
[4] L. Gan, N. G. Ly, and G. P. Steven, Text. Res. J., 65, 660 (1995).
[5] Jermy M., "Fluid Mechanics A Course Reader," Mechanical
Engineering Dept., University of Canterbury, 2005, pp. d5.10.
41