#include <TriFace.hpp>
Public Member Functions | |
TriFace (Node **theNodes) | |
Builds the TriFace object from an array of three nodes. More... | |
TriFace () | |
~TriFace () | |
Destructor. More... | |
virtual int | getNumNodes () const |
Returns the number of nodes for this type of face (three for the triangular face). More... | |
virtual Element * | buildCohesive (Element *side_elem, Node *node, Node *new_node) |
Public Member Functions inherited from Face | |
Face (Type type) | |
Constructor: set type & reset params. More... | |
Face () | |
~Face () | |
Destructor. More... | |
void | setID (int theID) |
Sets the serial ID for the face. More... | |
int | getID () const |
Returns the serial ID of the face. More... | |
void | setFlag (int theFlag) |
Sets the flag for the face. More... | |
int | getFlag () const |
Gets the flag for the face. More... | |
Node ** | getNodes () |
Returns the array of nodes. More... | |
void | setElement1 (Element *elem1) |
Sets the pointer to the first element that this face is associated with. More... | |
Element * | getElement1 () |
Get the pointer to the first element that this face is associated with. More... | |
void | setElement2 (Element *elem2) |
Sets the pointer to the second element that this face is associated with. More... | |
Element * | getElement2 () |
Get the pointer to the second element that this face is associated with. More... | |
void | addElement (Element *theElement) |
void | removeElement (Element *theElement) |
Type | getFaceType () const |
Returns the face type of this face (see the Type attribute of the Face class). More... | |
boolean | isExterior () const |
void | replaceNode (Node *node, Node *new_node) |
boolean | containsNode (Node *node) const |
Additional Inherited Members | |
Public Types inherited from Face | |
enum | Type { e_tri, e_quad, e_MAX_TYPE } |
enum | eType { e_tet, e_hex, e_tri_cohesive, e_quad_cohesive, e_MAX_ELEMENT_TYPE } |
Static Public Member Functions inherited from Face | |
static Face * | create (eType type) |
static void | setMesh (Mesh *emesh) |
Protected Attributes inherited from Face | |
int | d_ID |
Serial ID assigned to this face. More... | |
int | d_flag |
User-defined integer flag assigned to this face. More... | |
Element * | d_E1 |
Pointer to the first element that this face is associated with. More... | |
Element * | d_E2 |
The second element that this face is associated with. More... | |
Node ** | d_nodes |
Array of nodes assigned to this face. More... | |
Type | d_eType |
The Type of face (triangular or square for now). More... | |
Static Protected Attributes inherited from Face | |
static Mesh * | s_mesh = 0 |
Definition at line 8 of file TriFace.hpp.
Builds the TriFace object from an array of three nodes.
The element(s) must be set later with the setElement methods.
Definition at line 6 of file TriFace.cpp.
References Node::addFace(), Face::d_nodes, and i.
TriFace | ( | ) |
~TriFace | ( | ) |
Destructor.
Definition at line 23 of file TriFace.cpp.
References Face::d_nodes, i, and Node::removeFace().
Implements Face.
Definition at line 34 of file TriFace.cpp.
References Face::d_E1, Face::d_E2, Face::d_nodes, Element::getFaces(), i, and Element::replaceFace().
|
virtual |
Returns the number of nodes for this type of face (three for the triangular face).
Implements Face.
Definition at line 30 of file TriFace.cpp.