WARPXM v1.10.0
Loading...
Searching...
No Matches
fvm_plotter_test.py File Reference

Namespaces

namespace  examples
 
namespace  examples.dg
 
namespace  examples.dg.mhd
 
namespace  examples.dg.mhd.fvm_plotter_test
 

Variables

int examples.dg.mhd.fvm_plotter_test.maxslide = 1000
 
plt examples.dg.mhd.fvm_plotter_test.cmap = plt.cm.viridis
 
int examples.dg.mhd.fvm_plotter_test.divisions = 100
 
h5py examples.dg.mhd.fvm_plotter_test.f = h5py.File("data/gem_imhd_0.h5")
 
np examples.dg.mhd.fvm_plotter_test.rho = np.asarray(f["variables/fluid/rho/domain"]).flatten(order='C')
 
float examples.dg.mhd.fvm_plotter_test.minrho = 0.0
 
np examples.dg.mhd.fvm_plotter_test.maxrho = rho.max()
 
np examples.dg.mhd.fvm_plotter_test.coordinates = np.asarray(f["coordinates"])
 
np examples.dg.mhd.fvm_plotter_test.connectivity = np.asarray(f["connectivity"])
 
np examples.dg.mhd.fvm_plotter_test.elems = connectivity.shape[0]
 
np examples.dg.mhd.fvm_plotter_test.X = np.zeros((elems,3,3))
 
np examples.dg.mhd.fvm_plotter_test.x = X[:,:,0]
 
np examples.dg.mhd.fvm_plotter_test.y = X[:,:,1]
 
np examples.dg.mhd.fvm_plotter_test.xmax = np.max(np.max(x))
 
np examples.dg.mhd.fvm_plotter_test.xmin = np.min(np.min(x))
 
np examples.dg.mhd.fvm_plotter_test.ymax = np.max(np.max(y))
 
np examples.dg.mhd.fvm_plotter_test.ymin = np.min(np.min(y))
 
np examples.dg.mhd.fvm_plotter_test.Lx = xmax - xmin
 
np examples.dg.mhd.fvm_plotter_test.Ly = ymax - ymin
 
np examples.dg.mhd.fvm_plotter_test.xmid = np.zeros((elems,3))
 
tri examples.dg.mhd.fvm_plotter_test.triang = tri.Triangulation(x.flatten(),y.flatten())
 
np examples.dg.mhd.fvm_plotter_test.umid = np.zeros((elems))
 
np examples.dg.mhd.fvm_plotter_test.u = np.asarray(f["variables/fluid/rho/domain"])
 
int examples.dg.mhd.fvm_plotter_test.delta = 0
 
np examples.dg.mhd.fvm_plotter_test.ticklevels = np.linspace(0,maxrho,divisions)
 
plt examples.dg.mhd.fvm_plotter_test.tric = plt.tripcolor(coordinates[:,0],coordinates[:,1],connectivity,facecolors=umid,edgecolors='k',vmin=minrho-delta,vmax=maxrho+delta,cmap=cmap)
 
plt examples.dg.mhd.fvm_plotter_test.cbar = plt.colorbar()