From 2c057c4224c22301096fdce4bc7da51efcb7bcc1 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Tue, 19 Mar 2013 11:07:16 +0000 Subject: [PATCH] Updated the glass pre-ICs and the sod shock script. Former-commit-id: 367c2893c4514c30f1570637f950a57f9e184a5c --- examples/SodShock/makeIC.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/SodShock/makeIC.py b/examples/SodShock/makeIC.py index 027e727d38..105acce134 100644 --- a/examples/SodShock/makeIC.py +++ b/examples/SodShock/makeIC.py @@ -37,13 +37,13 @@ fileName = "sodShock.hdf5" #--------------------------------------------------- #Read in high density glass -glass1 = h5py.File("../Glass/glass_12500.hdf5") -pos1 = glass1["/PartType0/Coordinates"][:,:] +glass1 = h5py.File("../Glass/glass_200000.hdf5") +pos1 = glass1["/PartType1/Coordinates"][:,:] pos1 = pos1 / 20. # Particles are in [0:0.5, 0:0.5, 0:0.5] #Read in high density glass -glass2 = h5py.File("../Glass/glass_3125.hdf5") -pos2 = glass2["/PartType0/Coordinates"][:,:] +glass2 = h5py.File("../Glass/glass_50000.hdf5") +pos2 = glass2["/PartType1/Coordinates"][:,:] pos2 = pos2 / 20. # Particles are in [0:0.5, 0:0.5, 0:0.5] #Generate high density region -- GitLab