Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Public Attributes | List of all members
CellData< structdim > Struct Template Reference

#include <tria.h>

Inheritance diagram for CellData< structdim >:
[legend]

Public Member Functions

 CellData ()
 

Public Attributes

unsigned int vertices [GeometryInfo< structdim >::vertices_per_cell]
 
union {
   types::boundary_id   boundary_id
 
   types::material_id   material_id
 
}; 
 

Detailed Description

template<int structdim>
struct CellData< structdim >

Structure which is passed to Triangulation::create_triangulation. It contains all data needed to construct a cell, namely the indices of the vertices and the material indicator.

This structure is also used to represent data for faces and edge as part of the SubCellData class. In that case the vertices array needs to represent the vertices of a face or edge of a cell listed in the argument to Triangulation::create_triangulation that denotes the cells. It can be used to attach boundary indicators to faces.

Definition at line 98 of file tria.h.

Constructor & Destructor Documentation

template<int structdim>
CellData< structdim >::CellData ( )

Default constructor. Sets the vertex indices to invalid values and the boundary or material id the default value (zero).

Member Data Documentation

template<int structdim>
unsigned int CellData< structdim >::vertices[GeometryInfo< structdim >::vertices_per_cell]

Indices of the vertices of this cell.

Definition at line 104 of file tria.h.

union { ... }

Material or boundary indicator of this cell. The material_id may be used to denote different coefficients, etc.

Note that if this object is part of a SubCellData object, then it represents a face or edge of a cell. In this case one should use the field boundary_id instead of material_id.


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