applied computational fluid dynamics - ship...
TRANSCRIPT
![Page 1: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/1.jpg)
Applied Computational Fluid Dynamics
in Marine Engineering
![Page 2: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/2.jpg)
2
Objectives
• Understand basic CFD theory
• Learn how to set up and run simulations in Star CCM+ and interpret results
• Learn about limitations and important factors to achieve accurate and stable calculations
![Page 3: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/3.jpg)
3
Topics during the semester
1. Introduction to CFD and fluid mechanics
2. Governing equations in fluid flow
3. Discretization and solution methods
4. Meshing
5. Unsteady problems
6. Free-surface modeling
7. Turbulence and its modeling – the RANS equations
![Page 4: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/4.jpg)
4
Recommended Literature
Lecture Notes by V. Krasilnikov (Fronter)
Star CCM+ Guidelines
Best Practice Guidelines for Marine Applications of CFD (Fronter)
Other:
Any book about fundamentals in Fluid Mechanics (example Frank White)
![Page 5: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/5.jpg)
5
Before we start…
• Practical info about the course found on Blackboard
– Course plan
– Thursdays 12.15-16.00 in C215 / Fridays 8.15-12.00 in F414
– Assignments and deadlines
– Project
• Test Star CCM+ with vmware
• License key on Blackboard
• Login into the Steve Portal, e-learning (check if all can log in)
• Exam info
• List of students
![Page 6: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/6.jpg)
6
Teaching methods and material
• PowerPoint slides and blackboard
• Relevant examples in class (hand-written + Star CCM+)
• Main assignments every week.
– Relevant example given on forehand
– Walkthrough after hand-in
![Page 7: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/7.jpg)
7
Today
1. What is CFD, why is it needed and how is it used?
2. Examples
3. Hands-on example (filling of bucket)
4. Historical perspectives
5. Workflow in a CFD software
6. Some theory
7. Working example in Star CCM+
Recommended reading: page 1-19 in Lecture Notes by Krasilnikov
![Page 8: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/8.jpg)
8
1.1 What is CFD …
Systems that involves fluid flow, heat transfer, chemical reactions and
more are analyzed by means of computer-based simulations
![Page 9: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/9.jpg)
9
![Page 10: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/10.jpg)
10
![Page 11: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/11.jpg)
11
More examples - sloshing
![Page 12: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/12.jpg)
12
But is it just nice contour plots?
Diff. equations that describes the physical behaviour of a
fluid can not be solved analytically other than for simple
cases.
The governing equations are discretized and represented as
a system of linear or non-linear algebraic equations.
This system of equations must be solved
![Page 13: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/13.jpg)
13
Abbreviation
Computational + Fluid + Dynamics
Calculation or computation like in mathematics, physics or economy
A continuum of liquid or gasA continuous substance
Variation of a stateSomething changing in time and/or space
![Page 14: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/14.jpg)
14
Approximate solution of the derivative
Definition derivative of function 𝑓 = 𝑓(𝑥):
𝜕𝑓
𝜕𝑥𝑥𝑖
= limΔ𝑥→0
𝑓 𝑥𝑖 + Δ𝑥 − 𝑓 𝑥𝑖Δ𝑥
![Page 15: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/15.jpg)
15
Derivative vs. Numerical
Definition derivative of function 𝑓 = 𝑓(𝑥):
𝜕𝑓
𝜕𝑥𝑥𝑖
= limΔ𝑥→0
𝑓 𝑥𝑖 + Δ𝑥 − 𝑓 𝑥𝑖Δ𝑥
Δ𝑥
Δ𝑥
Δ𝑥
𝑓(𝑥)
![Page 16: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/16.jpg)
16
First Derivative
𝑥𝑖
𝑓(𝑥)
𝑖-1 𝑖+1 𝑖+2
𝑓′(𝑥)
𝑦
Forward difference: 𝑓′ 𝑥𝑖 ≈𝑓 𝑥𝑖+1 −𝑓 𝑥𝑖
𝑥𝑖+1−𝑥𝑖=
yi+1−yi
xi+1−xi
Backward difference: 𝑓′ 𝑥𝑖 ≈𝑓 𝑥𝑖 −𝑓 𝑥𝑖−1
𝑥𝑖−𝑥𝑖−1=
𝑦𝑖−yi−1
xi−xi−1
Central difference: 𝑓′ 𝑥𝑖 ≈𝑓 𝑥𝑖+1 −𝑓 𝑥𝑖−1
𝑥𝑖+1−𝑥𝑖−1=
𝑦𝑖+1−yi−1
xi+1−xi−1
![Page 17: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/17.jpg)
17
Navier-Stokes equations (1 of 3)
𝜕𝑢
𝜕𝑡+𝜕 𝜌𝑢𝑢
𝜕𝑥+𝜕 𝜌𝑣𝑢
𝜕𝑦+𝜕 𝜌𝑤𝑢
𝜕𝑧
= −𝜕𝑝
𝜕𝑥+
𝜕
𝜕𝑥−2
3𝜇𝛻 ⋅ 𝑼 + 2𝜇
𝜕𝑢
𝜕𝑥+
𝜕
𝜕𝑦𝜇
𝜕𝑣
𝜕𝑥+𝜕𝑢
𝜕𝑦+
𝜕
𝜕𝑧𝜇
𝜕𝑢
𝜕𝑧+𝜕𝑤
𝜕𝑥+ 𝜌𝑓𝑥
![Page 18: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/18.jpg)
18
Mesh
![Page 19: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/19.jpg)
19
Simple example – a bucket with a hole
• Set up a diff equation for the height level h(t)
• Solve numerically and compare with analytic
• Use the Torricelis formula, 𝑉𝑒 ≈ 2𝑔ℎ 𝑡
• Approximate𝑑ℎ
𝑑𝑡with backward Euler
• ss
ℎ(𝑡)
Δ𝑡 = 1 −1
2
A1A2
2ℎ0𝑔
![Page 20: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/20.jpg)
20
Multi-Disciplinary Nature of CFD
Mathematics
Computer ScienceFluid Mechanics
AeronauticalEngineering
![Page 21: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/21.jpg)
21
Historical perspectives – 20th century1850-19xx
Reynolds (experiments, transition), Prandtl – boundary layer theory, mixing length, Taylor, KolmogorovNavier-Stokes equations
1930’s
Early numerical simulation of flow past cylinder at low speeds
1960’s
Los Alamos, Marker-and-Cell, Arbitrary Lagrangian-Eulerian (ALE), turbulence modelingBirth of the super-computer CDC6600 (3 Megaflops)
1970’s
Spalding (Imperial College London), SIMPLE, k-eps, eddy break-up
1980’s
Finite Volume method, Patankar’s book
![Page 22: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/22.jpg)
22
Accuracy and cost
4. RANS
3. Euler
2. Nonlinear Potential
+Viscous
+Rotation
1. Linear Potential+Nonlinear
Inviscid, Irrotational Linear
![Page 23: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/23.jpg)
23
Advantages of CFD (vs. Experiments)
CFD Experiments
Low cost Costly
Pre-proc. Solving Preparation, Execution
Complete information Limited information
Control of model Controlling experiments
Model unchanged Repeatability/statistics
At any scale Scaled
Accuracy of numerical model Accuracy of instruments
![Page 24: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/24.jpg)
24
Non-dimensional numbers in fluid dyn.
Name Definition Meaning
Reynolds number𝑅𝑒 =
𝜌U𝐿
𝜇
Ratio of inertial and viscous forces
Froude number𝐹𝑟 =
U
𝑔 ⋅ 𝐿
Ratio of inertial and gravitational forces
Strouhal number𝑆𝑡 =
𝑓𝐿
𝑈
Ration of unsteady velocity to ambientvelocity
Euler number𝐸𝑢 =
Δ𝑃
𝜌𝑉2
Ratio of stream pressure and inertia
![Page 25: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/25.jpg)
25
Non-dimensional coefficients
Name Definition Meaning
Force coefficient(or drag)
𝐶𝐹 =𝐹
𝜌𝐴𝑈2/2
Moment coefficient𝐶𝑀 =
𝑀
𝜌𝑧𝐴𝑈2/2
Pressure coefficient 𝐶𝑝 =𝑝 − 𝑝∞𝜌𝑈2/2
![Page 26: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/26.jpg)
26
Example use of non-dim. number
• Internal flow in a pipe
![Page 27: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/27.jpg)
27
THEORY PRACTICE
CAD model
Physicalproblem
Conservation equations + Bound. Cond.
Discretize
Solvealgebraicequations
Run simulation
![Page 28: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/28.jpg)
28
How is it done in theory?
From: “The Finite Volume Method in Computational Fluid Dynamics” – Moukalled et al.
![Page 29: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/29.jpg)
29
How is it done in practice?
1. Pre-processing
2. Solving
3. Post-processing
![Page 30: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/30.jpg)
30
CFD workflowInitial
Geometry
PhysicalModel
Boundaries
MeshGeneration
Calculation
Post-Processing / modification
![Page 31: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/31.jpg)
31
Preprocessing
1. Define the solution domain
2. Prepare the necessary CAD model
3. Define the regions: Fluid, solid or mixture
4. Define boundary- and initial conditions
5. Meshing (numerical grid)
6. Select physical models
7. Operating conditions
8. Solver controls
9. Monitors
![Page 32: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/32.jpg)
32
Solving• The discretized conservation equations are solved directly or
iteratively. A number of iterations are usually required to reach
a converged solution.
• Convergence is reached when: Changes in solution variables from one iteration to the next are
negligible
Residuals provide a mechanism to help monitor this trend
Overall property of conservation is achieved
• The accuracy of a converged solution is dependent upon: Appropriateness and accuracy of the physical models.
Grid resolution and independence
Problem setup
![Page 33: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/33.jpg)
33
Post-processing
• Various types of visualization can be used to examine the
qualitative results. E.g. look for overall flow pattern, any
separation, vortex formation and so on Velocity vectors
Pathline and particle trajectory plots
Velocity or pressure magnitudes (contour plots)
XY-plots
Animations
• Numerical reporting tools can be used to examine the
quantitative results Flux balance
Surface and volume integrals
Forces and moments (including non-dimensional coefficients)
![Page 34: Applied Computational Fluid Dynamics - Ship Labshiplab.hials.org/cfd2017/01_Marine_CFD_course_2017_intro.pdf · 4 Recommended Literature Lecture Notes by V. Krasilnikov (Fronter)](https://reader031.vdocuments.net/reader031/viewer/2022022608/5b8962517f8b9a655f8c13e5/html5/thumbnails/34.jpg)
34
Good advice
Before you start working on the model, try to collect as
much information as you can about the problem.
The better you can predict the physical behavior of the
actual case, the better is your chance to make a realistic
model