File: plot_pa.py

package info (click to toggle)
pysph 1.0~b0~20191115.gite3d5e10-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,932 kB
  • sloc: python: 44,852; sh: 429; cpp: 206; makefile: 202
file content (5 lines) | stat: -rw-r--r-- 160 bytes parent folder | download | duplicates (4)
1
2
3
4
5
from pysph.solver.utils import load
data = load('ed_output/ed_1000.hdf5')
f = data['arrays']['fluid']
plt.axis('equal')
plt.scatter(f.x, f.y, c=f.p, marker='.')