Reference documentation for deal.II version 8.4.2
Public Member Functions | Public Attributes | List of all members
CellData< structdim > Struct Template Reference

#include <deal.II/grid/tria.h>

Inheritance diagram for CellData< structdim >:
[legend]

Public Member Functions

 CellData ()
 

Public Attributes

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

Detailed Description

template<int structdim>
struct CellData< structdim >

A structure to describe individual cells and passed as argument to Triangulation::create_triangulation(). It contains all data needed to construct a cell, namely the indices of the vertices, the material or boundary indicator (depending on whether it represents a cell or a face), and a manifold id to describe the manifold this object belongs to.

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 faces. It can be used to attach boundary indicators to faces.

An example showing how this class can be used is in the create_coarse_grid() function of step-14.

Definition at line 31 of file grid_in.h.

Constructor & Destructor Documentation

§ CellData()

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

Default constructor. Sets the member variables to the following values: - vertex indices to invalid values - boundary or material id zero (the default for boundary or material ids) - manifold id to numbers::invalid_manifold_id

Member Data Documentation

§ vertices

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

Indices of the vertices of this cell.

Definition at line 110 of file tria.h.

§ @1

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.

§ manifold_id

template<int structdim>
types::manifold_id CellData< structdim >::manifold_id

Manifold identifier of this object. This identifier should be used to identify the manifold to which this object belongs, and from which this object will collect information on how to add points upon refinement.

Definition at line 131 of file tria.h.


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