1 / 15

Lecture Objectives:

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

mary-gomez
Télécharger la présentation

Lecture Objectives:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. General Transport Equationunsteady-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

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

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

  5. 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 x0 Iteration : x1=exp(1/x0)+2 , R1=x1-x0 X2=exp(1/x1)+2 , R2=x2-x1 …….. ……. Not all iteration process converge! See the example for the same equation

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

  7. Residual calculation for CFD • Residual for the cell RFijk=Fkijk-Fk-1ijk • Total residual for the simulation domain RFtotal=S|RFijk| • Scaled (normalized) residual RF=S|RFijk|/FF iteration cell position Variable: p,V,T,… For all cells Flux of variable F used for normalization Vary for different CFD software

  8. 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 divergence variable solution convergence 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 iteration101=f·Y(100)+(1-f) ·Y(99) f = [0-1] – under-relaxation -stabilize the iteration f = [1-2] – over-relaxation - speed-up the convergence iteration Value which is should be used for the next iteration Under-Relaxation is often required when you have nonlinear equations!

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

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

  11. 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

  12. Pressure and velocities in NS equations How to link pressure field with continuity equation? SIMPLE (Semi-Implicit Method for Pressure-Linked Equations ) algorithm Dx Dx P E W Dx Ae Aw Aw=Ae=Aside We have two additional equations for y and x directions 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

  13. 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: x: ……………….. y: ……………….. z: Solution is: 2)The pressure and velocity correction P = P* + P’ P’ – pressure correction For all nodes E,W,N,S,… V = V* + V’ V’ – velocity correction Substitute P=P* + P’ into momentum equations (simplify equation) and obtain V’=f(P’) V = V* + f(P’) 3) Substitute V = V* + f(P’) into continuity equation solve P’ and then V 4) Solve T , k , e equations

  14. SIMPLE algorithm start Guess p* p=p* 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 no Converged (residual check) yes end

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

More Related