Skip to content
Snippets Groups Projects
Commit e9295f04 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'shadowswift_new' into 'master'

1D and 2D moving mesh algorithm

I have added a new hydro scheme, `SHADOWFAX_SPH`, that uses a finite volume method on a moving mesh. The scheme is very similar to `GIZMO_SPH`, except that during the density loop an actual Voronoi cell is constructed for every particle, which is then used to get a volume to update the primitive quantities, and faces through which fluxes are exchanged. There are also some small changes in the way gradients are computed, and in the way the velocity of the particles is set.

The Voronoi cell construction is completely different for 1D, 2D, and 3D, and currently only 1D and 2D have a stable implementation. 3D should compile, but does not produce reliable results (yet). However, I think it would be good to merge this in already, to prevent it from drifting too far apart from `master`.

The current implementation is hydro only, but it should be very straightforward to add gravity, similarly to the way it is done in `GIZMO_SPH`.

Below the results for the 2D Sod shock and Sedov blast test (the noise on the density is caused by the fact that the initial conditions contain mass and not density). The 2D Noh test crashes because of time stepping issues; I think we really need a time step limiter to make it work properly.

![SodShock](/uploads/641796ae26cf045be5ce824bb698b77a/SodShock.png)

![Sedov](/uploads/96be4bbeb7635c329b78f89e0e79239c/Sedov.png)

See merge request !321
parents 3e0294f6 cf5cb6ad
No related branches found
No related tags found
1 merge request!3211D and 2D moving mesh algorithm
Showing
with 2114 additions and 12 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment