WARPXM v1.10.0
|
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 | |
plt examples.uc.read_mesh1d.cmap = plt.cm.get_cmap('rainbow',len(patchIndexes)) |
examples.uc.read_mesh1d.color |
np examples.uc.read_mesh1d.coordinates = np.asarray(f["domain/coordinates"]) |
np examples.uc.read_mesh1d.elem_edges = np.vstack((elem_start, elem_end)).T |
np examples.uc.read_mesh1d.elem_end = gp_elements[:,-1,0] |
np examples.uc.read_mesh1d.elem_start = gp_elements[:,0,0] |
np examples.uc.read_mesh1d.element_connectivity = np.asarray(f["domain/element_connectivity"]) |
np examples.uc.read_mesh1d.element_patches = patchMarkers[element_connectivity] |
np examples.uc.read_mesh1d.elems = gp_elements[:,:,0] |
h5py examples.uc.read_mesh1d.f = h5py.File(plot_mesh) |
np examples.uc.read_mesh1d.gp_elements = coordinates[element_connectivity] |
np examples.uc.read_mesh1d.gp_subelements = coordinates[subelement_connectivity] |
examples.uc.read_mesh1d.label |
np examples.uc.read_mesh1d.Np = gp_elements.shape[1] |
np examples.uc.read_mesh1d.numcoords = coordinates.shape[0] |
np examples.uc.read_mesh1d.numelems = element_connectivity.shape[0] |
len examples.uc.read_mesh1d.numpatches = len(patchIndexes) |
np examples.uc.read_mesh1d.numsubelems = subelement_connectivity.shape[0] |
h5py examples.uc.read_mesh1d.patchIndexes = f["domain"].attrs["patchIndexes"] |
np examples.uc.read_mesh1d.patchMarkers = np.zeros(x.shape) |
h5py examples.uc.read_mesh1d.patchNames = f["domain"].attrs["patchNames"] |
sys examples.uc.read_mesh1d.plot_mesh = sys.argv[1] |
examples.uc.read_mesh1d.s |
h5py examples.uc.read_mesh1d.startingElementIndexes = f["domain"].attrs["startingElementIndexes"] |
np examples.uc.read_mesh1d.subelement_connectivity = np.asarray(f["domain/connectivity"]) |
examples.uc.read_mesh1d.x = coordinates[:,0] |
examples.uc.read_mesh1d.y = coordinates[:,1] |