Peano
Loading...
Searching...
No Matches
Namespaces
|
Functions
|
Variables
makeIC-multiscale.py File Reference
Go to the source code of this file.
Namespaces
namespace
makeIC-multiscale
Functions
makeIC-multiscale.get_coords
(box_min, box_max,
npart
)
Generate coordinates for particles between box_min and box_max.
Variables
str
makeIC-multiscale.fileName
= "test_sml_multiscale_1D.hdf5"
float
makeIC-multiscale.boxSize
= 1.0
makeIC-multiscale.parser
= argparse.ArgumentParser(description="SPH benchmarking script")
makeIC-multiscale.dest
makeIC-multiscale.required
makeIC-multiscale.type
makeIC-multiscale.help
makeIC-multiscale.action
makeIC-multiscale.default
makeIC-multiscale.args
= parser.parse_args()
makeIC-multiscale.npart
= args.particle_number
makeIC-multiscale.seed
= args.random_seed
makeIC-multiscale.max_displacement
= args.max_displacement
int
makeIC-multiscale.npart_tot
= 4 *
npart
makeIC-multiscale.coords
= np.zeros((
npart_tot
, 3))
makeIC-multiscale.v
= np.zeros((
npart_tot
, 3))
makeIC-multiscale.ids
= np.linspace(1,
npart_tot
,
npart_tot
)
makeIC-multiscale.m
= np.ones(
npart_tot
)
float
makeIC-multiscale.h
= np.ones(
npart_tot
) * 4.0 *
boxSize
/
npart_tot
makeIC-multiscale.u
= np.ones(
npart_tot
)
makeIC-multiscale.rng
= np.random.RandomState(
seed
=
seed
)
makeIC-multiscale.new_coords
=
get_coords
(0.0,
boxSize
,
npart
)
makeIC-multiscale.marker
makeIC-multiscale.bins
makeIC-multiscale.file
= h5py.File(
fileName
, "w")
makeIC-multiscale.grp
= file.create_group("/Header")
makeIC-multiscale.data
makeIC-multiscale.dtype
tests
exaparty
test-smoothing-length-computation
test-smoothing-length-computation-1D
makeIC-multiscale.py
Generated on Tue Nov 3 2026 16:05:42 for Peano by
1.9.8