Skip to content

A Python, and super basic, version of GraSPH. Early stages of development. Only in 2D.

License

Notifications You must be signed in to change notification settings

edoyango/pyGraSPH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyGraSPH

A Python, and super basic, version of GraSPH. Early stages of development. Only in 2D.

Setup

Package requirements:

pip install git+https://github.com/edoyango/pyGraSPH.git

NumPy version 1.25 is used here as performance improvements are introduced which improve speed of this code by 4x. See NumPy Release Notes, where the improvements to np.ufunc.at and np.einsum are most relevant.

Run

Edit main.py as needed, then

mkdir output # make output directory if doesn't exist
python3 main.py

and wait awhile.

Plotting

Edit plot.py as needed, then

python3 plot.py <timestep>

which reads data form output/sph_*.h5 and creates sphplot.png in the current working directory

About

A Python, and super basic, version of GraSPH. Early stages of development. Only in 2D.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages