Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In this project, we will solve the problem given by our lecturer by using
a software. The software is call as ANSYS, this software will help us to solve the
problem with few steps. ANSYS is a general purpose software, used to simulate
interactions of all disciplines of physics, structural, vibration, fluid dynamics, heat
transfer and electromagnetic for engineers. So ANSYS, which enables to simulate tests
or working conditions, enables to test in virtual environment before manufacturing
prototypes of products.
Question 1
Density, Ρ = 1kg / m3
Velocity, v = 1m / s
Diameter, D = 0.2 m
𝜌𝑣𝐷
Re = 𝜇
(1)(1)(0.2)
= 2 𝑥 10−3
= 100
= 100 ≤ 2300
2) Create sketch
3) Create area
i. To create the rectangle from the sketch, click concept, click surfaces from
sketches then click anyway on the sketch and click apply.
ii. And the tools know that we need to create the area based on the command.
iii. Click generate and area will appears.
iv. Since the surface body is a flow domain, set the details of the surface body to
fluid domain.
v. Save project.
4) Create mesh
i. To start on mesher, double click on mesh and the meshing tool will appear.
ii. Highlight mesh in the tree and click update.
iii. Next step is mesh control. Select mesh control and click sizing.
iv. After you completed the Effect on numerical solution procedure and label
boundaries, the step for mesh is completed.
5) Setup
i. Click on the material. Right click on the fluid and click new
ii. Change the name, density and viscosity.
iii. Next, under the cell zone conditions, double click on the flow_domain (fluid)
and change the material to go – big – red.
i. Under the boundary conditions, make sure that the operating pressure is 1 atm.
i. Under the solution tree, highlight monitors and under the residuals, statistic, and
force monitors, click on the edit.
iv. To check the result, choose graphic and then double click the contours and
choose contours of axial velocity. Make sure that none of the surfaces is selected
and click display.
v. The result contours of axial velocity is shown below. From the result, we can
see that the axial velocity of the pipe is different. This is because the fluid
flowing near the wall is slower compared to the fluid flowing towards the
centerline.
i. Next, in order to run the iteration, click on the run calculation and set the
number of iterations, reporting interval and also profile update interval to 1
and press calculate.
ii. In order to see the result, choose contour and set the contour like shown
below and click display.
iv. Besides, we also can see the result for contours of mass imbalance.
v. To change iterate to convergence, change the number of iterations to 4 and
press calculate. Repeat step 2 and the result is shown below.
vi. The results below is the result residuals.
vii. For drag monitor implementation, highlight monitors and under create
select drag. Then tick print to console, plot and write. After that, choose the
pipe wall. The direction is X and make sure the force vector of X=1, Y=0
and Z=0.
viii. Set the area references value as shown below.
ix. Then, re-initialize the solution and set the number of iterations to 1000 and
run the calculation.
11) Results
1. First, select the contour icon and insert contours and name it as velocity
magnitude contour. Under location, choose periodic 1 and under variable,
choose velocity. Set # of contours to 51 as shown below :
2. Select view and tick apply reflection/mirroring in ZX plane and click apply.
After that, go to the default transform and untick the instancing info from
domain and tick apply reflection under ZX plane.
3. To determine the velocity flowing in the pipe at different point, choose probe
from the taskbar and change the setting to velocity. Click anywhere at the pipe
to determine the velocity at that point.
4. The full diagram of the velocity magnitude contours in the pipe.
5. To plot the pressure contours, select velocity contour, duplicate it and rename it
as pressure contours. Untick the velocity magnitude contours and double click
the pressure contours. Change the variable to pressure and apply it.
6. The pressure at the entrance is higher than the exit as shown below. The pressure
at the inlet is higher than the pressure at the outlet. This is because the velocity
at the inlet is much slower than the outlet. Since pressure is inversely
proportional to the velocity, therefore when the velocity is slow, the pressure
will be higher. Since the velocity at inlet is slower, it will experience higher
pressure, while velocity at the outlet is faster, the pressure will be lower.
7. To create the velocity vectors in the pipe, the following steps have to be done.
8. To plot velocity vectors, select vector and name it as velocity vectors and
change the location to periodic 1 and apply. Untick the pressure contours and
change the symbol size to 0.1 under symbol and apply.
9. From the taskbar, under location, choose line and name it as axial locations.
From the box, apply the following conditions as shown below. Choose velocity
vectors and set the locations as axial location and apply. Under symbol, set the
symbol to arrow 3D and symbol size of 0.5.
10. By using the parabolic velocity profile formula;
𝑟 2
𝑢 = 2𝑣𝑎𝑣𝑔 [1 − ( ) ]
𝑅
Where u is the velocity profile, vavg is the average velocity, r is the radial
distance from the pipe centroid, and R is the radius.
The velocity profile is obtained as shown in the Excel in the appendix. Then,
save the Excel in the project file.
11. Under data series, choose files and choose the Excel and apply it. Under general,
change the title as Velocity Profile. Under X axis, change the custom label as
Axial Velocity (m/s). Under Y axis, change the custom label as r (m). Under
data series, change the name of the “my outlet” to Fluent Solution and the “the
Excel” to Analytical Solution. The graph comparing Fluent Solution to
Analytical Solution as shown below.