Lecture Objectives: Explicit vs. Implicit Residual, Stability, Relaxation Simple algorithm.

Slides:



Advertisements
Similar presentations
8-2: Solving Systems of Equations using Substitution
Advertisements

Lecture Objectives: Simple algorithm Boundary conditions.
Lectures on CFD Fundamental Equations
Coupled Fluid-Structural Solver CFD incompressible flow solver has been coupled with a FEA code to analyze dynamic fluid-structure coupling phenomena CFD.
Peyman Mostaghimi, Martin Blunt, Branko Bijeljic 11 th January 2010, Pore-scale project meeting Direct Numerical Simulation of Transport Phenomena on Pore-space.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
Lecture Objectives: Review discretization methods for advection diffusion equation Accuracy Numerical Stability Unsteady-state CFD Explicit vs. Implicit.
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Taylor Series.
Lecture Objectives Review SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations Define Residual and Relaxation.
Next Class Final Project and Presentation – Prepare and me the ppt files 5-7 slides Introduce your problem (1-2 slides) – Problem – Why CFD? Methods.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
3x – 5y = 11 x = 3y + 1 Do Now. Homework Solutions 2)2x – 2y = – 6 y = – 2x 2x – 2(– 2x) = – 6 2x + 4x = – 6 6x = – 6 x = – 1y = – 2x y = – 2(– 1) y =
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
Lecture Objectives: Analyze the unsteady-state heat transfer Conduction Introduce numerical calculation methods Explicit – Implicit methods.
3-2 Solving Equations by Using Addition and Subtraction Objective: Students will be able to solve equations by using addition and subtraction.
© Fluent Inc. 10/26/ Introductory FLUENT Notes FLUENT v6.0 Jan 2002 Fluent User Services Center Solver Settings.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
Lecture Objectives Unsteady State Simulation Example Modeling of PM.
Using the Segregated and Coupled Solvers
Lecture Objectives Review Define Residual and Relaxation SIMPLE CFD Algorithm SIMPLE Semi-Implicit Method for Pressure-Linked Equations.
HW2 Due date Next Tuesday (October 14). Lecture Objectives: Unsteady-state heat transfer - conduction Solve unsteady state heat transfer equation for.
Modeling of the Unsteady Separated Flow over Bilge Keels of FPSO Hulls under Heave or Roll Motions Yi-Hsiang Yu 09/23/04 Copies of movies/papers and today’s.
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
Do Now (3x + y) – (2x + y) 4(2x + 3y) – (8x – y)
Solving Linear Equations Substitution. Find the common solution for the system y = 3x + 1 y = x + 5 There are 4 steps to this process Step 1:Substitute.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Solving Linear Systems by Substitution
Solve Linear Systems by Substitution January 28, 2014 Pages
Part 3 Chapter 12 Iterative Methods
Lecture Objectives Meshing Unsteady State CFD.
Lecture Objectives: Review discretization methods for advection diffusion equation –Accuracy –Numerical Stability Unsteady-state CFD –Explicit vs. Implicit.
Lecture Objectives: Define 1) Reynolds stresses and
Lecture Objectives -Analyze some examples related to natural ventilation.
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Substitution Method: Solve the linear system. Y = 3x + 2 Equation 1 x + 2y=11 Equation 2.
Entry Task   by.
Lecture Objectives: Discuss HW4 Continue with advance air systems
Objective Numerical methods SIMPLE CFD Algorithm Define Relaxation
Lecture Objectives: Review Explicit vs. Implicit
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
3-2: Solving Systems of Equations using Substitution
6-2 Solving Systems By Using Substitution
Lecture Objectives: Advance discretization methods
Objective Unsteady state Numerical methods Discretization
Objective Numerical methods.
Solve a system of linear equation in two variables
Finite Volume Method for Unsteady Flows
3-2: Solving Systems of Equations using Substitution
Solving Systems of Equations using Substitution
Conservation of momentum
3-2: Solving Systems of Equations using Substitution
Objective Numerical methods Finite volume.
Lecture Objectives Review for exam Discuss midterm project
topic8_NS_vectorForm_F02
Lecture Objectives: Simple Algorithm vs. Direct Solvers Discuss HW 3
Objective Reynolds Navier Stokes Equations (RANS) Numerical methods.
topic16_cylinder_flow_relaxation
Topic9_Pressure_Correction
topic8_NS_vectorForm_F02
PROGRAMME F5 LINEAR EQUATIONS and SIMULTANEOUS LINEAR EQUATIONS.
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 4/30/2019
3-2: Solving Systems of Equations using Substitution
Engineering Analysis ENG 3420 Fall 2009
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
Section 4.2 Solving a System of Equations in Two Variables by the Substitution Method.
Presentation transcript:

Lecture Objectives: Explicit vs. Implicit Residual, Stability, Relaxation Simple algorithm

General Transport Equation unsteady-state 1-D Fully explicit method: Implicit method: Value form previous time step (known value) Make the difference between - Calculation for different time step - Calculation in iteration step

Explicit: Unsteady state Advection diffusion equation, 1-D Rarely used due to the problem with stability of calculation To achieve stable calculation  should be very small

Unsteady state Advection diffusion equation, 1-D Implicit: Iterative method: Explicit format (to solve system of equations) 2) Guess initial values: 3) Substitute and calculate: 4….) Iterate for considered time step In iteration substitute only these values Make the difference between iteration and calculation for next time step

Residual Example: x-exp(1/x)-2=0 Find x using iteration Explicit form 1: x=exp(1/x)+2 Explicit form 2: x=1/(ln(x)-ln(2)) Solution process: Guess x 0 Iteration : x 1 =exp(1/x 0 )+2, R 1 =x 1 -x 0 X 2 =exp(1/x 1 )+2, R 2 =x 2 -x 1 …….. ……. Not all iteration process converge! See the example for the same equation

Convergence example Explicit form 2: x=1/(ln(x)-ln(2)

Residual calculation for CFD Residual for the cell R  ijk =  k ijk -  k-1 ijk Total residual for the simulation domain R  total =  R  ijk | Scaled (normalized) residual R  =  R  ijk |/F  iteration cell position Variable: p,V,T,… For all cells Flux of variable  used for normalization Vary for different CFD software

Relaxation Relaxation with iterative solvers: When the equations are nonlinear it can happen that you get divergency in iterative procedure for solving considered time step Under-Relaxation is often required when you have nonlinear equations! iteration convergence variable divergence solution Solution is Under-Relaxation: Y*=f·Y(n)+(1-f)·Y(n-1) Y – considered parameter, n –iteration, f – relaxation factor For our example Y* in iteration 101 =f·Y(100)+(1-f) ·Y(99) f = [0-1] – under-relaxation -stabilize the iteration f = [1-2] – over-relaxation - speed-up the convergence Value which is should be used for the next iteration

Example of relaxation (example from homework 3 assignment) Example: Advection diffusion equation, 1-D, steady-state, 4 nodes ) Explicit format: 2) Guess initial values: 3) Substitute and calculate: 4) …………………………. Substitute and calculate:

Navier Stokes Equations In order to use linear equation solver we need to solve two problems: 1)find velocities that constitute in advection coefficients 2) link pressure field with continuity equation This velocities that constitute advection coefficients: F=  V Pressure is in momentum equations which already has one unknown Continuity equation Momentum x Momentum y Momentum z

Pressure and velocities in NS equations How to find velocities that constitute advection coefficients? For the first step use Initial guess And for next iterative steps use the values from previous iteration

Pressure and velocities in NS equations How to link pressure field with continuity equation? SIMPLE ( Semi-Implicit Method for Pressure-Linked Equations ) algorithm The momentum equations can be solved only when the pressure field is given or is somehow estimated. Use * for estimated pressure and the corresponding velocities P E W xx xx xx Ae Aw Aw=Ae=A side We have two additional equations for y and x directions

SIMPLE algorithm Guess pressure field: P* W, P* P, P* E, P* N, P* S, P* H, P* L 1) For this pressure field solve system of equations: Solution is: x: y: z: ……………….. P = P* + P’ 2) The pressure and velocity correction P’ – pressure correction V = V* + f(P’) For all nodes E,W,N,S,… V’ – velocity correction Substitute P=P* + P’ into momentum equations (simplify equation) and obtain 3) Substitute V = V* + f(P’) into continuity equation solve P’ and then V V’=f(P’) V = V* + V’ 4) Solve T, k,  equations

SIMPLE algorithm Step1: solve V* from momentum equations Step2: introduce correction P’ and express V = V* + f(P’) Step3: substitute V into continuity equation solve P’ and then V Step4: Solve T, k, e equations Guess p* start end Converged (residual check) yes no p=p*

Other methods SIMPLER SIMPLEC variation of SIMPLE PISO COUPLED - use Jacobeans of nonlinear velocity functions to form linear matrix ( and avoid iteration )