File: plot_pa.py

package info (click to toggle)
pysph 0~20180411.git1ae58e1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,348 kB
  • sloc: python: 34,214; sh: 459; cpp: 206; makefile: 193; ansic: 168
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='.')