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
3d19d147
Commit
3d19d147
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
The multitype test-case should be part of master
parent
cb4608a1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
examples/MultiTypes/multiTypes.yml
+47
-0
47 additions, 0 deletions
examples/MultiTypes/multiTypes.yml
examples/MultiTypes/run.sh
+10
-0
10 additions, 0 deletions
examples/MultiTypes/run.sh
with
58 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
3d19d147
...
...
@@ -28,6 +28,7 @@ examples/*.xmf
examples/used_parameters.yml
examples/energy.txt
examples/*/*.xmf
examples/*/*.dat
examples/*/*.hdf5
examples/*/used_parameters.yml
examples/*/energy.txt
...
...
This diff is collapsed.
Click to expand it.
examples/MultiTypes/multiTypes.yml
0 → 100644
+
47
−
0
View file @
3d19d147
# Define the system of units to use internally.
InternalUnitSystem
:
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 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-2
# The maximal time-step size of the simulation (in internal units).
# Parameters governing the snapshots
Snapshots
:
basename
:
multiTypes
# Common part of the name of output files
time_first
:
0.
# Time of the first output (in internal units)
delta_time
:
0.01
# Time difference between consecutive outputs (in internal units)
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 governing the conserved quantities statistics
Statistics
:
delta_time
:
1e-2
# Time between statistics output
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
# Parameters related to the initial conditions
InitialConditions
:
file_name
:
./multiTypes.hdf5
# The file to read
# External potential parameters
PointMass
:
position_x
:
50.
# location of external point mass in internal units
position_y
:
50.
position_z
:
50.
mass
:
1e10
# mass of external point mass in internal units
This diff is collapsed.
Click to expand it.
examples/MultiTypes/run.sh
0 → 100755
+
10
−
0
View file @
3d19d147
#!/bin/bash
# Generate the initial conditions if they are not present.
if
[
!
-e
multiTypes.hdf5
]
then
echo
"Generating initial conditions for the multitype box example..."
python makeIC.py 50 60
fi
../swift
-s
-t
16 multiTypes.yml
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