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

Better mesh size and maximal time-step size for all the EAGLE examples.

parent 5a59eca3
Branches
Tags
Loading
...@@ -23,7 +23,7 @@ TimeIntegration: ...@@ -23,7 +23,7 @@ TimeIntegration:
dt_max: 1e-3 # The maximal time-step size of the simulation (in internal units). dt_max: 1e-3 # The maximal time-step size of the simulation (in internal units).
Scheduler: Scheduler:
max_top_level_cells: 80 max_top_level_cells: 32
# Parameters governing the snapshots # Parameters governing the snapshots
Snapshots: Snapshots:
...@@ -44,6 +44,7 @@ Gravity: ...@@ -44,6 +44,7 @@ Gravity:
theta: 0.85 # Opening angle (Multipole acceptance criterion) theta: 0.85 # Opening angle (Multipole acceptance criterion)
comoving_softening: 0.0026994 # Comoving softening length (in internal units). comoving_softening: 0.0026994 # Comoving softening length (in internal units).
max_physical_softening: 0.0007 # Physical softening length (in internal units). max_physical_softening: 0.0007 # Physical softening length (in internal units).
mesh_side_length: 256
# Parameters for the hydrodynamics scheme # Parameters for the hydrodynamics scheme
SPH: SPH:
......
...@@ -20,7 +20,7 @@ TimeIntegration: ...@@ -20,7 +20,7 @@ TimeIntegration:
time_begin: 0. # The starting time of the simulation (in internal units). time_begin: 0. # The starting time of the simulation (in internal units).
time_end: 1e-2 # The end time of the simulation (in internal units). time_end: 1e-2 # The end time of the simulation (in internal units).
dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units). dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units).
dt_max: 1e-3 # The maximal time-step size of the simulation (in internal units). dt_max: 1e-2 # The maximal time-step size of the simulation (in internal units).
# Parameters governing the snapshots # Parameters governing the snapshots
Snapshots: Snapshots:
......
...@@ -30,10 +30,7 @@ TimeIntegration: ...@@ -30,10 +30,7 @@ TimeIntegration:
time_begin: 0. # The starting time of the simulation (in internal units). time_begin: 0. # The starting time of the simulation (in internal units).
time_end: 1e-2 # The end time of the simulation (in internal units). time_end: 1e-2 # The end time of the simulation (in internal units).
dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units). dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units).
dt_max: 1e-3 # The maximal time-step size of the simulation (in internal units). dt_max: 1e-2 # The maximal time-step size of the simulation (in internal units).
Scheduler:
max_top_level_cells: 16
# Parameters governing the snapshots # Parameters governing the snapshots
Snapshots: Snapshots:
...@@ -54,7 +51,7 @@ Gravity: ...@@ -54,7 +51,7 @@ Gravity:
theta: 0.7 # Opening angle (Multipole acceptance criterion) theta: 0.7 # Opening angle (Multipole acceptance criterion)
comoving_softening: 0.0026994 # Comoving softening length (in internal units). comoving_softening: 0.0026994 # Comoving softening length (in internal units).
max_physical_softening: 0.0007 # Physical softening length (in internal units). max_physical_softening: 0.0007 # Physical softening length (in internal units).
mesh_side_length: 32 mesh_side_length: 64
# Parameters for the hydrodynamics scheme # Parameters for the hydrodynamics scheme
SPH: SPH:
......
...@@ -20,10 +20,10 @@ TimeIntegration: ...@@ -20,10 +20,10 @@ TimeIntegration:
time_begin: 0. # The starting time of the simulation (in internal units). time_begin: 0. # The starting time of the simulation (in internal units).
time_end: 1e-2 # The end time of the simulation (in internal units). time_end: 1e-2 # The end time of the simulation (in internal units).
dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units). dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units).
dt_max: 1e-3 # The maximal time-step size of the simulation (in internal units). dt_max: 1e-2 # The maximal time-step size of the simulation (in internal units).
Scheduler: Scheduler:
max_top_level_cells: 20 max_top_level_cells: 16
# Parameters governing the snapshots # Parameters governing the snapshots
Snapshots: Snapshots:
...@@ -44,7 +44,7 @@ Gravity: ...@@ -44,7 +44,7 @@ Gravity:
theta: 0.7 # Opening angle (Multipole acceptance criterion) theta: 0.7 # Opening angle (Multipole acceptance criterion)
comoving_softening: 0.0026994 # Comoving softening length (in internal units). comoving_softening: 0.0026994 # Comoving softening length (in internal units).
max_physical_softening: 0.0007 # Physical softening length (in internal units). max_physical_softening: 0.0007 # Physical softening length (in internal units).
mesh_side_length: 64 mesh_side_length: 128
# Parameters for the hydrodynamics scheme # Parameters for the hydrodynamics scheme
SPH: SPH:
......
...@@ -291,7 +291,8 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct space* s, ...@@ -291,7 +291,8 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct space* s,
const double dim[3] = {s->dim[0], s->dim[1], s->dim[2]}; const double dim[3] = {s->dim[0], s->dim[1], s->dim[2]};
if (r_s <= 0.) error("Invalid value of a_smooth"); if (r_s <= 0.) error("Invalid value of a_smooth");
if (mesh->dim[0] != dim[0] || mesh->dim[1] != dim[1] || mesh->dim[2] != dim[2]) if (mesh->dim[0] != dim[0] || mesh->dim[1] != dim[1] ||
mesh->dim[2] != dim[2])
error("Domain size does not match the value stored in the space."); error("Domain size does not match the value stored in the space.");
/* Some useful constants */ /* Some useful constants */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment