def _initialize_mesh(self): coords = ensure_list(self.stream_handler.fields.pop("coordinates")) connect = ensure_list(self.stream_handler.fields.pop("connectivity")) self.meshes = [ StreamUnstructuredMesh(i, self.index_filename, c1, c2, self) for i, (c1, c2) in enumerate(zip(connect, repeat(coords[0]))) ] self.mesh_union = MeshUnion("mesh_union", self.meshes)
def _initialize_mesh(self): coords = self.ds._read_coordinates() connectivity = self.ds._read_connectivity() self.meshes = [] for mesh_id, conn_ind in enumerate(connectivity): displaced_coords = self.ds._apply_displacement(coords, mesh_id) mesh = ExodusIIUnstructuredMesh(mesh_id, self.index_filename, conn_ind, displaced_coords, self) self.meshes.append(mesh) self.mesh_union = MeshUnion("mesh_union", self.meshes)