Introduction to Block-Structured Adaptive Mesh Refinement (AMR)
Ann S. Almgren Center for Computational Sciences and Engineering (Building 50A) Lawrence Berkeley National Laboratory asalmgren@lbl.gov
Almgren – p. 1/25
Introduction to Block-Structured Adaptive Mesh Refinement (AMR) Ann - - PowerPoint PPT Presentation
Introduction to Block-Structured Adaptive Mesh Refinement (AMR) Ann S. Almgren Center for Computational Sciences and Engineering (Building 50A) Lawrence Berkeley National Laboratory asalmgren@lbl.gov Almgren p. 1/25 Types of Refinement
Almgren – p. 1/25
Almgren – p. 2/25
Almgren – p. 3/25
Almgren – p. 4/25
Almgren – p. 5/25
Almgren – p. 6/25
Almgren – p. 7/25
Almgren – p. 8/25
Almgren – p. 9/25
Almgren – p. 10/25
Almgren – p. 11/25
2
i−1 /
2,j − Fn+ 1 2
i+1 /
2,j
2
i,j−1 /
2 − Gn+ 1 2
i,j+1 /
2
Almgren – p. 12/25
Almgren – p. 13/25
Almgren – p. 14/25
Type Ia Supernova
Almgren – p. 15/25
Almgren – p. 16/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Almgren – p. 17/25
Fine-Fine Physical BC Coarse-Fine
Almgren – p. 18/25
Almgren – p. 19/25
c
c
c
c
Almgren – p. 20/25
c
c
Almgren – p. 20/25
c
c
Almgren – p. 20/25
c
c
Almgren – p. 20/25
c
c
Almgren – p. 20/25
Almgren – p. 21/25
Almgren – p. 22/25
Almgren – p. 22/25
Almgren – p. 22/25
Almgren – p. 22/25
Almgren – p. 22/25
Hyperbolic AMR
For n = 1, ..., Nfinal Advance(0,tn
0 )
Advance (,t) If (time to regrid) then Regrid() FillPatch(,t) Integrate(,t,∆t) If (<finest) then For isub = 1, ..., r Advance(+1, t+(isub−1)∆t
+ 1)
Average down(,t+∆t) Reflux(,t+∆t) End If Regrid(): generate new grids at levels +1 and higher FillPatch(,t): fill patch of data at level and time t Integrate(,t,∆t): Advance data at level from t to t+∆t, averaging and storing fluxes at
boundaries of level grids if > 0 and level cells at boundary of + 1
Average down(,t): average (in space) level +1 data at time t to level Reflux(,t): Add (time- and space-averaged) refluxing corrections to
level cells at time t adjacent to level +1 grids
Almgren – p. 23/25
Almgren – p. 24/25
Almgren – p. 25/25