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

Also corrected the FCC version of the Sedov blast grid and changed the maximal...

Also corrected the FCC version of the Sedov blast grid and changed the maximal value of the smoothing length in the run script.


Former-commit-id: ddc3c793b6961d23b243cc6155d66f6d2606b765
parent 3c8def36
No related branches found
No related tags found
No related merge requests found
...@@ -50,10 +50,10 @@ hbox = boxSize / L ...@@ -50,10 +50,10 @@ hbox = boxSize / L
#Generate particles #Generate particles
coords = zeros((numPart, 3)) coords = zeros((numPart, 3))
v = zeros((numPart, 3)) v = zeros((numPart, 3))
m = zeros((numPart, 1)) m = zeros(numPart)
h = zeros((numPart, 1)) h = zeros(numPart)
u = zeros((numPart, 1)) u = zeros(numPart)
ids = zeros((numPart, 1), dtype='L') ids = zeros(numPart, dtype='L')
for i in range(L): for i in range(L):
for j in range(L): for j in range(L):
...@@ -103,17 +103,11 @@ grp.attrs["PeriodicBoundariesOn"] = periodic ...@@ -103,17 +103,11 @@ grp.attrs["PeriodicBoundariesOn"] = periodic
#Particle group #Particle group
grp = file.create_group("/PartType0") grp = file.create_group("/PartType0")
ds = grp.create_dataset('Coordinates', (numPart, 3), 'd') grp.create_dataset('Coordinates', data=coords, dtype='d')
ds[()] = coords grp.create_dataset('Velocities', data=v, dtype='f')
ds = grp.create_dataset('Velocities', (numPart, 3), 'f') grp.create_dataset('Masses', data=m, dtype='f')
ds[()] = v grp.create_dataset('SmoothingLength', data=h, dtype='f')
ds = grp.create_dataset('Masses', (numPart,1), 'f') grp.create_dataset('InternalEnergy', data=u, dtype='f')
ds[()] = m grp.create_dataset('ParticleIDs', data=ids, dtype='L')
ds = grp.create_dataset('SmoothingLength', (numPart,1), 'f')
ds[()] = h
ds = grp.create_dataset('InternalEnergy', (numPart,1), 'f')
ds[()] = u
ds = grp.create_dataset('ParticleIDs', (numPart, 1), 'L')
ds[()] = ids
file.close() file.close()
...@@ -44,11 +44,11 @@ do ...@@ -44,11 +44,11 @@ do
# Sedov blast # Sedov blast
if [ ! -e SedovBlast_mindt_${cpu}.dump ] if [ ! -e SedovBlast_mindt_${cpu}.dump ]
then then
./test_mindt -c 0.2 -t $cpu -f SedovBlast/sedov.hdf5 -m 0.1 -w 5000 -d 1e-10 > SedovBlast_${cpu}.dump ./test_mindt -c 0.2 -t $cpu -f SedovBlast/sedov.hdf5 -m 0.02 -w 5000 -d 1e-10 > SedovBlast_${cpu}.dump
fi fi
if [ ! -e SedovBlast_fixed_${cpu}.dump ] if [ ! -e SedovBlast_fixed_${cpu}.dump ]
then then
./test_fixdt -r 4096 -t $cpu -f SedovBlast/sedov.hdf5 -m 0.1 -w 5000 -d 5e-5 > SedovBlast_fixed_${cpu}.dump ./test_fixdt -r 4096 -t $cpu -f SedovBlast/sedov.hdf5 -m 0.02 -w 5000 -d 5e-5 > SedovBlast_fixed_${cpu}.dump
fi fi
# Cosmological volume # Cosmological volume
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment