html5-img
1 / 39

Application of adaptive mesh refinement to astrophysical simulations

Application of adaptive mesh refinement to astrophysical simulations. Dmitry S. Shapovalov, Institute for Theoretical Physics and Astrophysics, Uni-Kiel , 2003. Impact of a massive star on the interstellar medium. Ram-pressure stripping of galaxies.

teleri
Download Presentation

Application of adaptive mesh refinement to astrophysical simulations

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. Application of adaptive mesh refinement to astrophysical simulations Dmitry S. Shapovalov,Institute for Theoretical Physics and Astrophysics, Uni-Kiel, 2003

  2. Impact of a massive star on the interstellar medium Ram-pressure stripping of galaxies

  3. Heavier portion of a fluid (brown-red) is on top of lighter portion (blue) in gravitational field.2D compressible gas dynamic simulation (J.Dreher)

  4. 3D cylindrical shear flow: Transition to turbulenceAn initially slight perturbation develops a Kelvin-Helmholtz like instability.(R.Grauer)

  5. 2563 grid points. 2 levels of refinement.

  6. t=0.06

  7. t=0.65

  8. t=0.90

  9. t=0.99

  10. t=1.10

  11. 5123 grid points. 3 levels of refinement.

  12. t=1.18

  13. t=1.21

  14. t=1.21

  15. t=1.21

  16. t=1.21

  17. Singular current sheets in incompressible MHD flows2D simulation with adaptive mesh refinement (R.Grauer)

  18. Singular current sheets in incompressible MHD flows2D simulation with adaptive mesh refinement (R.Grauer)

  19. Statistics for the simulation with r = 2 Statistics for the simulation with r = 4

  20. Comparison of different refinement factors + low memory consumption (dynamical allocation by data fields) + only 8% of total time spent for pure AMR subroutines(~92% of time spent for integration of DE)

  21. Comparison of adaptive and non-adaptive simulations

  22. Structure of of the AMR code

  23. 1. Integrate PDE on a grid with a given resolution (level 0) 2. As some criterion fulfilled - refine initial grid: mark critical points where discretization error exceeds prescribed value 3. Generate new grids with finer resolution and timestep which cover all critical points (level 1) 4. Fill the new grids with interpolated data from level 0 5. Integrate both levels until resolution becomes insufficient 6. Regridding from the beginning and filling with data from former grids 7. Recursive repetition of previous steps Level 1 Level 0

  24. The timestep on a given level: procedure integratelevel do singlestep on levelbetter boundary on levelsolve poissonequation on level if next level exists, then default boundary on next leveldo r times integratenext levelupdateof levelcheckcriterion on level

  25. Regridding of a given level: procedure regriddinglevel for all gridson level mark critical points and append them to a list cover the critical points with rectangles (saw up) nestingrectangles into their parents and assign parents and neighbors fill the new rectangles with default data if old level of same resolution existed before regridding, then better data on new level from old level if finer level existed before regridding, then regriddingof new level

  26. procedure saw uprectangles for all rectangles calculate and variance in x- and y-direction if variance in x> variance in y, then apply cut dimon rectangle in x-direction else apply cut dimon rectangle in y-direction if no cut found and efficiency insufficient, then half rectangle in longer direction append resulting rectangles to temporary list saw up of temporary list of rectangles if temporary list is not empty, then replace actual rectangle by temporary list

  27. procedure cut dim of rectangle in direction dim determine best cut in direction dim and return two rectangles loop over the two rectangles cut in other direction if costs are smaller than those of actual rectangle, then replace actual rectangle by list compare costs of new list (of 2-4 rectangles) with those of original rectangle and return cheapest

  28. The effect of procedure saw up

  29. The result of the nesting procedure

  30. Enjoy the AMR ...

More Related