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

Update the time-step limits of the cooling halo with spin example

parent 061d27e6
Branches
Tags
No related merge requests found
......@@ -10,7 +10,7 @@ InternalUnitSystem:
TimeIntegration:
time_begin: 0. # The starting time of the simulation (in internal units).
time_end: 10. # The end time of the simulation (in internal units).
dt_min: 1e-7 # 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-1 # The maximal time-step size of the simulation (in internal units).
# Parameters governing the conserved quantities statistics
......@@ -35,12 +35,12 @@ InitialConditions:
# External potential parameters
IsothermalPotential:
position_x: 0. # location of centre of isothermal potential in internal units
position_x: 0. # Location of centre of isothermal potential in internal units
position_y: 0.
position_z: 0.
vrot: 200. # rotation speed of isothermal potential in internal units
timestep_mult: 0.03 # controls time step
epsilon: 1.0 #softening for the isothermal potential
vrot: 200. # Rotation speed of isothermal potential in internal units
timestep_mult: 0.03 # Controls time step
epsilon: 1.0 # Softening for the isothermal potential
# Cooling parameters
LambdaCooling:
......@@ -48,4 +48,4 @@ LambdaCooling:
minimum_temperature: 1.0e4 # Minimal temperature (Kelvin)
mean_molecular_weight: 0.59 # Mean molecular weight
hydrogen_mass_abundance: 0.75 # Hydrogen mass abundance (dimensionless)
cooling_tstep_mult: 0.1 # Dimensionless pre-factor for the time-step condition
cooling_tstep_mult: 1.0 # Dimensionless pre-factor for the time-step condition
......@@ -4,7 +4,8 @@
echo "Generating initial conditions for the isothermal potential box example..."
python makeIC.py 10000
../swift -g -s -C -t 16 cooling_halo.yml 2>&1 | tee output.log
# Run SWIFT with external potential, SPH and cooling
../swift -g -s -C -t 1 cooling_halo.yml 2>&1 | tee output.log
# python radial_profile.py 10
......
......@@ -734,8 +734,16 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
}
}
#ifdef SWIFT_DEBUG_CHECKS
if (count) {
message("Smoothing length failed to converge on %i particles.", count);
error("Aborting....");
}
#else
if (count)
message("Smoothing length failed to converge on %i particles.", count);
#endif
/* Be clean */
free(pid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment