Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
DOLFINx C++ interface
Functions
dolfinx::refinement::plaza Namespace Reference

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)
 Uniform refine, optionally redistributing and optionally calculating the parent-child relation for facets (in 2D) More...
 
mesh::Mesh refine (const mesh::Mesh &mesh, const mesh::MeshTags< std::int8_t > &refinement_marker, bool redistribute)
 Refine with markers, optionally redistributing. More...
 
std::tuple< graph::AdjacencyList< std::int64_t >, xt::xtensor< double, 2 >, std::vector< std::int32_t > > compute_refinement_data (const mesh::Mesh &mesh, const mesh::MeshTags< std::int8_t > &refinement_marker)
 Refine with markers returning new mesh data. More...
 
std::tuple< graph::AdjacencyList< std::int64_t >, xt::xtensor< double, 2 >, std::vector< std::int32_t > > compute_refinement_data (const mesh::Mesh &mesh)
 Refine mesh returning new mesh data. More...
 

Detailed Description

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)

Function Documentation

◆ compute_refinement_data() [1/2]

std::tuple< graph::AdjacencyList< std::int64_t >, xt::xtensor< double, 2 >, std::vector< std::int32_t > > dolfinx::refinement::plaza::compute_refinement_data ( const mesh::Mesh mesh)

Refine mesh returning new mesh data.

Parameters
[in]meshInput mesh to be refined
Returns
New mesh data: cell topology, vertex coordinates and parent cell index

◆ compute_refinement_data() [2/2]

std::tuple< graph::AdjacencyList< std::int64_t >, xt::xtensor< double, 2 >, std::vector< std::int32_t > > dolfinx::refinement::plaza::compute_refinement_data ( const mesh::Mesh mesh,
const mesh::MeshTags< std::int8_t > &  refinement_marker 
)

Refine with markers returning new mesh data.

Parameters
[in]meshInput mesh to be refined
[in]refinement_markerMeshTags listing which mesh entities should be split by this refinement. The values are ignored. redistribute after refinement
Returns
New mesh data: cell topology, vertex coordinates and parent cell index

◆ refine() [1/2]

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

Uniform refine, optionally redistributing and optionally calculating the parent-child relation for facets (in 2D)

Parameters
[in]meshInput mesh to be refined
[in]redistributeFlag to call the mesh partitioner to redistribute after refinement
Returns
New mesh

◆ refine() [2/2]

mesh::Mesh dolfinx::refinement::plaza::refine ( const mesh::Mesh mesh,
const mesh::MeshTags< std::int8_t > &  refinement_marker,
bool  redistribute 
)

Refine with markers, optionally redistributing.

Parameters
[in]meshInput mesh to be refined
[in]refinement_markerMeshTags listing which mesh entities should be split by this refinement. The values are ignored.
[in]redistributeFlag to call the Mesh Partitioner to redistribute after refinement
Returns
New Mesh