DOLFIN-X
DOLFIN-X C++ interface
Classes | Functions
dolfinx::refinement Namespace Reference

Mesh refinement algorithms. More...

Classes

class  ParallelRefinement
 Data structure and methods for refining meshes in parallel. More...
 
class  PlazaRefinementND
 Implementation of the refinement method described in Plaza and Carey "Local refinement of simplicial grids based on the skeleton" (Applied Numerical Mathematics 32 (2000) 195-218) More...
 

Functions

mesh::Mesh refine (const mesh::Mesh &mesh, bool redistribute=true)
 Create uniformly refined mesh. More...
 
mesh::Mesh refine (const mesh::Mesh &mesh, const mesh::MeshTags< std::int8_t > &cell_markers, bool redistribute=true)
 Create locally refined mesh. More...
 

Detailed Description

Mesh refinement algorithms.

Methods for refining meshes uniformly, or with markers, using edge bisection.

Function Documentation

◆ refine() [1/2]

mesh::Mesh dolfinx::refinement::refine ( const mesh::Mesh mesh,
bool  redistribute = true 
)

Create uniformly refined mesh.

Parameters
[in]meshThe mesh from which to build a refined Mesh
[in]redistributeOptional argument to redistribute the refined mesh if mesh is a distributed mesh.
Returns
A refined mesh

◆ refine() [2/2]

mesh::Mesh dolfinx::refinement::refine ( const mesh::Mesh mesh,
const mesh::MeshTags< std::int8_t > &  cell_markers,
bool  redistribute = true 
)

Create locally refined mesh.

Parameters
[in]meshThe mesh from which to build a refined Mesh
[in]cell_markersA mesh function over integers specifying which cells should be refined (value == 1) (and which should not (any other integer value)).
[in]redistributeOptional argument to redistribute the refined mesh if mesh is a distributed mesh.
Returns
A locally refined mesh