arepo – v. springel

37
AREPO – V. Springel AREPO – V. Springel Adaptive, moving, unstructured Adaptive, moving, unstructured hydrodynamics, locally adaptive time- hydrodynamics, locally adaptive time- steps, self-gravity + Galilean steps, self-gravity + Galilean Invariance Invariance i.e. Everything you ever wanted except i.e. Everything you ever wanted except MHD ;) MHD ;) 66 journal pages! 66 journal pages! arXiv:0901.4107

Upload: tuari

Post on 07-Jan-2016

15 views

Category:

Documents


0 download

DESCRIPTION

AREPO – V. Springel. arXiv:0901.4107. Adaptive, moving, unstructured hydrodynamics, locally adaptive time-steps, self-gravity + Galilean Invariance i.e. Everything you ever wanted except MHD ;) 66 journal pages!. AREPO – V. Springel. Why do we want/need all these features? - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: AREPO – V.  Springel

AREPO – V. SpringelAREPO – V. Springel

Adaptive, moving, unstructured Adaptive, moving, unstructured hydrodynamics, locally adaptive time-hydrodynamics, locally adaptive time-steps, self-gravity + Galilean Invariancesteps, self-gravity + Galilean Invariance

i.e. Everything you ever wanted except i.e. Everything you ever wanted except MHD ;)MHD ;)

66 journal pages!66 journal pages!

arXiv:0901.4107

Page 2: AREPO – V.  Springel

AREPO – V. SpringelAREPO – V. Springel Why do we want/need all these features?Why do we want/need all these features?

Unstructured grid: adapt to needs of the Unstructured grid: adapt to needs of the problemproblem

Efficiency concernEfficiency concern Adaptive grid: put in more resolution where Adaptive grid: put in more resolution where

necessarynecessary Accuracy concernAccuracy concern

Moving grid: follow the flow and place Moving grid: follow the flow and place computation where it needs to becomputation where it needs to be

Accuracy and efficiency concerns Accuracy and efficiency concerns

Page 3: AREPO – V.  Springel

History: Moving History: Moving MeshesMeshes

Moving grids are nothing new, Moving grids are nothing new, developed extensively in 1970sdeveloped extensively in 1970s

Fundamental limit has always been Fundamental limit has always been mesh entanglementmesh entanglement Mesh can become “over”-distorted or Mesh can become “over”-distorted or

cells virtually degeneratecells virtually degenerate Either stop, or resort to some other Either stop, or resort to some other

method (mapping back to regular grid)method (mapping back to regular grid)

Page 4: AREPO – V.  Springel

Delaunay & Voronoi Delaunay & Voronoi tessellationstessellations

Circumcircle does not encloseany other vertices.

Page 5: AREPO – V.  Springel

Hydro formulationHydro formulation Form usual state vector, flux function Form usual state vector, flux function

& Euler (conservation) equations& Euler (conservation) equations

Page 6: AREPO – V.  Springel

Finite-volume methodFinite-volume method Fluid state described by cell averagesFluid state described by cell averages

Use Euler equations + convert volume Use Euler equations + convert volume integral to surface integralsintegral to surface integrals

w w cell boundary velocity, cell boundary velocity, ww=0 for =0 for Eulerian codeEulerian code

Page 7: AREPO – V.  Springel

Can’t guarantee Can’t guarantee w=vw=v Moving grids won’t follow flow Moving grids won’t follow flow

perfectly so still need to include perfectly so still need to include ww termterm

Using Using AAijij to describe orientation of to describe orientation of facesfaces

Page 8: AREPO – V.  Springel

Riemann problem stepRiemann problem step MUSCL-MUSCL-

Hancock Hancock schemescheme

Unsplit – all Unsplit – all fluxes fluxes computed in computed in one stepone step

Page 9: AREPO – V.  Springel

Gradient constructionGradient construction Green-Gauss theorem over faces is inaccurateGreen-Gauss theorem over faces is inaccurate

Use a more complex constructionUse a more complex construction

Where cWhere cijij is vector to the centre of mass of is vector to the centre of mass of face face

Page 10: AREPO – V.  Springel

Linear reconstructionLinear reconstruction e.g. construct density at a point bye.g. construct density at a point by

Maintains second order accuracy in Maintains second order accuracy in smooth regionssmooth regions

Apply slope limiter as well Apply slope limiter as well

Page 11: AREPO – V.  Springel

Riemann solverRiemann solver It’s 1:07 am... It’s 1:07 am...

Page 12: AREPO – V.  Springel

Mesh movement Mesh movement criterioncriterion

Simplest approach is to simply follow fluid speed Simplest approach is to simply follow fluid speed of cellof cell

Can lead to poor cell aspect ratiosCan lead to poor cell aspect ratios

Page 13: AREPO – V.  Springel

Solving the mesh Solving the mesh movement problemmovement problem

Iterate the mesh generation points to Iterate the mesh generation points to better positionsbetter positions

Lloyd’s Algorithm:Lloyd’s Algorithm: Move mesh generation points to the Move mesh generation points to the

centre of mass of their cellcentre of mass of their cell Reconstruct Voronoi tessellationReconstruct Voronoi tessellation RepeatRepeat

Net effect is mesh relaxes to a Net effect is mesh relaxes to a “rounder” more regular state“rounder” more regular state

Page 14: AREPO – V.  Springel

ExampleExample

Original distribution of cellsAfter 50 iterations of Lloyd’s algorithm

Page 15: AREPO – V.  Springel

Mesh movement Mesh movement criterion IIcriterion II

Add velocity adjustment to move mesh Add velocity adjustment to move mesh generation point towards centre of massgeneration point towards centre of mass

Basically:Basically: Calculate volume of cell & centre of mass Calculate volume of cell & centre of mass Associate effective radius with this volume RAssociate effective radius with this volume R If centre of mass exceeds some set fraction If centre of mass exceeds some set fraction

of R, add component to move mesh of R, add component to move mesh generation point toward COMgeneration point toward COM

True method softens point from where there True method softens point from where there is no correction to a full correction enforcedis no correction to a full correction enforced

Page 16: AREPO – V.  Springel

Comparison on Sedov Comparison on Sedov testtest

Page 17: AREPO – V.  Springel

Refining & derefiningRefining & derefining No hierarchy of No hierarchy of

gridsgrids Just add points or Just add points or

remove as remove as necesarynecesary

However, not really However, not really a significant part of a significant part of the algorithmthe algorithm

Moving grid covers Moving grid covers main adaptive main adaptive aspectsaspects

Page 18: AREPO – V.  Springel

TimesteppingTimestepping

Page 19: AREPO – V.  Springel

Gravity calculationGravity calculation Treats cells as top-hat spheres of Treats cells as top-hat spheres of

constant densityconstant density Force softening is applied but not Force softening is applied but not

actually necessary on the grids (cells actually necessary on the grids (cells maintain very regular spacing)maintain very regular spacing)

Carefully applied a correction force Carefully applied a correction force arising from different force arising from different force softenings associated with each cell softenings associated with each cell

Page 20: AREPO – V.  Springel

Pure hydro test casesPure hydro test cases 1-d acoustic wave evolution 1-d acoustic wave evolution Sod shockSod shock Interacting blast wavesInteracting blast waves Point explosion (i.e. Sedov-like test)Point explosion (i.e. Sedov-like test) Gresho vortex problemGresho vortex problem Noh shock testNoh shock test KH instabilityKH instability RT instabilityRT instability Stirring testStirring test

Page 21: AREPO – V.  Springel

Sod shockSod shock Moving grid Moving grid

seems to seems to handle contact handle contact discontinuity discontinuity slightly betterslightly better

No surprises No surprises herehere

IGNORE the IGNORE the red line on the red line on the plots ppt plots ppt screwed upscrewed up

Fixed Moving

Page 22: AREPO – V.  Springel

KH instability results: KH instability results: fixed meshfixed mesh

At simulation time t=2.0

Page 23: AREPO – V.  Springel

KH instability results: KH instability results: moving meshmoving mesh

Page 24: AREPO – V.  Springel

KH movieKH movie

Page 25: AREPO – V.  Springel

KHI at t=2.0KHI at t=2.0

At simulation time t=2.0 – more mixing in the fixed mesh!

Page 26: AREPO – V.  Springel

KHI with boosts (fixed KHI with boosts (fixed mesh)mesh)

Solution becomes dominated by advection errorsMoving mesh solution is said to be “identical” regardless of v

Page 27: AREPO – V.  Springel

Rayleigh Taylor Rayleigh Taylor InstabilityInstability

Moving mesh

Fixed mesh

Page 28: AREPO – V.  Springel

RT with boostsRT with boostsMoving mesh

Fixed mesh

Page 29: AREPO – V.  Springel

Examples with self-Examples with self-gravitygravity

Evrard collapse test (spherical Evrard collapse test (spherical collapse of self-gravitating sphere)collapse of self-gravitating sphere)

Zel’dovich pancake (1-d collapse of a Zel’dovich pancake (1-d collapse of a single wave but followed in 2-d)single wave but followed in 2-d)

The “Santa Barbara” cluster The “Santa Barbara” cluster (cosmological volume simulated with (cosmological volume simulated with adiabatic physics)adiabatic physics)

Galaxy collisionGalaxy collision

Page 30: AREPO – V.  Springel

Evrard CollapseEvrard Collapse ““Trivial” Trivial”

problem of problem of collapsing collapsing sphere of gassphere of gas

Accretion shock Accretion shock is generatedis generated

Common test Common test for self-grav for self-grav hydro codeshydro codes

Page 31: AREPO – V.  Springel

Energy profileEnergy profile

Page 32: AREPO – V.  Springel

““Santa Barbara” Santa Barbara” clustercluster

Cosmological simulation of one large galaxy Cosmological simulation of one large galaxy cluster, large comparison project in 1999cluster, large comparison project in 1999 Showed a number of differences between codesShowed a number of differences between codes

Self gravitating adiabatic perfect gas + dark Self gravitating adiabatic perfect gas + dark matter problemmatter problem

Consistently shown differences in behaviour Consistently shown differences in behaviour in cores of clustersin cores of clusters Very important to estimates of X-ray luminosityVery important to estimates of X-ray luminosity

Page 33: AREPO – V.  Springel

Radial profilesRadial profiles

Dark matter calculations veryclose – thank goodness

Some significant differences(residual would have been nice)

Page 34: AREPO – V.  Springel

Radial profilesRadial profiles

Appear closer than temps Entropy profile hints at a coreFor 1283 run

Page 35: AREPO – V.  Springel

Rotation test movieRotation test movie

Page 36: AREPO – V.  Springel

Timing figures?Timing figures? I can’t find any!I can’t find any! One suspects that the method might One suspects that the method might

be somewhat slow at the momentbe somewhat slow at the moment Probably not a bad thing right now – Probably not a bad thing right now –

most of the computations are linear most of the computations are linear algebra on small matricesalgebra on small matrices

Can decompose the problem well Can decompose the problem well enough to keep parallel computers enough to keep parallel computers very busy...very busy...

Page 37: AREPO – V.  Springel

SummarySummary Simply amazing collection of featuresSimply amazing collection of features

the $64,000 is not answered – how fast the $64,000 is not answered – how fast does it run?does it run?

Memory efficiency is not great...Memory efficiency is not great... BUT! Mesh entanglement problem BUT! Mesh entanglement problem

solvedsolved Derefining problem solvedDerefining problem solved Errors on most problems exceptionally Errors on most problems exceptionally

well behavedwell behaved