Commit e351174e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Get number of particles from stdin in the IC script.

parent a9f62315
...@@ -19,18 +19,19 @@ ...@@ -19,18 +19,19 @@
############################################################################## ##############################################################################
import h5py import h5py
import sys
from numpy import * from numpy import *
# Generates a swift IC file containing a cartesian distribution of particles # Generates a swift IC file containing a cartesian distribution of particles
# at a constant density and pressure in a cubic box # at a constant density and pressure in a cubic box
# Parameters # Parameters
periodic= 1 # 1 For periodic box periodic= 1 # 1 For periodic box
boxSize = 1. boxSize = 1.
L = 1200 # Number of particles along one axis L = int(sys.argv[1]) # Number of particles along one axis
rho = 2. # Density rho = 2. # Density
P = 1. # Pressure P = 1. # Pressure
gamma = 5./3. # Gas adiabatic index gamma = 5./3. # Gas adiabatic index
fileName = "uniformBox.hdf5" fileName = "uniformBox.hdf5"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment