Ansys Tutorial For CFD - RSM 1st Edition
Ansys Tutorial For CFD - RSM 1st Edition
Module 1 Geometry
In this module we´ll learn how to import a 3D geometry and create the enclosure domain in
order to perform a fluid flow analysis.
Steps:
Once we´ve opened Ansys Workbench, let’s create an analysis system for Fluent.
Create a fluid flow (fluent) analysis system
• Click and drag the module Fluid Flow (Fluent) from de Toolbox to the Project
Schematic until the red countered box appears; then “drop” the module into it.
Import geometry
Note: For this tutorial, the geometry to be imported can be in format .STP
(STEP) or .igs (IGES).
• Once the Analysis system was created, we must import the 3D model or the
geometry we want to analyze. To do that, right click on the option Geometry,
then follow the steps: Geometry/Import Geometry/Browse as shown in the
next figure.
• When the geometry has been imported correctly, we´ll know it when the
question mark is changed for a green tick (check mark). Now, we must
proceed by opening DesignModeler: right click on Geometry/Edit Geometry
in DesignModeler.
Creating the enclosure domain
• When the DM (DesignModeler) window is open, we must generate our
geometry by clicking on the command Generate.
• Please remember to choose the units that your geometry needs. The next
figure will show you how to do it.
• Next thing we must do, is create the Boolean to define the inlet area, outlet
area, and the surrounding wall, which are the boundary conditions of the
problem.
• We must create a subtract operation and define the “wind tunnel volume” (the
box surrounding the Geometry) and the “Geometry to work with”.
• Click on the enclosure without clicking on the Geometry and click on Not
selected tab from target bodies, then on apply.
• Now click on the + Symbol to expand the bodies list and select all the parts of
your Geometry (if it is an assembly) without selecting the last one of the list
“Solid”; click on Not selected from Tool Bodies, then on apply.
• Click on Generate.
• Repeat for “outlet” and “wall” (to select all four walls, keep Ctrl pressed as
you click on the four walls.
• Once you have the whole domain defined, you must see something like this:
• On the mesh window, once opened, there are two ways to generate an
automatic mesh.
• The first one is by clicking on the Generate Mesh tab as shown in the figure:
• When the automatic mesh is complete, we can close the entire mesh window
without saving, like in Geometry Module, but it is advisable to save
everything.
Module 3 Setup
This module will allow us to set the variables for our CFD analysis. We´ll learn how to
identify a surface area, a projected area, the whole volume, the static pressure distribution
over our geometry, as well as how to render velocity vectors along the geometry.
Steps
Let´s start this module by opening the Setup window (which is actually the Fluent Launcher)
as shown next:
Stablishing boundary conditions and materials
• First thing we have to do, is to define the fluid that we are going to work with;
it can be air, CO2, hydrogen, etc.
• To do that, expand the Material and Fluid tabs, then double click on Air, and
on the Create/edit materials window open Fluent Database to search the
appropriate materials.
• When we find the materials to work with in Fluent Database, click on Copy
and close the Database, then select Change/create to add these materials (we
must do one at a time).
• Now we must stablish the boundary conditions for the flow inlet and the flow
outlet.
• Double click “inlet” on the Boundary Conditions tree and set the desired inlet
velocity:
• After initializing the hybrid method, we´ll se the next figure on the bottom of
the window.
• Now we´re going to run the
calculation by setting the number
of iterations and the reporting
interval.
• Afterwards, we must click on
Calculate.
• It will take several minutes
(luckily!), so let’s be patient.
• Once the calculation is done, we must calculate the projected areas (for
escalating the results) and insert the data on Reference Values. The values on
the projected area, the leading edge in this case, we must be in the same axis
of the incoming flow.
• To calculate the projected areas, we must expand the Reports tab, and select
Projected Areas, then select the surface: Wall-solid (this will select the
incoming velocity profile). Don’t forget to select the flow axis; then click on
Compute.
• Let´s copy the area value and paste it on Reference Values as shown in the
next figure:
• In the reference values, we must insert all the data for our analysis, body
length (in the same axis as the projected surface), pressure, velocity, density,
etc.
• Once we´ve finished to insert the data/values, we must re-do the initialization
and calculation, this will increase the precision of the analysis.
• Clicking on any part of the wind profile, we can read on the bottom panel the
information given by Ansys on that point in the surface.
• Now, we´ll plot the vectors. If the vectors look very small, we must increase
the scale.
• On the expanded Graphics tab, double click Vectors and select the surface
“wall-solid”
• Like for the contours, we can probe the data from the vectors in order to know
the velocity at any point of our wing.
• After doing the graphics we can close Fluent in order to perform a major post-
processing of the results.
Module 4 Results
This is a shorter module, where we´ll learn how to create an iso surface to analyze the fluid
behavior along the wind profile.
Steps
Let´s open option 6 Results on workbench by double clicking on Results. Once the Results
window is open, we must do insert/location/IsoSurface and select the domain for the
IsoSurface; in this case, the domain will be “Y” axis:
• We can move the IsoSurface back and forth by moving the little bar in the
Value tab, as shown in the above figure.
• The previous step had a very important limitation: the IsoSurface must be over
the wing for these steps to work correctly.
• Now we must create a streamline and define the Start From surface; this
surface will be the IsoSurface previously created.
• We can define the number of particles to show in the animation.
• When finished all the steps click on Apply (it´s in the bottom left of the
window).
• Close Results window and save the Fluid Flow (fluent) analysis.
For now, we have finished this tutorial, congratulations! Now, let´s improve the rocket
science on Mexico!