MeshQuality

class dolfin.cpp.mesh.MeshQuality

Bases: object

The class provides functions to quantify mesh quality

static dihedral_angles(cell: 'Cell') → 'std::vector< double > &'

Get internal dihedral angles of a tetrahedral cell

static dihedral_angles_histogram_data(mesh: 'Mesh', num_bins: 'std::size_t'=100) → 'std::pair< std::vector< double >,std::vector< double > >'

Create (dihedral angles, number of cells) data for creating a histogram of dihedral

static dihedral_angles_matplotlib_histogram(mesh: 'Mesh', num_intervals: 'std::size_t'=100) → 'std::string'

Create Matplotlib string to plot dihedral angles quality histogram

static dihedral_angles_min_max(mesh: 'Mesh') → 'std::pair< double,double >'

Get internal minimum and maximum dihedral angles of a 3D mesh

static radius_ratio_histogram_data(mesh: 'Mesh', num_bins: 'std::size_t'=50) → 'std::pair< std::vector< double >,std::vector< double > >'

Create (ratio, number of cells) data for creating a histogram of cell quality

static radius_ratio_matplotlib_histogram(mesh: 'Mesh', num_intervals: 'std::size_t'=50) → 'std::string'

Create Matplotlib string to plot cell quality histogram

static radius_ratio_min_max(mesh: 'Mesh') → 'std::pair< double,double >'

Compute the minimum and maximum radius ratio of cells (across all processes)

Returns
(float, float)
The [minimum, maximum] cell radii ratio (geometric_dimension * * inradius / circumradius, geometric_dimension is normalization factor). It has range zero to one. Zero indicates a degenerate element.
Example

Note

No example code available for this function.

static radius_ratios(mesh: 'std::shared_ptr< dolfin::Mesh const >') → 'dolfin::CellFunction< double >'

Compute the radius ratio for all cells.

Returns
CellFunction<double>
The cell radius ratio radius ratio geometric_dimension * * inradius / circumradius (geometric_dimension is normalization factor). It has range zero to one. Zero indicates a degenerate element.
Example

Note

No example code available for this function.

thisown

The membership flag