Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Contents
Overview
Basics of CFD
Numerical Model in CFD
Steps in a CFD Simulation
Questions Welcome!
What is CFD?
Uses of CFD
Process/Food Industry
Automotive/Mechanical
Architectural
Environmental
conservation volume
what is
made/destroyed
Conservation volume:
what goes in + what is made/destroyed = what goes out
control surface
Conservation Principle
Fluid flow in most devices can be described using the principles of conservation of mass,
momentum and energy (also species etc.)
Mass conservation says that matter is neither created or destroyed, but rather
conserved
Momentum conservation is really just an expression of Newton’s First Law
Energy conservation is a statement of First Law of Thermodynamics
CFD is based on these fundamental laws!
Mass Conservation
control surface
Mass
Mass in Mass out
storage
control volume
In words
Rate of increase
of mass in volume = Mass flow out - Mass flow in
Integral Equation
0 cv d cs v dA
t
Energy Conservation
Conservation of mass
t xj
u j 0
Conservation of momentum
t
u i
xj
u j u i
P ij
xi x j
Sui
Conservation of energy
u j H j u SE
P q
H
t t xj x j x j i ij
xi coord dir' ns H total enthalpy
ui velocities ij viscous stress tensor
P = static pressure q j diffusive heat flux
= density S = source terms
19 © 2018 ANSYS, Inc. November 26, 2018
Auxiliary quantities:
ui ui
Total Enthalpy H h
2
ui u j 2 ul
ij
xj xi 3 xl ij
Stress-Strain Relation
T Yk
q j k hk
n
xj k xj
Heat Flux
2T 0
for k = constant
T=100 T=0
2T 0
2T 2T
or 0
x 2 y2 q=0
Non-linear equations
Discrete methods
q=0
control
volume
qd 0 q dn = 0
cv cs
n = unit surface normal vector
5a. Approximate all volume and 5b. Approximate all volume and
surface flux terms surface flux terms
k n
q dn = qn n 0 Toutside Tinside 0
N
N
cs n 1 i 1 s i
control control
volume volume
q is the representative k
where q - (T+ T- )
heat flux on each face s
N = number of faces
n = surface area
a i Toutside Tinside 0
N N
n
i 1
Pe E
kn
W w
where a i
s
s S
a p a e a w a n as
8. Final Details
Apply boundary conditions
• specify temperature where known
• set heat flux where known j
i
Assemble set of algebraic equations
Hybrid Method
Output
conservation equations
contain some divergence
terms: the convection and
diffusion
use Gauss divergence
theorem to convert volume
integrals to surface integrals
for these terms only
j d j dn j
xj S Control Surface, S
X
X
X
X
j dn j
ip
j n j ip
S
Integration points (ip)
0
Transient
t
X
X
q nip dsip
n
X
X
Diffusion X
X
ip
ip1
Sources S
solution gradients
• accuracy
X
X
Correction: X
X
ip SUD physical ip
• diffusion
X
• improves resolution of
streamwise gradients
• second order accuracy
42 © 2018 ANSYS, Inc. November 26, 2018
Accurate Gradient Resolution
X X
X X X
X X
X X X
Element based
Finite Volume Method
X
X
X
X X X
X
X
Standard
Finite Volume Method
Final points
•AMG solver gives scaleable performance
–solution time is linearly proportional to number of nodes
• double the grid, solution time doubles
–other solvers do not have this desirable property (some give quadratic
performance
• doubling the number of nodes increases solution time by a factor of four!)
•handles “stiff” equation sets
–an internal “adaptive” algorithm addresses “stiffness” issues, caused by grid
aspect ratio, for instance
Fine grid
Grid Refinement
0.00
-4.00
-5.00
-6.00
0 10 20 30 40 50 60 70 80 90 100
Work Unit
Validation - 2
3, 30 and 300.
-2.00
log 10 (RMS Residual)
-3.00
Comparison of algebraic
multigrid (anisotropic coarsening)
-4.00
(isotropic coarsening)
3 AMG
30 AMG
300 AMG
-6.00
0 20 40 60 80 100 120
Work Unit
Step I: Pre-processing
Grid Generation
• Process of generating finite volumes or cells
• Tetrahedral/Pyramidal/Prismatic/Hexahedral cells created
• Surface mesh and volume mesh make up the grid
Qualitative
• Graphical format
• Pressure, Temperature distribution
• Velocity field
ANSYS Workbench
“Design Exploration”
provides tools for
optimizing designs and
understanding the
parametric response.
Basic Workflow
TIP: There are two ways to create the connectors between the systems:
1) Use the mouse to draw a line (eg A2 to B2, B3 to C2 etc)
2) Or, simply drop the new system on the cell of the upstream one, and
the link will be generated automatically.
Cell States
Workbench can be used to transfer data between solvers. In this 1-way FSI (fluid-
structure-interaction) example, we transfer the loads from a Fluent CFD simulation
over to a Mechanical system to perform a stress analysis
The square connector shows that The round connector shows that the
the geometry created in cell A2 CFD results are being transferred as a
(CFD model) is being shared with Setup (input) condition to be used for
cell B3 (FEA model). FEA stress analysis.
Should you need to identify the individual files on your disk for each stage of the project,
these can be found by enabling View > Files. The resulting table will cross-reference the
directory and filename with the project cells.
Filenames Directory
The workbench project comprises many files and directories. If you need to either
archive the project, or bundle it to send to us for a Technical Support query, use the
‘Archive’ tool. This generates a single zipfile of the entire project.
CFD Modelling
Introduction to SCDM
ANSYS SpaceClaim
Direct Modeler is
supported only on the
‘Windows’ platform
Options Panel
Properties Panel
Graphics
Window
Status Bar
Ribbon Toolbar
Options Panel
• Displays options for modifying functions of active SpaceClaim
tool
– E.g., Pull tool contains option for add material, subtract
material, create fillet, chamfer, etc.
Properties Panel
• Displays properties of selected entity in Graphics window or
Structure panel
• Modify property values
– Color
Mini Toolbar
• Contains frequently used options of active tool
Tool Guide
• Contains different options to change behavior of active tool
– E.g., Tool guide of “Pull” tool contains option for Revolve,
Sweep, Scale, etc.
Tool Guide
Status Bar
Status Message: Displays message and progress information about current tool
Quick Measurement: Displays simple measurement of selected entities (distance, angle)
Error/Warning Message: Displays error and warning messages
Selection List: Displays list of currently selected objects to the right and being hovered over at the left
Selection Options: Hosts various options for selection
View Controls: Controls for spin, pan, zoom, and switch to previous or next views
• You can select vertices (including centers of circles and ellipses, midpoints of lines, and points on splines),
edges, planes, axes, faces, surfaces, rounds, solids, and components.
• Most commonly used selection methods are:
– Click to select an object.
– Double-click to select an edge loop. (Double-click again to cycle through alternate loops.)
– Triple-click to select a solid.
– Drag to create a selection Box (can also use Lasso, Polygon, and Paint). If you draw the box from left to right, all
objects fully enclosed within the box will be selected. If you draw the box from right to left, all objects touching the
box will be selected.
– Press CTRL+A to select all similar objects, such as faces, edges, or points on the same solid or surface part.
– Hold CTRL and select to add or remove items from the selection. Ctrl with box-selection toggles the selection; Shift
with box-selection adds to the selection.
Selection Selection
List options
Selection
Selecting entities
• Select vertices (including centers of circles and
ellipses, midpoints of lines, and points on
splines), edges, planes, axes, faces, surfaces,
rounds, solids, and components.
Notice: The controls shown here are true after doing a ‘Reset
All’ in File/SpaceClaim Options/Navigation. They can be changed
to match those of your CAD Software by changing the Theme or
can be customized.
Display (1)
Display tab
• Hosts several features for managing display
Change Transparency
of geometry
– Cut, Copy, Paste objects
– Standard and custom view
– Change object color
– Manage layers
– Change graphics mode
• Wireframe, shaded etc.
– Rendering options
– Change transparency
– Arrange graphics windows
– Etc.
Opaque Transparent
File Handling
File Formats
SpaceClaim Options
• Supports import from major CAD
packages (CATIA, Pro/E, NX, Solid
Works, etc.)
- Separate license not required
except for CATIA V5 and V6, JT, and
PDF3D
CFD Modelling
Introduction to ANSYS Meshing
Able to adapt and create Meshes for different Physics and Solvers
• CFD: Fluent, CFX and POLYFLOW
• Implicit, Explicit, Hydrodynamics, Rigid Dynamics ( Hydrodynamics for AQWA and
Rigid Dynamics for RBD)
• Electromagnetic
Integrates directly with other WB systems
Meshing Fundamentals
Mesh Requirements
• Efficiency & Accuracy
– Refine (smaller cells) for high solution gradients and fine geometric detail.
– Coarse mesh (larger cells) elsewhere.
• Quality
– Solution accuracy & stability deteriorates as mesh cells deviate from ideal
shape
Double click
Mesh in the
System
Toolbars
Worksheet
Details view
Section Planes
Details View
However, this assumes the geometry is such that the hex mesh is more
efficient and that the structured mesh aligns to the physics
Mesh refinement
need to the
continued through
all the model All Hex
Generate Mesh meshes the geometry using the current mesh settings.
Update meshes the geometry using the current mesh settings but also
first checks if the upstream geometry has changed and afterwards
updates the meshing cell status if it is attached to any downstream
cells.
RMB
• Named selections must be composed of “like” entities (all surfaces or all edges, all nodes, etc.).
• Element Quality
• Aspect Ratio
• Jacobian Ratio (MAPDL, Corner Nodes, or Gauss Points)
• Warping Factor
• Parallel Deviation
• Maximum Corner Angle
• Skewness
For Multi-Body Parts, go to corresponding body in Tree Outline
• Orthogonal Quality
to get its separate mesh statistics per part/body
• Characteristic Length
Fluent reports negative cell volumes if the mesh contains degenerate cells
Skewness mesh metrics spectrum
Meshing Demo
THANK YOU!