SlideShare a Scribd company logo
Dr Patrick Geoghegan
FEA/CFD for Biomedical
Engineering Week 9:
Practical CFD
What are the important flow physics involved?
(1) Heat transfer, radiation
(2) Steady/unsteady
(3) Incompressible/compressible
(4) Single/multi-phase
(5) Laminar/turbulent/transitional
• This will effect which equations are solved, and their form
Practical CFD –Flow Physics
• What is the area of primary interest (flow domain)?
– Is there a limitation on computational resources (memory, disk
space, CPU time)
– Simplification possible?
(1)Use symmetry planes
(2)Reduction from 3D to 2D
(3)Use of porosity to simplify complex obstructions
(4)Use cylindrical coordinates in 2D?
Practical CFD -Geometry
Are the inlet and outlet boundaries well defined?
• Move outlet boundary as far away from region of interest as possible
• Check whether upstream obstacles (outside flow domain) have significant effect on inlet
boundary and flow through the domain
• Concerned about effects of unknown inlet boundaries?
– Conduct sensitivity analysis to see effect of inlet boundary conditions on flow in domain
may need more information about inlet boundary
Practical CFD –Boundaries
• Grid must be fine enough to provide adequate resolution of
the important flow and geometrical features
• Where should elements be concentrated?
– Areas with high flow gradients (boundary layers etc.)
– Areas with significant changes in geometry
– Ideal grids are isotropic and finely spaced
Practical CFD –Mesh Quality
Use “Inflation Layers” at walls to resolve the boundary layer properly. Put at least 10 nodes within boundary layer for good resolution.
Practical CFD –Mesh Quality
Practical CFD –Mesh Quality
Avoid
• Highly skewed/warped elements
• Elements with high aspect ratios (ratio of the
sides of an element)
• Mesh with high expansion ratio
Leads to inaccuracy and/or numerical
instabilities
Skewness < 0.9
Aspect ratio < 400
Cell transition < 1.2
Practical CFD –Mesh Quality
Expansion factor (ratio of size of any two adjacent cells) normally between 1.0 and 1.2, but can be as high as 1.5
Practical CFD –Mesh Quality
Avoid sudden change in mesh density
• Conduct a grid independence study
– Halve the grid spacing in each direction
– Compare the coarse and fine-grid simulations
– No change means grid independence
– Normally halve grid spacing twice for a thorough grid-independence study
• Check solution and change mesh where appropriate to improve mesh quality
• Use Automatic Mesh Adaptation (ANSYS Fluent)
• Automatic mesh refinement or coarsening in locations where solution variables
change rapidly
Practical CFD –Mesh Quality
• Since near-wall conditions are often predictable, wall functions can be used to determine the near-wall
profiles rather than using a fine mesh to actually resolve the profile
• In ANSYS Fluent the variable Yplus reports the location of the first vertex adjacent to the wall
Practical CFD Wall Functions
• Logarithmic-based wall functions
– each wall-adjacent vertex should be located within the log-law layer: y+ ≈ 20-200
• Resolved wall treatment
– each wall-adjacent vertex should be within the viscous sublayer : y+ ≈ 1 with a minimum of 10 nodes
in boundary layer
– Possible only with the automatic wall treatment available with ω- based turbulence models, e.g. SST,
which switches between wall function and low-Re wall treatment as the mesh is refined
• Scalable wall functions (k-ε models)
– the mesh is shifted virtually to y+ = 11.067, the point of transition from linear to logarithmic behaviour
– Further refinement of the mesh near the wall has no effect
Practical CFD Wall Functions
• In some situations, such as boundary layer separation, logarithmic-based wall functions do not correctly
predict the boundary layer profile
– logarithmic-based wall functions should not be used
– resolving the boundary layer can provide accurate results
Practical CFD Wall Functions
• Has the solution converged? What is the convergence criterion?
• Use monitoring points to track changes in variables with iteration (or time step)
• Place monitoring points where the largest changes in variables with iteration (or times step) are likely to
occur
(1) Areas with high gradients
(2) Close to or at outlet
Practical CFD -Convergence
Practical CFD -Convergence
Practical CFD -Convergence
Practical CFD -Convergence
• If time is not an issue and convergence rate is good, converge to as small a residual as possible
• Are there numerical issues?
– Reduce under-relaxation factors/false time-step
– Use a more robust numerical scheme (lower-order discretisation, say 1storder), at least
initially
– Use a more accurate numerical scheme (higher-order discretisation) as convergence is
approached
– Try double precision if residuals stagnate at high values
• You can change settings after a run and the initial guess for the new run will be the results of the
previous
Practical CFD -Convergence
• If you still have problems with convergence after considering validity of boundary conditions and
physical models AND checking numerical issues
poor mesh quality is likely cause
• Plot the residuals through flow domain, and check grid quality in areas with large residuals
Practical CFD -Convergence
• Problems with convergence in a steady-state problem? Is the flow actually unsteady?
– For transient calculations, finer grids mean that smaller time steps or higher order
discretisation schemes are required
Practical CFD -Convergence
Error and Uncertainty
• Waste of time
• Waste of resource
– Capital cost of computing equipment
– Software license, salary of CFD specialists
– Maintenance of computing equipment, information resource, ...
• Potential catastrophic failure
• The industry has performed a review of sources of error and developed guidelines:
Consequence of inaccurate CFD
• Error: a recognizable deficiency in a CFD model that is not caused by a lack of
knowledge
– Numerical error
– Coding error
– User error
• Uncertainty: a potential deficiency in a CFD model that is caused by lack of
knowledge
– Input uncertainty
– Physical model uncertainty
Definitions of error and uncertainty
• Roundoff error: arise because of the computational representation of real numbers by means of a finite
number of significant digits
• Can be managed by:
– Using double precision
– Avoid subtraction of almost equal-sized large numbers or addition of numbers with very large
difference in magnitude
• ROE——Digits
• 7 digits——Single precision
• 15 digits——Double precision
Numerical error
Example :
A simple arithmetic
operation performed
with a computer
in a single precision
using seven significant
digits
• Iterative convergence error: arises when an iterative solver is used to solve the governing
equation
– Assessed using normed residuals –residuals give an indication of how well the governing
equations are satisfied
– The residuals are normalized so that the same convergence criterion can be applied to
different flow situations
• Discretization error: arise as a consequence of the approximation introduced during the
discretization of the continuous problem
– This can be managed by a careful mesh design
– Can in principle be made arbitrarily small be progressive reduction of the time step and
resolution
Numerical error
Balancing the error
As the mesh or time step size
decreases,
the discretization error decreases !
but the round-off error increase!
• Domain geometry:
– Discrepancy between CAD design intent and manufactured part (due to manufactured tolerance for
example)
– Effect of roughness
– Actual geometry represented by a finite number of straight edges and arcs –limited accuracy
• Boundary conditions
– Difficult to get flow variables such as velocity, temperature, species with a high degree of confidence
– Choice of type and location of open boundaries can be a challenge
• Fluid properties
– Assumption of constant fluid property is often an approximation. Need to carefully assess its
legitimacy
Input uncertainty
• Limited accuracy or lack of validity of submodels
– Often submodels such as turbulence are applied in condition which differ from well
tested/validated conditions
– K-ε often used in conditions wildly different to those for which the constants have been
identified
• Sometimes need to use a substandard model because:
– No other model exists
– Other models are computationally too expensive –eg. wall function vs resolving the entire
boundary layer profile
Physical model uncertainty
• Limited accuracy or lack of validity of simplifying assumptions:
• Many assumptions are made in a CFD simulation:
– Steady vs transient
– 2D vs 3D
– Incompressible vs compressible
– Adiabatic vs heat transfer across boundaries
– etc...
• In some cases, these assumptions are not straight forward and can produce incorrect results
– Eg. symmetric geometry which leads to unsymmetrical flows
– Steady flow assumption when the flow is not steady
Physical model uncertainty
• Verification: determining that a model implementation accurately represents the developer
conceptual description of the model and the solution to the model. “Solving the equations right”
• Validation: the process of determining the degree to which a model is an accurate
representation of the real world. “Solving the right equations”
Verification & Validation
• Involves quantifying the error:
– Roundoff error can be assessed by comparing results with single precision
(7 significant figures) or double precision (15 significant figures)
– Iterative or convergence error can be quantified by investigating the effect of
the stopping convergence threshold on quantities of interest such as
pressure drop, mass flow rate, etc...
– Discretization error is quantified by a systematic refinement of the space
and time mesh. We should aim to demonstrate monotonic reduction of the
discretization error
Verification
• Quantification of the input uncertainty
– Input uncertainty can be quantified by performing a sensitivity analysis –i.e.
performs a large number of CFD analysis with a range of possible input and
assess how the quantity of interest is affected.
– Physical modelling uncertainty requires comparison with high-quality
experimental results
Validation
• Good reporting of CFD is essential to be able to reproduce the results
• The report should include enough information on inputs and results
• Input documentation
– Description of problem & purpose of CFD simulation
– Code chosen & hardware
– Schematic of the computational domain with key dimensions, inlets, outlets
– Boundary conditions + justification
– Initial conditions
– Fluid properties
– Modelling option selection: laminar/turbulent, turbulence model, near wall treatment
– Grid design: detail of spatial and temporal mesh
– Solution algorithm choice –particularly non-default choices
– Iterative convergence criteria choice
– Summary of special “trick” needed for successful simulation
Reporting & Documentation
• Warning: high quality presentation of results not the same as high-quality results
• Before drawing conclusions from the CFD simulation, it is important to discuss:
– Verification –discuss effect of stopping criteria, mesh
– Quantify effect of input uncertainty
– Validation study
– Additional confidence that the simulation is reliable based on common fluid
engineering sense
Reporting & Documentation
• Fluid flows from high to low pressure (in pressure driven flows)
• Static pressure decreases when velocity increases
• Friction losses cause a decrease of total pressure in direction of the flow
• Fluid velocity decreases near walls (boundary layer)
• Flow should be eventually become fully developed in confined geometries
• Boundary layers rapidly separate under an adverse pressure gradient
• Flow usually separate at corners
• If flow separates, there will be recirculation
• Pressures are higher at the outside of a bend (or curved streamline) and lower at the inside due to centrifugal forces
• Pressure increases with depth in a liquid due to gravity
• Heat flows from hot to cold
• Hot fluid rises and cold fluid sinks due to buoyancy
• Turbulence is generated in regions of high shear
Simple things to check in CFD simulations

More Related Content

Similar to Part 3 Practical CFD(1).pdf

CFD_Lecture_1.pdf
CFD_Lecture_1.pdfCFD_Lecture_1.pdf
CFD_Lecture_1.pdf
ssusercf6d0e
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)
Khusro Kamaluddin
 
Transonic turbulent flow around an aerofoil using cfd
Transonic turbulent flow around an aerofoil using cfdTransonic turbulent flow around an aerofoil using cfd
Transonic turbulent flow around an aerofoil using cfd
Sukanto Bagchi
 
Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012 Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012
The Air Force Office of Scientific Research
 
Inside3DPrinting_BrentStucker
Inside3DPrinting_BrentStuckerInside3DPrinting_BrentStucker
Inside3DPrinting_BrentStucker
Mediabistro
 
Introduction to CAE and Element Properties.pptx
Introduction to CAE and Element Properties.pptxIntroduction to CAE and Element Properties.pptx
Introduction to CAE and Element Properties.pptx
DrDineshDhande
 
CFD Best Practices and Troubleshooting - with speaker notes
CFD Best Practices and Troubleshooting - with speaker notesCFD Best Practices and Troubleshooting - with speaker notes
CFD Best Practices and Troubleshooting - with speaker notes
Hashan Mendis
 
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
Sandia National Laboratories: Energy & Climate: Renewables
 
CFD Best Practices & Key Features
CFD Best Practices & Key FeaturesCFD Best Practices & Key Features
CFD Best Practices & Key Features
Design World
 
Computational fluid dynamics
Computational fluid dynamicsComputational fluid dynamics
Computational fluid dynamics
Ravi Choudhary
 
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
Foiling Week™
 
Discretization.pptx
Discretization.pptxDiscretization.pptx
Discretization.pptx
Narayana Swamy G
 
Cfd 0
Cfd 0Cfd 0
Computational fluid dynamics (cfd)
Computational fluid dynamics                       (cfd)Computational fluid dynamics                       (cfd)
Computational fluid dynamics (cfd)
BhavanakanwarRao
 
6. Industrial Projects 4 - Presentation (Final)
6. Industrial Projects 4 - Presentation (Final)6. Industrial Projects 4 - Presentation (Final)
6. Industrial Projects 4 - Presentation (Final)Suvern Moodley
 
10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis
Usha Mehta
 
Fluent and Gambit Workshop
Fluent and Gambit WorkshopFluent and Gambit Workshop
Fluent and Gambit Workshop
khalid_nitt
 

Similar to Part 3 Practical CFD(1).pdf (20)

CFD_Lecture_1.pdf
CFD_Lecture_1.pdfCFD_Lecture_1.pdf
CFD_Lecture_1.pdf
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)
 
AutoSim Nov2006a
AutoSim Nov2006aAutoSim Nov2006a
AutoSim Nov2006a
 
How accurate is cfd simulation
How accurate is cfd simulationHow accurate is cfd simulation
How accurate is cfd simulation
 
Transonic turbulent flow around an aerofoil using cfd
Transonic turbulent flow around an aerofoil using cfdTransonic turbulent flow around an aerofoil using cfd
Transonic turbulent flow around an aerofoil using cfd
 
Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012 Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012
 
Inside3DPrinting_BrentStucker
Inside3DPrinting_BrentStuckerInside3DPrinting_BrentStucker
Inside3DPrinting_BrentStucker
 
Introduction to CAE and Element Properties.pptx
Introduction to CAE and Element Properties.pptxIntroduction to CAE and Element Properties.pptx
Introduction to CAE and Element Properties.pptx
 
CFD Best Practices and Troubleshooting - with speaker notes
CFD Best Practices and Troubleshooting - with speaker notesCFD Best Practices and Troubleshooting - with speaker notes
CFD Best Practices and Troubleshooting - with speaker notes
 
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
2014 PV Performance Modeling Workshop: Optimization strategies with Pvsyst fo...
 
CFD Best Practices & Key Features
CFD Best Practices & Key FeaturesCFD Best Practices & Key Features
CFD Best Practices & Key Features
 
Computational fluid dynamics
Computational fluid dynamicsComputational fluid dynamics
Computational fluid dynamics
 
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
July 8th 2014 - Presentation by Mario Caponnetto: "CFD method for foil design"
 
Discretization.pptx
Discretization.pptxDiscretization.pptx
Discretization.pptx
 
Cfd 0
Cfd 0Cfd 0
Cfd 0
 
Computational fluid dynamics (cfd)
Computational fluid dynamics                       (cfd)Computational fluid dynamics                       (cfd)
Computational fluid dynamics (cfd)
 
6. Industrial Projects 4 - Presentation (Final)
6. Industrial Projects 4 - Presentation (Final)6. Industrial Projects 4 - Presentation (Final)
6. Industrial Projects 4 - Presentation (Final)
 
10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis10 static timing_analysis_1_concept_of_timing_analysis
10 static timing_analysis_1_concept_of_timing_analysis
 
Fluent and Gambit Workshop
Fluent and Gambit WorkshopFluent and Gambit Workshop
Fluent and Gambit Workshop
 
Cfx12 01 intro_cfd
Cfx12 01 intro_cfdCfx12 01 intro_cfd
Cfx12 01 intro_cfd
 

More from SajawalNawaz5

What is FEA and CFD(2).pdf
What is FEA and CFD(2).pdfWhat is FEA and CFD(2).pdf
What is FEA and CFD(2).pdf
SajawalNawaz5
 
Part 3 Residuals.pdf
Part 3 Residuals.pdfPart 3 Residuals.pdf
Part 3 Residuals.pdf
SajawalNawaz5
 
Part 3 Beams(1).pdf
Part 3 Beams(1).pdfPart 3 Beams(1).pdf
Part 3 Beams(1).pdf
SajawalNawaz5
 
Part 2 RANS.pdf
Part 2 RANS.pdfPart 2 RANS.pdf
Part 2 RANS.pdf
SajawalNawaz5
 
Part 2_Fundamentals Recap(1).pdf
Part 2_Fundamentals Recap(1).pdfPart 2_Fundamentals Recap(1).pdf
Part 2_Fundamentals Recap(1).pdf
SajawalNawaz5
 
Part 2 Revision.pdf
Part 2 Revision.pdfPart 2 Revision.pdf
Part 2 Revision.pdf
SajawalNawaz5
 
Part 1_Recap and background.pdf
Part 1_Recap and background.pdfPart 1_Recap and background.pdf
Part 1_Recap and background.pdf
SajawalNawaz5
 
Part 1 Last weeks summary.pdf
Part 1 Last weeks summary.pdfPart 1 Last weeks summary.pdf
Part 1 Last weeks summary.pdf
SajawalNawaz5
 
Part 2 Boundary Conditions.pdf
Part 2 Boundary Conditions.pdfPart 2 Boundary Conditions.pdf
Part 2 Boundary Conditions.pdf
SajawalNawaz5
 
FEA and CFD process part 2(2).pdf
FEA and CFD process part 2(2).pdfFEA and CFD process part 2(2).pdf
FEA and CFD process part 2(2).pdf
SajawalNawaz5
 
Part 1_Blood.pdf
Part 1_Blood.pdfPart 1_Blood.pdf
Part 1_Blood.pdf
SajawalNawaz5
 
Part 2 Members Under Axial Loading(1).pdf
Part 2 Members Under Axial Loading(1).pdfPart 2 Members Under Axial Loading(1).pdf
Part 2 Members Under Axial Loading(1).pdf
SajawalNawaz5
 
Part 1 Last weeks summary (1).pdf
Part 1 Last weeks summary (1).pdfPart 1 Last weeks summary (1).pdf
Part 1 Last weeks summary (1).pdf
SajawalNawaz5
 
Part 2 Momentum Pt 3(1).pdf
Part 2 Momentum Pt 3(1).pdfPart 2 Momentum Pt 3(1).pdf
Part 2 Momentum Pt 3(1).pdf
SajawalNawaz5
 
Part 1_Methods for mechanically analysing a solid structure(1).pdf
Part 1_Methods for mechanically analysing a solid structure(1).pdfPart 1_Methods for mechanically analysing a solid structure(1).pdf
Part 1_Methods for mechanically analysing a solid structure(1).pdf
SajawalNawaz5
 
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdf
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdfPart 1 Biofluids Summary and CFD basics Pt 1(1).pdf
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdf
SajawalNawaz5
 
Part 2 CFD basics Pt 2(1).pdf
Part 2  CFD basics Pt 2(1).pdfPart 2  CFD basics Pt 2(1).pdf
Part 2 CFD basics Pt 2(1).pdf
SajawalNawaz5
 
Part 1 Recap and Minimum potential Energy(1).pdf
Part 1 Recap and Minimum potential Energy(1).pdfPart 1 Recap and Minimum potential Energy(1).pdf
Part 1 Recap and Minimum potential Energy(1).pdf
SajawalNawaz5
 
Part 1 Momentum Pt 2(1).pdf
Part 1 Momentum Pt 2(1).pdfPart 1 Momentum Pt 2(1).pdf
Part 1 Momentum Pt 2(1).pdf
SajawalNawaz5
 

More from SajawalNawaz5 (19)

What is FEA and CFD(2).pdf
What is FEA and CFD(2).pdfWhat is FEA and CFD(2).pdf
What is FEA and CFD(2).pdf
 
Part 3 Residuals.pdf
Part 3 Residuals.pdfPart 3 Residuals.pdf
Part 3 Residuals.pdf
 
Part 3 Beams(1).pdf
Part 3 Beams(1).pdfPart 3 Beams(1).pdf
Part 3 Beams(1).pdf
 
Part 2 RANS.pdf
Part 2 RANS.pdfPart 2 RANS.pdf
Part 2 RANS.pdf
 
Part 2_Fundamentals Recap(1).pdf
Part 2_Fundamentals Recap(1).pdfPart 2_Fundamentals Recap(1).pdf
Part 2_Fundamentals Recap(1).pdf
 
Part 2 Revision.pdf
Part 2 Revision.pdfPart 2 Revision.pdf
Part 2 Revision.pdf
 
Part 1_Recap and background.pdf
Part 1_Recap and background.pdfPart 1_Recap and background.pdf
Part 1_Recap and background.pdf
 
Part 1 Last weeks summary.pdf
Part 1 Last weeks summary.pdfPart 1 Last weeks summary.pdf
Part 1 Last weeks summary.pdf
 
Part 2 Boundary Conditions.pdf
Part 2 Boundary Conditions.pdfPart 2 Boundary Conditions.pdf
Part 2 Boundary Conditions.pdf
 
FEA and CFD process part 2(2).pdf
FEA and CFD process part 2(2).pdfFEA and CFD process part 2(2).pdf
FEA and CFD process part 2(2).pdf
 
Part 1_Blood.pdf
Part 1_Blood.pdfPart 1_Blood.pdf
Part 1_Blood.pdf
 
Part 2 Members Under Axial Loading(1).pdf
Part 2 Members Under Axial Loading(1).pdfPart 2 Members Under Axial Loading(1).pdf
Part 2 Members Under Axial Loading(1).pdf
 
Part 1 Last weeks summary (1).pdf
Part 1 Last weeks summary (1).pdfPart 1 Last weeks summary (1).pdf
Part 1 Last weeks summary (1).pdf
 
Part 2 Momentum Pt 3(1).pdf
Part 2 Momentum Pt 3(1).pdfPart 2 Momentum Pt 3(1).pdf
Part 2 Momentum Pt 3(1).pdf
 
Part 1_Methods for mechanically analysing a solid structure(1).pdf
Part 1_Methods for mechanically analysing a solid structure(1).pdfPart 1_Methods for mechanically analysing a solid structure(1).pdf
Part 1_Methods for mechanically analysing a solid structure(1).pdf
 
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdf
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdfPart 1 Biofluids Summary and CFD basics Pt 1(1).pdf
Part 1 Biofluids Summary and CFD basics Pt 1(1).pdf
 
Part 2 CFD basics Pt 2(1).pdf
Part 2  CFD basics Pt 2(1).pdfPart 2  CFD basics Pt 2(1).pdf
Part 2 CFD basics Pt 2(1).pdf
 
Part 1 Recap and Minimum potential Energy(1).pdf
Part 1 Recap and Minimum potential Energy(1).pdfPart 1 Recap and Minimum potential Energy(1).pdf
Part 1 Recap and Minimum potential Energy(1).pdf
 
Part 1 Momentum Pt 2(1).pdf
Part 1 Momentum Pt 2(1).pdfPart 1 Momentum Pt 2(1).pdf
Part 1 Momentum Pt 2(1).pdf
 

Recently uploaded

The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
Bojamma2
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
taqyed
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
creerey
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
Corey Perlman, Social Media Speaker and Consultant
 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
fakeloginn69
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
zoyaansari11365
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
agatadrynko
 
FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134
LR1709MUSIC
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
dylandmeas
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
HARSHITHV26
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
Operational Excellence Consulting
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
uae taxgpt
 
Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
FelixPerez547899
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
RajPriye
 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
Lital Barkan
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
Aurelien Domont, MBA
 

Recently uploaded (20)

The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
 
FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
 
Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
 

Part 3 Practical CFD(1).pdf

  • 1. Dr Patrick Geoghegan FEA/CFD for Biomedical Engineering Week 9: Practical CFD
  • 2. What are the important flow physics involved? (1) Heat transfer, radiation (2) Steady/unsteady (3) Incompressible/compressible (4) Single/multi-phase (5) Laminar/turbulent/transitional • This will effect which equations are solved, and their form Practical CFD –Flow Physics
  • 3. • What is the area of primary interest (flow domain)? – Is there a limitation on computational resources (memory, disk space, CPU time) – Simplification possible? (1)Use symmetry planes (2)Reduction from 3D to 2D (3)Use of porosity to simplify complex obstructions (4)Use cylindrical coordinates in 2D? Practical CFD -Geometry
  • 4. Are the inlet and outlet boundaries well defined? • Move outlet boundary as far away from region of interest as possible • Check whether upstream obstacles (outside flow domain) have significant effect on inlet boundary and flow through the domain • Concerned about effects of unknown inlet boundaries? – Conduct sensitivity analysis to see effect of inlet boundary conditions on flow in domain may need more information about inlet boundary Practical CFD –Boundaries
  • 5. • Grid must be fine enough to provide adequate resolution of the important flow and geometrical features • Where should elements be concentrated? – Areas with high flow gradients (boundary layers etc.) – Areas with significant changes in geometry – Ideal grids are isotropic and finely spaced Practical CFD –Mesh Quality
  • 6. Use “Inflation Layers” at walls to resolve the boundary layer properly. Put at least 10 nodes within boundary layer for good resolution. Practical CFD –Mesh Quality
  • 8. Avoid • Highly skewed/warped elements • Elements with high aspect ratios (ratio of the sides of an element) • Mesh with high expansion ratio Leads to inaccuracy and/or numerical instabilities Skewness < 0.9 Aspect ratio < 400 Cell transition < 1.2 Practical CFD –Mesh Quality
  • 9. Expansion factor (ratio of size of any two adjacent cells) normally between 1.0 and 1.2, but can be as high as 1.5 Practical CFD –Mesh Quality
  • 10. Avoid sudden change in mesh density
  • 11. • Conduct a grid independence study – Halve the grid spacing in each direction – Compare the coarse and fine-grid simulations – No change means grid independence – Normally halve grid spacing twice for a thorough grid-independence study • Check solution and change mesh where appropriate to improve mesh quality • Use Automatic Mesh Adaptation (ANSYS Fluent) • Automatic mesh refinement or coarsening in locations where solution variables change rapidly Practical CFD –Mesh Quality
  • 12.
  • 13. • Since near-wall conditions are often predictable, wall functions can be used to determine the near-wall profiles rather than using a fine mesh to actually resolve the profile • In ANSYS Fluent the variable Yplus reports the location of the first vertex adjacent to the wall Practical CFD Wall Functions
  • 14. • Logarithmic-based wall functions – each wall-adjacent vertex should be located within the log-law layer: y+ ≈ 20-200 • Resolved wall treatment – each wall-adjacent vertex should be within the viscous sublayer : y+ ≈ 1 with a minimum of 10 nodes in boundary layer – Possible only with the automatic wall treatment available with ω- based turbulence models, e.g. SST, which switches between wall function and low-Re wall treatment as the mesh is refined • Scalable wall functions (k-ε models) – the mesh is shifted virtually to y+ = 11.067, the point of transition from linear to logarithmic behaviour – Further refinement of the mesh near the wall has no effect Practical CFD Wall Functions
  • 15. • In some situations, such as boundary layer separation, logarithmic-based wall functions do not correctly predict the boundary layer profile – logarithmic-based wall functions should not be used – resolving the boundary layer can provide accurate results Practical CFD Wall Functions
  • 16. • Has the solution converged? What is the convergence criterion? • Use monitoring points to track changes in variables with iteration (or time step) • Place monitoring points where the largest changes in variables with iteration (or times step) are likely to occur (1) Areas with high gradients (2) Close to or at outlet Practical CFD -Convergence
  • 20. • If time is not an issue and convergence rate is good, converge to as small a residual as possible • Are there numerical issues? – Reduce under-relaxation factors/false time-step – Use a more robust numerical scheme (lower-order discretisation, say 1storder), at least initially – Use a more accurate numerical scheme (higher-order discretisation) as convergence is approached – Try double precision if residuals stagnate at high values • You can change settings after a run and the initial guess for the new run will be the results of the previous Practical CFD -Convergence
  • 21. • If you still have problems with convergence after considering validity of boundary conditions and physical models AND checking numerical issues poor mesh quality is likely cause • Plot the residuals through flow domain, and check grid quality in areas with large residuals Practical CFD -Convergence
  • 22. • Problems with convergence in a steady-state problem? Is the flow actually unsteady? – For transient calculations, finer grids mean that smaller time steps or higher order discretisation schemes are required Practical CFD -Convergence
  • 24. • Waste of time • Waste of resource – Capital cost of computing equipment – Software license, salary of CFD specialists – Maintenance of computing equipment, information resource, ... • Potential catastrophic failure • The industry has performed a review of sources of error and developed guidelines: Consequence of inaccurate CFD
  • 25. • Error: a recognizable deficiency in a CFD model that is not caused by a lack of knowledge – Numerical error – Coding error – User error • Uncertainty: a potential deficiency in a CFD model that is caused by lack of knowledge – Input uncertainty – Physical model uncertainty Definitions of error and uncertainty
  • 26. • Roundoff error: arise because of the computational representation of real numbers by means of a finite number of significant digits • Can be managed by: – Using double precision – Avoid subtraction of almost equal-sized large numbers or addition of numbers with very large difference in magnitude • ROE——Digits • 7 digits——Single precision • 15 digits——Double precision Numerical error Example : A simple arithmetic operation performed with a computer in a single precision using seven significant digits
  • 27. • Iterative convergence error: arises when an iterative solver is used to solve the governing equation – Assessed using normed residuals –residuals give an indication of how well the governing equations are satisfied – The residuals are normalized so that the same convergence criterion can be applied to different flow situations • Discretization error: arise as a consequence of the approximation introduced during the discretization of the continuous problem – This can be managed by a careful mesh design – Can in principle be made arbitrarily small be progressive reduction of the time step and resolution Numerical error
  • 28. Balancing the error As the mesh or time step size decreases, the discretization error decreases ! but the round-off error increase!
  • 29. • Domain geometry: – Discrepancy between CAD design intent and manufactured part (due to manufactured tolerance for example) – Effect of roughness – Actual geometry represented by a finite number of straight edges and arcs –limited accuracy • Boundary conditions – Difficult to get flow variables such as velocity, temperature, species with a high degree of confidence – Choice of type and location of open boundaries can be a challenge • Fluid properties – Assumption of constant fluid property is often an approximation. Need to carefully assess its legitimacy Input uncertainty
  • 30. • Limited accuracy or lack of validity of submodels – Often submodels such as turbulence are applied in condition which differ from well tested/validated conditions – K-ε often used in conditions wildly different to those for which the constants have been identified • Sometimes need to use a substandard model because: – No other model exists – Other models are computationally too expensive –eg. wall function vs resolving the entire boundary layer profile Physical model uncertainty
  • 31. • Limited accuracy or lack of validity of simplifying assumptions: • Many assumptions are made in a CFD simulation: – Steady vs transient – 2D vs 3D – Incompressible vs compressible – Adiabatic vs heat transfer across boundaries – etc... • In some cases, these assumptions are not straight forward and can produce incorrect results – Eg. symmetric geometry which leads to unsymmetrical flows – Steady flow assumption when the flow is not steady Physical model uncertainty
  • 32. • Verification: determining that a model implementation accurately represents the developer conceptual description of the model and the solution to the model. “Solving the equations right” • Validation: the process of determining the degree to which a model is an accurate representation of the real world. “Solving the right equations” Verification & Validation
  • 33. • Involves quantifying the error: – Roundoff error can be assessed by comparing results with single precision (7 significant figures) or double precision (15 significant figures) – Iterative or convergence error can be quantified by investigating the effect of the stopping convergence threshold on quantities of interest such as pressure drop, mass flow rate, etc... – Discretization error is quantified by a systematic refinement of the space and time mesh. We should aim to demonstrate monotonic reduction of the discretization error Verification
  • 34. • Quantification of the input uncertainty – Input uncertainty can be quantified by performing a sensitivity analysis –i.e. performs a large number of CFD analysis with a range of possible input and assess how the quantity of interest is affected. – Physical modelling uncertainty requires comparison with high-quality experimental results Validation
  • 35. • Good reporting of CFD is essential to be able to reproduce the results • The report should include enough information on inputs and results • Input documentation – Description of problem & purpose of CFD simulation – Code chosen & hardware – Schematic of the computational domain with key dimensions, inlets, outlets – Boundary conditions + justification – Initial conditions – Fluid properties – Modelling option selection: laminar/turbulent, turbulence model, near wall treatment – Grid design: detail of spatial and temporal mesh – Solution algorithm choice –particularly non-default choices – Iterative convergence criteria choice – Summary of special “trick” needed for successful simulation Reporting & Documentation
  • 36. • Warning: high quality presentation of results not the same as high-quality results • Before drawing conclusions from the CFD simulation, it is important to discuss: – Verification –discuss effect of stopping criteria, mesh – Quantify effect of input uncertainty – Validation study – Additional confidence that the simulation is reliable based on common fluid engineering sense Reporting & Documentation
  • 37. • Fluid flows from high to low pressure (in pressure driven flows) • Static pressure decreases when velocity increases • Friction losses cause a decrease of total pressure in direction of the flow • Fluid velocity decreases near walls (boundary layer) • Flow should be eventually become fully developed in confined geometries • Boundary layers rapidly separate under an adverse pressure gradient • Flow usually separate at corners • If flow separates, there will be recirculation • Pressures are higher at the outside of a bend (or curved streamline) and lower at the inside due to centrifugal forces • Pressure increases with depth in a liquid due to gravity • Heat flows from hot to cold • Hot fluid rises and cold fluid sinks due to buoyancy • Turbulence is generated in regions of high shear Simple things to check in CFD simulations