Peano
Loading...
Searching...
No Matches
plot3D Namespace Reference

Functions

 plot (quantity)
 Plot the specified quantity.
 

Variables

dict params
 
float time = 0.6
 
str pvdfile = "particles.pvd"
 
 reader = ParticleVTUReader(pvdfile=pvdfile, snapshot_time=time)
 
 partData = reader.load()
 
 x = partData.x[:, 0]
 
 y = partData.x[:, 1]
 
 z = partData.x[:, 2]
 
 vx = partData.v[:, 0]
 
 vy = partData.v[:, 1]
 
 vz = partData.v[:, 2]
 
 u = partData.u
 
 P = partData.pressure
 
 rho = partData.density
 

Function Documentation

◆ plot()

plot3D.plot (   quantity)

Plot the specified quantity.

Options:

  • "rho" (density)
  • "p" (pressure)
  • "u" (internal energy)

Definition at line 65 of file plot3D.py.

Variable Documentation

◆ P

plot3D.P = partData.pressure

Definition at line 61 of file plot3D.py.

◆ params

dict plot3D.params
Initial value:
1= {
2 "xtick.labelsize": 12,
3 "ytick.labelsize": 12,
4 "xtick.direction": "in",
5 "ytick.direction": "in",
6 "xtick.top": True,
7 "ytick.right": True,
8 "figure.subplot.left": 0.045,
9 "figure.subplot.right": 0.99,
10 "figure.subplot.bottom": 0.05,
11 "figure.subplot.top": 0.93,
12 "figure.subplot.wspace": 0.15,
13 "text.usetex": True,
14}

Definition at line 22 of file plot3D.py.

◆ partData

plot3D.partData = reader.load()

Definition at line 46 of file plot3D.py.

◆ pvdfile

str plot3D.pvdfile = "particles.pvd"

Definition at line 44 of file plot3D.py.

◆ reader

plot3D.reader = ParticleVTUReader(pvdfile=pvdfile, snapshot_time=time)

Definition at line 45 of file plot3D.py.

◆ rho

plot3D.rho = partData.density

Definition at line 62 of file plot3D.py.

◆ time

float plot3D.time = 0.6

Definition at line 40 of file plot3D.py.

◆ u

plot3D.u = partData.u

Definition at line 59 of file plot3D.py.

◆ vx

plot3D.vx = partData.v[:, 0]

Definition at line 56 of file plot3D.py.

◆ vy

plot3D.vy = partData.v[:, 1]

Definition at line 57 of file plot3D.py.

◆ vz

plot3D.vz = partData.v[:, 2]

Definition at line 58 of file plot3D.py.

◆ x

plot3D.x = partData.x[:, 0]

Definition at line 53 of file plot3D.py.

◆ y

plot3D.y = partData.x[:, 1]

Definition at line 54 of file plot3D.py.

◆ z

plot3D.z = partData.x[:, 2]

Definition at line 55 of file plot3D.py.