Reference documentation for deal.II version 8.5.1
Static Public Member Functions | Static Public Attributes | List of all members
GeometryInfo< 0 > Struct Template Reference

#include <deal.II/base/geometry_info.h>

Static Public Member Functions

static unsigned int n_children (const RefinementCase< 0 > &refinement_case)
 

Static Public Attributes

static const unsigned int max_children_per_cell = 1
 
static const unsigned int faces_per_cell = 0
 
static const unsigned int max_children_per_face = 0
 
static const unsigned int vertices_per_cell = 1
 
static const unsigned int vertices_per_face = 0
 
static const unsigned int lines_per_face = 0
 
static const unsigned int quads_per_face = 0
 
static const unsigned int lines_per_cell = 0
 
static const unsigned int quads_per_cell = 0
 
static const unsigned int hexes_per_cell = 0
 

Detailed Description

template<>
struct GeometryInfo< 0 >

Topological description of zero dimensional cells, i.e. points. This class might not look too useful but often is if in a certain dimension we would like to enquire information about objects with dimension one lower than the present, e.g. about faces.

This class contains as static members information on vertices and faces of a dim-dimensional grid cell. The interface is the same for all dimensions. If a value is of no use in a low dimensional cell, it is (correctly) set to zero, e.g. max_children_per_face in 1d.

This information should always replace hard-coded numbers of vertices, neighbors and so on, since it can be used dimension independently.


Author
Wolfgang Bangerth, 1998

Definition at line 861 of file geometry_info.h.

Member Function Documentation

◆ n_children()

unsigned int GeometryInfo< 0 >::n_children ( const RefinementCase< 0 > &  refinement_case)
static

Return the number of children of a cell (or face) refined with ref_case. Since we are concerned here with points, the number of children is equal to one.

Definition at line 23 of file geometry_info.cc.

Member Data Documentation

◆ max_children_per_cell

const unsigned int GeometryInfo< 0 >::max_children_per_cell = 1
static

Maximum number of children of a cell, i.e. the number of children of an isotropically refined cell.

If a cell is refined anisotropically, the actual number of children may be less than the value given here.

Definition at line 871 of file geometry_info.h.

◆ faces_per_cell

const unsigned int GeometryInfo< 0 >::faces_per_cell = 0
static

Number of faces a cell has.

Definition at line 876 of file geometry_info.h.

◆ max_children_per_face

const unsigned int GeometryInfo< 0 >::max_children_per_face = 0
static

Maximum number of children of a refined face, i.e. the number of children of an isotropically refined face.

If a cell is refined anisotropically, the actual number of children may be less than the value given here.

Definition at line 885 of file geometry_info.h.

◆ vertices_per_cell

const unsigned int GeometryInfo< 0 >::vertices_per_cell = 1
static

Number of vertices a cell has.

Definition at line 897 of file geometry_info.h.

◆ vertices_per_face

const unsigned int GeometryInfo< 0 >::vertices_per_face = 0
static

Number of vertices each face has. Since this is not useful in one dimension, we provide a useless number (in the hope that a compiler may warn when it sees constructs like for (i=0; i<vertices_per_face; ++i), at least if i is an unsigned int.

Definition at line 905 of file geometry_info.h.

◆ lines_per_face

const unsigned int GeometryInfo< 0 >::lines_per_face = 0
static

Number of lines each face has.

Definition at line 910 of file geometry_info.h.

◆ quads_per_face

const unsigned int GeometryInfo< 0 >::quads_per_face = 0
static

Number of quads on each face.

Definition at line 915 of file geometry_info.h.

◆ lines_per_cell

const unsigned int GeometryInfo< 0 >::lines_per_cell = 0
static

Number of lines of a cell.

Definition at line 920 of file geometry_info.h.

◆ quads_per_cell

const unsigned int GeometryInfo< 0 >::quads_per_cell = 0
static

Number of quadrilaterals of a cell.

Definition at line 925 of file geometry_info.h.

◆ hexes_per_cell

const unsigned int GeometryInfo< 0 >::hexes_per_cell = 0
static

Number of hexahedra of a cell.

Definition at line 930 of file geometry_info.h.


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