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

Variables

sys plot_mesh = sys.argv[1]
 
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]
 
np gp_subelements = coordinates[subelement_connectivity]
 
np gp_elements = coordinates[element_connectivity]
 
np Np = gp_elements.shape[1]
 
np patchMarkers = np.zeros(x.shape)
 
np element_patches = patchMarkers[element_connectivity]
 
np elem_start = gp_elements[:,0,0]
 
np elem_end = gp_elements[:,-1,0]
 
np elems = gp_elements[:,:,0]
 
np elem_edges = np.vstack((elem_start, elem_end)).T
 
plt cmap = plt.cm.get_cmap('rainbow',len(patchIndexes))
 
 color
 
 label
 
 s
 

Variable Documentation

◆ cmap

plt examples.uc.read_mesh1d.cmap = plt.cm.get_cmap('rainbow',len(patchIndexes))

◆ color

examples.uc.read_mesh1d.color

◆ coordinates

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

◆ elem_edges

np examples.uc.read_mesh1d.elem_edges = np.vstack((elem_start, elem_end)).T

◆ elem_end

np examples.uc.read_mesh1d.elem_end = gp_elements[:,-1,0]

◆ elem_start

np examples.uc.read_mesh1d.elem_start = gp_elements[:,0,0]

◆ element_connectivity

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

◆ element_patches

np examples.uc.read_mesh1d.element_patches = patchMarkers[element_connectivity]

◆ elems

np examples.uc.read_mesh1d.elems = gp_elements[:,:,0]

◆ f

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

◆ gp_elements

np examples.uc.read_mesh1d.gp_elements = coordinates[element_connectivity]

◆ gp_subelements

np examples.uc.read_mesh1d.gp_subelements = coordinates[subelement_connectivity]

◆ label

examples.uc.read_mesh1d.label

◆ Np

np examples.uc.read_mesh1d.Np = gp_elements.shape[1]

◆ numcoords

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

◆ numelems

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

◆ numpatches

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

◆ numsubelems

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

◆ patchIndexes

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

◆ patchMarkers

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

◆ patchNames

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

◆ plot_mesh

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

◆ s

examples.uc.read_mesh1d.s

◆ startingElementIndexes

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

◆ subelement_connectivity

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

◆ x

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

◆ y

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