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
55632a33
Commit
55632a33
authored
9 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Update for parameter system
parent
6547b9ad
No related branches found
No related tags found
1 merge request
!143
Gravity particles
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/ExternalGravity/externalGravity.yml
+48
-0
48 additions, 0 deletions
examples/ExternalGravity/externalGravity.yml
examples/ExternalGravity/run.sh
+2
-2
2 additions, 2 deletions
examples/ExternalGravity/run.sh
with
50 additions
and
2 deletions
examples/ExternalGravity/externalGravity.yml
0 → 100644
+
48
−
0
View file @
55632a33
# Define the system of units to use internally.
UnitSystem
:
UnitMass_in_cgs
:
1
# Grams
UnitLength_in_cgs
:
1
# Centimeters
UnitVelocity_in_cgs
:
1
# Centimeters per second
UnitCurrent_in_cgs
:
1
# Amperes
UnitTemp_in_cgs
:
1
# Kelvin
# Parameters for the task scheduling
Scheduler
:
nr_threads
:
2
# The number of threads per MPI rank to use.
nr_queues
:
0
# The number of task queues to use. Use 0 to let the system decide.
cell_max_size
:
8000000
# Maximal number of interactions per task (this is the default value).
cell_sub_size
:
8000000
# Maximal number of interactions per sub-task (this is the default value).
cell_split_size
:
400
# Maximal number of particles per cell (this is the default value).
# Parameters governing the time integration
TimeIntegration
:
time_begin
:
0.
# The starting time of the simulation (in internal units).
time_end
:
1.
# The end time of the simulation (in internal units).
dt_min
:
1e-6
# 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).
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
3.
# Maximal smoothing length allowed (in internal units).
# Parameters related to the initial conditions
InitialConditions
:
file_name
:
Sphere.hdf5
# The file to read
h_scaling
:
1.
# A scaling factor to apply to all smoothing lengths in the ICs.
shift_x
:
50.
# A shift to apply to all particles read from the ICs (in internal units).
shift_y
:
50.
shift_z
:
50.
# Parameters govering domain decomposition
DomainDecomposition
:
initial_type
:
m
# The initial strategy ("g", "m", "w", or "v"). See documentation for details.
initial_grid_x
:
10
# Grid size if the 'g' strategy is chosen.
initial_grid_y
:
10
initial_grid_z
:
10
repartition_type
:
b
# The re-decomposition strategy ("n", "b", "v", "e" or "x"). See documentation for details.
This diff is collapsed.
Click to expand it.
examples/ExternalGravity/run.sh
+
2
−
2
View file @
55632a33
...
...
@@ -8,7 +8,7 @@
# -d: minimum time step
# -e: maximum time step
# -c: end of simulation
./swift
_fixdt
-m
.1
-s
"50 50 50"
-t
1
-d
0.001
-e
0.001
-c
0.2
-f
E
xternalGravity
/Sphere.hdf5
.
./swift
-g
e
xternalGravity
.yml
# ./swift -m .1 -s "50 50 50" -t 1 -d 0.000001 -e 0.001 -g -c 8 -f ExternalGravity/Sphere.hdf5
./swift
-m
.1
-s
"50 50 50"
-t
1
-d
0.000001
-e
0.001
-g
-c
8
-f
ExternalGravity/Sphere.hdf5
\ No newline at end of file
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