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

#include <deal.II/grid/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).

You will get an error if you try to set the boundary indicator of an interior edge or face, i.e., an edge or face that is not at the boundary of the mesh. However, one may sometimes want to set the manifold indicator to an interior object. In this case, set its boundary indicator to numbers::internal_face_boundary_id, to indicate that you understand that it is an interior object, but set its manifold id to the value you want.

Definition at line 173 of file tria.h.

Member Function Documentation

§ check_consistency()

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.

Definition at line 47 of file tria.cc.

Member Data Documentation

§ boundary_lines

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 179 of file tria.h.

§ boundary_quads

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 185 of file tria.h.


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