Fluid structure interaction suite
ParsedTools::GridInfo Struct Reference

Gather information about a Triangulation. More...

#include <grid_info.h>

Public Member Functions

 GridInfo (const unsigned int info_level=0)
 Construct a new (empty) Grid Info object. More...
 
template<int dim, int spacedim>
 GridInfo (const Triangulation< dim, spacedim > &tria, const unsigned int info_level=0)
 Construct a new Grid Info object, and gather all information about the Triangulation tria. More...
 
template<int dim, int spacedim>
void build_info (const Triangulation< dim, spacedim > &tria)
 Actually build the information about the Triangulation. More...
 
template<typename StreamType >
void print_info (StreamType &out)
 Print all gathered information about the Triangulation. More...
 

Public Attributes

unsigned int info_level = 0
 Level of information to gather. More...
 
unsigned int n_active_cells = 0
 Number of active cells. More...
 
unsigned int n_vertices = 0
 Number of vertices. More...
 
unsigned int n_used_vertices = 0
 Number of used vertices. More...
 
unsigned int n_levels = 0
 Number of levels. More...
 
std::vector< unsigned int > n_active_cells_at_level
 Number of active cells at each level. More...
 
std::vector< unsigned int > n_cells_at_level
 Number of cells at each level. More...
 
std::vector< types::boundary_idboundary_ids
 Boundary ids. More...
 
std::vector< types::material_idmaterial_ids
 Material ids. More...
 
std::vector< types::manifold_idmanifold_ids
 Manifold ids. More...
 
std::vector< ReferenceCellreference_cell_types
 Reference cell types. More...
 
std::map< types::boundary_id, unsigned int > faces_per_boundary_id
 Number of faces per boundary id. More...
 
std::map< types::material_id, unsigned int > cells_per_material_id
 Number of cells per boundary id. More...
 
std::map< types::manifold_id, unsigned int > faces_per_manifold_id
 Number of faces per manifold id. More...
 
std::map< types::manifold_id, unsigned int > cells_per_manifold_id
 Number of cells per manifold id. More...
 
std::map< ReferenceCell, unsigned int > cells_per_reference_cell_type
 Number of cells per reference cell type. More...
 

Detailed Description

Gather information about a Triangulation.

This class can be used to store information about a Triangulation, such as the number of cells, the number of vertices, etc.

It is particularly useful when building robust programs w.r.t. boundary conditions, boundary indicators, manifold indicators, etc.

Definition at line 148 of file grid_info.h.

Constructor & Destructor Documentation

◆ GridInfo() [1/2]

ParsedTools::GridInfo::GridInfo ( const unsigned int  info_level = 0)
inline

Construct a new (empty) Grid Info object.

Parameters
info_levelLevel of information to gather. The higher the number, the more expensive the operation.

Definition at line 156 of file grid_info.h.

◆ GridInfo() [2/2]

template<int dim, int spacedim>
ParsedTools::GridInfo::GridInfo ( const Triangulation< dim, spacedim > &  tria,
const unsigned int  info_level = 0 
)
inline

Construct a new Grid Info object, and gather all information about the Triangulation tria.

Parameters
triaThe Triangulation to gather information from.
info_levelLevel of information to gather. The higher the number, the more expensive the operation.

Definition at line 169 of file grid_info.h.

References build_info().

Member Function Documentation

◆ build_info()

◆ print_info()

template<typename StreamType >
void ParsedTools::GridInfo::print_info ( StreamType &  out)
inline

Member Data Documentation

◆ info_level

unsigned int ParsedTools::GridInfo::info_level = 0

Level of information to gather.

Definition at line 300 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_active_cells

unsigned int ParsedTools::GridInfo::n_active_cells = 0

Number of active cells.

Definition at line 303 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_vertices

unsigned int ParsedTools::GridInfo::n_vertices = 0

Number of vertices.

Definition at line 306 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_used_vertices

unsigned int ParsedTools::GridInfo::n_used_vertices = 0

Number of used vertices.

Definition at line 309 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_levels

unsigned int ParsedTools::GridInfo::n_levels = 0

Number of levels.

Definition at line 312 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_active_cells_at_level

std::vector<unsigned int> ParsedTools::GridInfo::n_active_cells_at_level

Number of active cells at each level.

Definition at line 315 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ n_cells_at_level

std::vector<unsigned int> ParsedTools::GridInfo::n_cells_at_level

Number of cells at each level.

Definition at line 318 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ boundary_ids

std::vector<types::boundary_id> ParsedTools::GridInfo::boundary_ids

Boundary ids.

Definition at line 321 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ material_ids

std::vector<types::material_id> ParsedTools::GridInfo::material_ids

Material ids.

Definition at line 324 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ manifold_ids

std::vector<types::manifold_id> ParsedTools::GridInfo::manifold_ids

Manifold ids.

Definition at line 327 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ reference_cell_types

std::vector<ReferenceCell> ParsedTools::GridInfo::reference_cell_types

Reference cell types.

Definition at line 330 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ faces_per_boundary_id

std::map<types::boundary_id, unsigned int> ParsedTools::GridInfo::faces_per_boundary_id

Number of faces per boundary id.

Definition at line 333 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ cells_per_material_id

std::map<types::material_id, unsigned int> ParsedTools::GridInfo::cells_per_material_id

Number of cells per boundary id.

Definition at line 336 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ faces_per_manifold_id

std::map<types::manifold_id, unsigned int> ParsedTools::GridInfo::faces_per_manifold_id

Number of faces per manifold id.

Definition at line 339 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ cells_per_manifold_id

std::map<types::manifold_id, unsigned int> ParsedTools::GridInfo::cells_per_manifold_id

Number of cells per manifold id.

Definition at line 342 of file grid_info.h.

Referenced by build_info(), and print_info().

◆ cells_per_reference_cell_type

std::map<ReferenceCell, unsigned int> ParsedTools::GridInfo::cells_per_reference_cell_type

Number of cells per reference cell type.

Definition at line 345 of file grid_info.h.

Referenced by build_info(), and print_info().


The documentation for this struct was generated from the following file: