WARPXM v1.10.0
Loading...
Searching...
No Matches
examples.uc.read_mesh2d Namespace Reference

Variables

sys plot_mesh = sys.argv[1]
 
int sorder = int(sys.argv[2])
 
h5py f = h5py.File(plot_mesh)
 
np coordinates = np.asarray(f["domain/coordinates"])
 
np subelement_connectivity = np.asarray(f["domain/connectivity"])
 
np element_connectivity = np.asarray(f["domain/element_connectivity"])
 
h5py patchNames = f["domain"].attrs["patchNames"]
 
h5py patchIndexes = f["domain"].attrs["patchIndexes"]
 
h5py startingElementIndexes = f["domain"].attrs["startingElementIndexes"]
 
np numcoords = coordinates.shape[0]
 
np numsubelems = subelement_connectivity.shape[0]
 
np numelems = element_connectivity.shape[0]
 
len numpatches = len(patchIndexes)
 
np x = coordinates[:,0]
 
np y = coordinates[:,1]
 
tri triang_subelements = tri.Triangulation(x,y,subelement_connectivity)
 
list tri_corners = [0, 0, 0]
 
tri triang_elements = tri.Triangulation(x, y, np.vstack((element_connectivity[:,tri_corners[0]], element_connectivity[:,tri_corners[1]], element_connectivity[:,tri_corners[2]])).T)
 
np patchMarkers = np.zeros(x.shape)
 
tuple centroids_subelements = (coordinates[subelement_connectivity[:,0]]+coordinates[subelement_connectivity[:,1]]+coordinates[subelement_connectivity[:,2]])/3.0
 
tuple centroids_elements = (coordinates[element_connectivity[:,tri_corners[0]]]+coordinates[element_connectivity[:,tri_corners[1]]]+coordinates[element_connectivity[:,tri_corners[2]]])/3.0
 
 color
 
 linewidth
 
 linestyle
 
 cmap
 
 ticks
 
 s
 

Variable Documentation

◆ centroids_elements

tuple examples.uc.read_mesh2d.centroids_elements = (coordinates[element_connectivity[:,tri_corners[0]]]+coordinates[element_connectivity[:,tri_corners[1]]]+coordinates[element_connectivity[:,tri_corners[2]]])/3.0

◆ centroids_subelements

tuple examples.uc.read_mesh2d.centroids_subelements = (coordinates[subelement_connectivity[:,0]]+coordinates[subelement_connectivity[:,1]]+coordinates[subelement_connectivity[:,2]])/3.0

◆ cmap

examples.uc.read_mesh2d.cmap

◆ color

examples.uc.read_mesh2d.color

◆ coordinates

np examples.uc.read_mesh2d.coordinates = np.asarray(f["domain/coordinates"])

◆ element_connectivity

np examples.uc.read_mesh2d.element_connectivity = np.asarray(f["domain/element_connectivity"])

◆ f

h5py examples.uc.read_mesh2d.f = h5py.File(plot_mesh)

◆ linestyle

examples.uc.read_mesh2d.linestyle

◆ linewidth

examples.uc.read_mesh2d.linewidth

◆ numcoords

np examples.uc.read_mesh2d.numcoords = coordinates.shape[0]

◆ numelems

np examples.uc.read_mesh2d.numelems = element_connectivity.shape[0]

◆ numpatches

len examples.uc.read_mesh2d.numpatches = len(patchIndexes)

◆ numsubelems

np examples.uc.read_mesh2d.numsubelems = subelement_connectivity.shape[0]

◆ patchIndexes

h5py examples.uc.read_mesh2d.patchIndexes = f["domain"].attrs["patchIndexes"]

◆ patchMarkers

examples.uc.read_mesh2d.patchMarkers = np.zeros(x.shape)

◆ patchNames

h5py examples.uc.read_mesh2d.patchNames = f["domain"].attrs["patchNames"]

◆ plot_mesh

sys examples.uc.read_mesh2d.plot_mesh = sys.argv[1]

◆ s

examples.uc.read_mesh2d.s

◆ sorder

int examples.uc.read_mesh2d.sorder = int(sys.argv[2])

◆ startingElementIndexes

h5py examples.uc.read_mesh2d.startingElementIndexes = f["domain"].attrs["startingElementIndexes"]

◆ subelement_connectivity

np examples.uc.read_mesh2d.subelement_connectivity = np.asarray(f["domain/connectivity"])

◆ ticks

examples.uc.read_mesh2d.ticks

◆ tri_corners

list examples.uc.read_mesh2d.tri_corners = [0, 0, 0]

◆ triang_elements

examples.uc.read_mesh2d.triang_elements = tri.Triangulation(x, y, np.vstack((element_connectivity[:,tri_corners[0]], element_connectivity[:,tri_corners[1]], element_connectivity[:,tri_corners[2]])).T)

◆ triang_subelements

tri examples.uc.read_mesh2d.triang_subelements = tri.Triangulation(x,y,subelement_connectivity)

◆ x

examples.uc.read_mesh2d.x = coordinates[:,0]

◆ y

examples.uc.read_mesh2d.y = coordinates[:,1]