FEApp::LinearElement Class Reference

A 1-D linear finite element. More...

#include <FEApp_LinearElement.hpp>

Inheritance diagram for FEApp::LinearElement:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LinearElement ()
 Default constructor.
virtual ~LinearElement ()
 Destructor.
virtual unsigned int numNodes () const
 Get the number of nodes the element requires.
virtual void createNodes (double x_left, double x_right, unsigned int first_node_gid)
 Create the nodes for this element.
virtual unsigned int nodeGID (unsigned int i) const
 Return GID of ith node.
virtual void evaluateShapes (const std::vector< double > &xi, std::vector< std::vector< double > > &phi) const
 Evaluate all shape functions at a set of points in (-1,1).
virtual void evaluateShapeDerivs (const std::vector< double > &xi, std::vector< std::vector< double > > &dphidxi) const
 Evaluate all shape function derivatives at a set of points in (-1,1).
virtual void evaluateJacobian (const std::vector< double > &xi, std::vector< double > &jac) const
 Evaluate Jacobian of element transformation at a set of points in (-1,1).

Protected Attributes

double xl
 Coordinate of left node.
double xr
 Coordinate of right node.
unsigned int left_GID
 GID of left node.
unsigned int right_GID
 GID of right node.

Private Member Functions

 LinearElement (const LinearElement &)
 Private to prohibit copying.
LinearElementoperator= (const LinearElement &)
 Private to prohibit copying.

Detailed Description

A 1-D linear finite element.

Definition at line 42 of file FEApp_LinearElement.hpp.


Constructor & Destructor Documentation

FEApp::LinearElement::LinearElement (  ) 

Default constructor.

Definition at line 35 of file FEApp_LinearElement.cpp.

FEApp::LinearElement::~LinearElement (  )  [virtual]

Destructor.

Definition at line 44 of file FEApp_LinearElement.cpp.

FEApp::LinearElement::LinearElement ( const LinearElement  )  [private]

Private to prohibit copying.


Member Function Documentation

unsigned int FEApp::LinearElement::numNodes (  )  const [virtual]

Get the number of nodes the element requires.

Implements FEApp::AbstractElement.

Definition at line 50 of file FEApp_LinearElement.cpp.

void FEApp::LinearElement::createNodes ( double  x_left,
double  x_right,
unsigned int  first_node_gid 
) [virtual]

Create the nodes for this element.

Implements FEApp::AbstractElement.

Definition at line 57 of file FEApp_LinearElement.cpp.

unsigned int FEApp::LinearElement::nodeGID ( unsigned int  i  )  const [virtual]

Return GID of ith node.

Implements FEApp::AbstractElement.

Definition at line 67 of file FEApp_LinearElement.cpp.

void FEApp::LinearElement::evaluateShapes ( const std::vector< double > &  xi,
std::vector< std::vector< double > > &  phi 
) const [virtual]

Evaluate all shape functions at a set of points in (-1,1).

Implements FEApp::AbstractElement.

Definition at line 77 of file FEApp_LinearElement.cpp.

void FEApp::LinearElement::evaluateShapeDerivs ( const std::vector< double > &  xi,
std::vector< std::vector< double > > &  dphidxi 
) const [virtual]

Evaluate all shape function derivatives at a set of points in (-1,1).

Implements FEApp::AbstractElement.

Definition at line 91 of file FEApp_LinearElement.cpp.

void FEApp::LinearElement::evaluateJacobian ( const std::vector< double > &  xi,
std::vector< double > &  jac 
) const [virtual]

Evaluate Jacobian of element transformation at a set of points in (-1,1).

Implements FEApp::AbstractElement.

Definition at line 105 of file FEApp_LinearElement.cpp.

LinearElement& FEApp::LinearElement::operator= ( const LinearElement  )  [private]

Private to prohibit copying.


Member Data Documentation

double FEApp::LinearElement::xl [protected]

Coordinate of left node.

Definition at line 90 of file FEApp_LinearElement.hpp.

double FEApp::LinearElement::xr [protected]

Coordinate of right node.

Definition at line 93 of file FEApp_LinearElement.hpp.

unsigned int FEApp::LinearElement::left_GID [protected]

GID of left node.

Definition at line 96 of file FEApp_LinearElement.hpp.

unsigned int FEApp::LinearElement::right_GID [protected]

GID of right node.

Definition at line 99 of file FEApp_LinearElement.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:59:11 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7