-
- Downloads
Merge branch 'gizmo_fix' into 'master'
Repaired GIZMO_SPH after the time integration changes that had been made. The most important change is the addition of a new method, `hydro_timestep_extra`, that is called after the new time step for a particle has been computed, and that passes the physical time step for the next step to the particle. In `GIZMO_SPH`, this method is used to - store the physical time step in `p->force.dt`. This value is used during the force loop to exchange fluxes between particles - reset a new `p->force.active` flag to an inactive value (`0`). This flag is set to an active value (`1`) in `hydro_init_part`, and is used during the force loop to decide whether or not to exchange flux with particle `j` in the asymmetric version of the interaction method. For all other hydro schemes, this method is empty. Other changes: - made sure `benchmarkInteractions` compiles with `GIZMO_SPH` - added a compilation flag, `GIZMO_FIX_PARTICLES`, that disables particle movement. If possible, this should be replaced by a corresponding parameter - added some sanity checks on density and pressure values, and a proper treatment of vacuum in the gradient prediction step This version successfully runs most of the hydro examples (including the Sod tests, Sedov blasts, Kelvin-Helmholtz test, square tests, Gresho vortex), but fails to run the 2D and 3D Noh problem (1D works). See merge request !315
No related branches found
No related tags found
Showing
- src/const.h 4 additions, 0 deletionssrc/const.h
- src/hydro/Default/hydro.h 10 additions, 0 deletionssrc/hydro/Default/hydro.h
- src/hydro/Gadget2/hydro.h 10 additions, 0 deletionssrc/hydro/Gadget2/hydro.h
- src/hydro/Gizmo/hydro.h 66 additions, 36 deletionssrc/hydro/Gizmo/hydro.h
- src/hydro/Gizmo/hydro_gradients.h 55 additions, 51 deletionssrc/hydro/Gizmo/hydro_gradients.h
- src/hydro/Gizmo/hydro_iact.h 2 additions, 6 deletionssrc/hydro/Gizmo/hydro_iact.h
- src/hydro/Gizmo/hydro_io.h 10 additions, 0 deletionssrc/hydro/Gizmo/hydro_io.h
- src/hydro/Gizmo/hydro_part.h 3 additions, 0 deletionssrc/hydro/Gizmo/hydro_part.h
- src/hydro/Minimal/hydro.h 10 additions, 0 deletionssrc/hydro/Minimal/hydro.h
- src/hydro/PressureEntropy/hydro.h 10 additions, 0 deletionssrc/hydro/PressureEntropy/hydro.h
- src/runner.c 5 additions, 0 deletionssrc/runner.c
- tests/benchmarkInteractions.c 20 additions, 4 deletionstests/benchmarkInteractions.c
Loading
Please register or sign in to comment