Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
3264ba07
Commit
3264ba07
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Update the time-step limits of the cooling halo with spin example
parent
061d27e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/CoolingHaloWithSpin/cooling_halo.yml
+6
-6
6 additions, 6 deletions
examples/CoolingHaloWithSpin/cooling_halo.yml
examples/CoolingHaloWithSpin/run.sh
+2
-1
2 additions, 1 deletion
examples/CoolingHaloWithSpin/run.sh
src/runner.c
+8
-0
8 additions, 0 deletions
src/runner.c
with
16 additions
and
7 deletions
examples/CoolingHaloWithSpin/cooling_halo.yml
+
6
−
6
View file @
3264ba07
...
...
@@ -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.
#
l
ocation of centre of isothermal potential in internal units
position_x
:
0.
#
L
ocation of centre of isothermal potential in internal units
position_y
:
0.
position_z
:
0.
vrot
:
200.
#
r
otation speed of isothermal potential in internal units
timestep_mult
:
0.03
#
c
ontrols time step
epsilon
:
1.0
#s
oftening for the isothermal potential
vrot
:
200.
#
R
otation speed of isothermal potential in internal units
timestep_mult
:
0.03
#
C
ontrols time step
epsilon
:
1.0
# S
oftening 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
This diff is collapsed.
Click to expand it.
examples/CoolingHaloWithSpin/run.sh
+
2
−
1
View file @
3264ba07
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/runner.c
+
8
−
0
View file @
3264ba07
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment