WARPXM v1.10.0
|
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 | |
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 |
tuple examples.uc.read_mesh2d.centroids_subelements = (coordinates[subelement_connectivity[:,0]]+coordinates[subelement_connectivity[:,1]]+coordinates[subelement_connectivity[:,2]])/3.0 |
examples.uc.read_mesh2d.cmap |
examples.uc.read_mesh2d.color |
np examples.uc.read_mesh2d.coordinates = np.asarray(f["domain/coordinates"]) |
np examples.uc.read_mesh2d.element_connectivity = np.asarray(f["domain/element_connectivity"]) |
h5py examples.uc.read_mesh2d.f = h5py.File(plot_mesh) |
examples.uc.read_mesh2d.linestyle |
examples.uc.read_mesh2d.linewidth |
np examples.uc.read_mesh2d.numcoords = coordinates.shape[0] |
np examples.uc.read_mesh2d.numelems = element_connectivity.shape[0] |
len examples.uc.read_mesh2d.numpatches = len(patchIndexes) |
np examples.uc.read_mesh2d.numsubelems = subelement_connectivity.shape[0] |
h5py examples.uc.read_mesh2d.patchIndexes = f["domain"].attrs["patchIndexes"] |
examples.uc.read_mesh2d.patchMarkers = np.zeros(x.shape) |
h5py examples.uc.read_mesh2d.patchNames = f["domain"].attrs["patchNames"] |
sys examples.uc.read_mesh2d.plot_mesh = sys.argv[1] |
examples.uc.read_mesh2d.s |
int examples.uc.read_mesh2d.sorder = int(sys.argv[2]) |
h5py examples.uc.read_mesh2d.startingElementIndexes = f["domain"].attrs["startingElementIndexes"] |
np examples.uc.read_mesh2d.subelement_connectivity = np.asarray(f["domain/connectivity"]) |
examples.uc.read_mesh2d.ticks |
list examples.uc.read_mesh2d.tri_corners = [0, 0, 0] |
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) |
tri examples.uc.read_mesh2d.triang_subelements = tri.Triangulation(x,y,subelement_connectivity) |
examples.uc.read_mesh2d.x = coordinates[:,0] |
examples.uc.read_mesh2d.y = coordinates[:,1] |