mesh::Entity Class Reference

#include <entity.h>

Inheritance diagram for mesh::Entity:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Entity (id_t id)
id_t get_id () const
bool on_boundary ()
unsigned char on_symmetry_planes ()
void set_boundary (bool on_boundary)
void set_symmetry_plane (int plane_id)

Private Attributes

id_t id_
unsigned char bc_info_

Detailed Description

Base class for mesh classes like Point, Edge, Face and Tet
Author:
Roman Geus

Definition at line 36 of file entity.h.


Constructor & Destructor Documentation

mesh::Entity::Entity ( id_t  id  )  [inline]

Constructor

Parameters:
id Numeric id for entity.

Definition at line 42 of file entity.h.


Member Function Documentation

id_t mesh::Entity::get_id (  )  const [inline]

Return numeric id of entity.

Definition at line 47 of file entity.h.

References id_.

Referenced by mesh::Face::get_corner_id(), mesh::Face::get_edge_id(), h5_cartesian_sampling(), and NedelecElement::surface_integral_curl().

bool mesh::Entity::on_boundary (  )  [inline]

Return true if entity is on boundary

Definition at line 52 of file entity.h.

References bc_info_.

Referenced by NedelecElement2::get_eliminated_dofs(), NedelecElement1::get_eliminated_dofs(), and h5_compute_eigenquality().

unsigned char mesh::Entity::on_symmetry_planes (  )  [inline]

Return value containing symmetry plane info in the bit 0, bit 1 and bit 2. All higher order bits are zero. Bit i == 1 means that the entity is on symmetry plane i.

Definition at line 58 of file entity.h.

References bc_info_.

Referenced by NedelecElement2::get_eliminated_dofs(), NedelecElement1::get_eliminated_dofs(), and h5_compute_eigenquality().

void mesh::Entity::set_boundary ( bool  on_boundary  )  [inline]

Update boundary information: If on_boundary Entity is located on boundary, otherwise Entity is not located on boundary.

Definition at line 65 of file entity.h.

References bc_info_.

Referenced by mesh::TetMesh::setBoundaryOnFace().

void mesh::Entity::set_symmetry_plane ( int  plane_id  )  [inline]

Update boundary information: Entity is locataed on symmetry plane plane_id.

Definition at line 74 of file entity.h.

References bc_info_.

Referenced by mesh::TetMesh::setSymmetryPlaneOnFace().


Member Data Documentation

unsigned char mesh::Entity::bc_info_ [private]

Boundary information encoded in bits 0-3

Definition at line 88 of file entity.h.

Referenced by on_boundary(), on_symmetry_planes(), set_boundary(), and set_symmetry_plane().

id_t mesh::Entity::id_ [private]

Number to identify entity. May be used to derive FEM DOF numbers. Also corresponds to index to the corresponding vector of the TetMesh class.

Definition at line 84 of file entity.h.

Referenced by get_id().


The documentation for this class was generated from the following file:
Generated on Fri Oct 26 13:35:17 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7