MeshQuality¶
-
class
dolfin.cpp.mesh.
MeshQuality
¶ Bases:
object
The class provides functions to quantify mesh quality.
-
static
dihedral_angles
()¶ Get internal dihedral angles of a tetrahedral cell.
Parameters: - Cell & cell (const) –
- double > & dh_angle (std::vector<) –
Return type: void
-
static
dihedral_angles_histogram_data
()¶ Create (dihedral angles, number of cells) data for creating a histogram of dihedral
Parameters: - Mesh & mesh (const) –
- num_bins (std::size_t) –
Return type: std::pair< std::vector< double >, std::vector< double > >
-
static
dihedral_angles_matplotlib_histogram
()¶ Create Matplotlib string to plot dihedral angles quality histogram.
Parameters: - Mesh & mesh (const) –
- num_intervals (std::size_t) –
Return type: std::string
-
static
dihedral_angles_min_max
()¶ Get internal minimum and maximum dihedral angles of a 3D mesh.
Parameters: Mesh & mesh (const) – Return type: std::pair< double, double >
-
static
radius_ratio_histogram_data
()¶ Create (ratio, number of cells) data for creating a histogram of cell quality
Parameters: - Mesh & mesh (const) – (const
Mesh
&) - num_bins (std::size_t) – (std::size_t)
Return type: std::pair< std::vector< double >, std::vector< double > >
Returns: std::pair<std::vector<double>, std::vector<double>>
- Mesh & mesh (const) – (const
-
static
radius_ratio_matplotlib_histogram
()¶ Create Matplotlib string to plot cell quality histogram
Parameters: - Mesh & mesh (const) – (const
Mesh
&) - num_intervals (std::size_t) – (std::size_t)
Return type: std::string
Returns: std::string
- Mesh & mesh (const) – (const
-
static
radius_ratio_min_max
()¶ Compute the minimum and maximum radius ratio of cells (across all processes)
Parameters: Mesh & mesh (const) – (const Mesh
&)Return type: std::pair< double, double > Returns: std::pair<double, double> 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.
-
static
radius_ratios
()¶ Compute the radius ratio for all cells.
Parameters: const Mesh > mesh (std::shared_ptr<) – (std::shared_ptr<const Mesh>) Return type: MeshFunction< double > Returns: MeshFunction<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.
-
thisown
¶ The membership flag
-
static