LocalMeshData

class dolfin.cpp.mesh.LocalMeshData(*args)

Bases: dolfin.cpp.common.Variable

This class stores mesh data on a local processor corresponding to a portion of a (larger) global mesh.

Note that the data stored in this class does typically not correspond to a topologically connected mesh; it merely stores a list of vertex coordinates, a list of cell-vertex mappings and a list of global vertex numbers for the locally stored vertices.

It is typically used for parsing meshes in parallel from mesh XML files. After local mesh data has been parsed on each processor, a subsequent repartitioning takes place: first a geometric partitioning of the vertices followed by a redistribution of vertex and cell data, and then a topological partitioning again followed by redistribution of vertex and cell data, at that point corresponding to topologically connected meshes instead of local mesh data.

Overloaded versions

  • LocalMeshData(mpi_comm)

    Create empty local mesh data

  • LocalMeshData(mesh)

    Create local mesh data for given mesh

broadcast_mesh_data()
cell_partition None
cell_type None
cell_vertices None
cell_weight None
clear()
domain_data None
extract_mesh_data()
gdim None
global_cell_indices None
mpi_comm()
num_global_cells None
num_global_vertices None
num_vertices_per_cell None
receive_mesh_data()
tdim None
thisown None

The membership flag

unpack_cell_vertices()
unpack_vertex_coordinates()
vertex_coordinates None
vertex_indices None

Previous topic

IntervalMesh

Next topic

Mesh

This Page