Reference documentation for deal.II version 8.1.0
Public Member Functions | Public Attributes | List of all members
SubCellData Struct Reference

#include <tria.h>

Public Member Functions

bool check_consistency (const unsigned int dim) const
 

Public Attributes

std::vector< CellData< 1 > > boundary_lines
 
std::vector< CellData< 2 > > boundary_quads
 

Detailed Description

Structure to be passed to Triangulation::create_triangulation function to describe boundary information.

This structure is the same for all dimensions, since we use an input function which is the same for all dimensions. The content of objects of this structure varies with the dimensions, however.

Since in one dimension, there is no boundary information apart from the two end points of the interval, this structure does not contain anything and exists only for consistency, to allow a common interface for all space dimensions. All fields should always be empty.

Boundary data in 2D consists of a list of lines which belong to a given boundary component. A boundary component is a list of lines which are given a common number describing the boundary condition to hold on this part of the boundary. The triangulation creation function gives lines not in this list either the boundary indicator zero (if on the boundary) or numbers::internal_face_boundary_id (if in the interior). Explicitely giving a line the indicator numbers::internal_face_boundary_id will result in an error, as well as giving an interior line a boundary indicator.

Definition at line 158 of file tria.h.

Member Function Documentation

bool SubCellData::check_consistency ( const unsigned int  dim) const

This function checks whether the vectors which may not be used in a given dimension are really empty. I.e., whether the boundary_* arrays are empty when in one space dimension and whether the boundary_quads array is empty when in two dimensions.

Since this structure is the same for all dimensions, the actual dimension has to be given as a parameter.

Member Data Documentation

std::vector<CellData<1> > SubCellData::boundary_lines

Each record of this vector describes a line on the boundary and its boundary indicator.

Definition at line 165 of file tria.h.

std::vector<CellData<2> > SubCellData::boundary_quads

Each record of this vector describes a quad on the boundary and its boundary indicator.

Definition at line 172 of file tria.h.


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