StandardFE Class Reference

#include <FE.h>

Inheritance diagram for StandardFE:

FE LagrangeFE VectorLagrangeFE List of all members.

Public Member Functions

 StandardFE ()
 ~StandardFE ()
void set (int order)
void set (Polygon &p)
void compute_basis_functions ()
virtual int nbf ()
virtual ex N (int i)
virtual ex dof (int i)

Protected Attributes

exvector Ns
exvector dofs
Polygonp
int order

Detailed Description

Definition at line 28 of file FE.h.


Constructor & Destructor Documentation

StandardFE::StandardFE  )  [inline]
 

Definition at line 38 of file FE.h.

00038 {}

StandardFE::~StandardFE  )  [inline]
 

Definition at line 39 of file FE.h.

00039 {}


Member Function Documentation

void StandardFE::compute_basis_functions  ) 
 

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 7 of file FE.cpp.

00007                                           { 
00008   // FIXME: give some valuable tips, can for instance
00009   // say that "standard Lagrange elements are implemented in LagrangeFE 
00010   cout <<"StandardFE compute_basis_functions not implemented"<<endl; 
00011 }

ex StandardFE::dof int  i  )  [virtual]
 

Implements FE.

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 29 of file FE.cpp.

References dofs.

Referenced by VectorLagrangeFE::dof(), and LagrangeFE::dof().

00029                          {
00030   //FIXME could be point or dirac on point 
00031   return dofs[i-1]; 
00032 }

ex StandardFE::N int  i  )  [virtual]
 

Implements FE.

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 35 of file FE.cpp.

References Ns.

Referenced by VectorLagrangeFE::N(), and LagrangeFE::N().

00035                       {  
00036   return Ns[i-1]; 
00037 }

int StandardFE::nbf  )  [virtual]
 

Implements FE.

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 3 of file FE.cpp.

References Ns.

Referenced by VectorLagrangeFE::nbf(), and LagrangeFE::nbf().

00003                      {
00004   return Ns.size();  
00005 }

void StandardFE::set Polygon p  )  [virtual]
 

Implements FE.

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 15 of file FE.cpp.

References dofs, Ns, and p.

00015                                  {
00016   Ns.clear(); 
00017   dofs.clear(); 
00018   p = &p_; 
00019 }

void StandardFE::set int  order  ) 
 

Reimplemented in LagrangeFE, and VectorLagrangeFE.

Definition at line 22 of file FE.cpp.

References dofs, Ns, and order.

Referenced by VectorLagrangeFE::set(), and LagrangeFE::set().

00022                                 { 
00023   Ns.clear(); 
00024   dofs.clear(); 
00025   order = order_; 
00026 }


Member Data Documentation

exvector StandardFE::dofs [protected]
 

Definition at line 31 of file FE.h.

Referenced by VectorLagrangeFE::compute_basis_functions(), LagrangeFE::compute_basis_functions(), dof(), and set().

exvector StandardFE::Ns [protected]
 

Definition at line 30 of file FE.h.

Referenced by VectorLagrangeFE::compute_basis_functions(), LagrangeFE::compute_basis_functions(), N(), nbf(), and set().

int StandardFE::order [protected]
 

Definition at line 33 of file FE.h.

Referenced by VectorLagrangeFE::compute_basis_functions(), LagrangeFE::compute_basis_functions(), and set().

Polygon* StandardFE::p [protected]
 

Definition at line 32 of file FE.h.

Referenced by VectorLagrangeFE::compute_basis_functions(), LagrangeFE::compute_basis_functions(), and set().


The documentation for this class was generated from the following files:
Generated on Tue Nov 22 11:10:23 2005 for SyFi by  doxygen 1.4.4