VectorLagrangeFE Class Reference

#include <LagrangeFE.h>

Inheritance diagram for VectorLagrangeFE:

StandardFE FE List of all members.

Public Member Functions

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

Protected Attributes

int size

Detailed Description

Definition at line 25 of file LagrangeFE.h.


Constructor & Destructor Documentation

VectorLagrangeFE::VectorLagrangeFE  )  [inline]
 

Definition at line 29 of file LagrangeFE.h.

00029 {}

VectorLagrangeFE::~VectorLagrangeFE  )  [inline]
 

Definition at line 30 of file LagrangeFE.h.

00030 {}


Member Function Documentation

void VectorLagrangeFE::compute_basis_functions  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 209 of file LagrangeFE.cpp.

References LagrangeFE::compute_basis_functions(), LagrangeFE::dof(), dof(), StandardFE::dofs, LagrangeFE::N(), LagrangeFE::nbf(), StandardFE::Ns, StandardFE::order, StandardFE::p, LagrangeFE::set(), and size.

00209                                                 {
00210   LagrangeFE fe; 
00211   fe.set(order); 
00212   fe.set(*p); 
00213   fe.compute_basis_functions(); 
00214   lst zero_list; 
00215   for (int s=1; s<= size ; s++) {
00216     zero_list.append(0);  
00217   }
00218 
00219   for (int i=1; i<= fe.nbf() ; i++) {
00220     for (int s=1; s<= size ; s++) {
00221       lst Nis = zero_list;    
00222       Nis.let_op(s-1) = fe.N(i); 
00223       Ns.insert(Ns.end(), Nis);  
00224 
00225       lst dof = lst(fe.dof(i), s) ; 
00226       dofs.insert(dofs.end(), dof);  
00227     }
00228   }
00229 }

ex VectorLagrangeFE::dof int  i  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 247 of file LagrangeFE.cpp.

References StandardFE::dof().

Referenced by compute_basis_functions().

00247                                {
00248   return StandardFE::dof(i);  
00249 }

ex VectorLagrangeFE::N int  i  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 252 of file LagrangeFE.cpp.

References StandardFE::N().

00252                             {  
00253   return StandardFE::N(i); 
00254 }

int VectorLagrangeFE::nbf  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 205 of file LagrangeFE.cpp.

References StandardFE::nbf().

00205                            {
00206   return StandardFE::nbf();       
00207 }

void VectorLagrangeFE::set Polygon p  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 237 of file LagrangeFE.cpp.

References StandardFE::set().

00237                                        {
00238   StandardFE::set(p_); 
00239 }

void VectorLagrangeFE::set int  order  )  [virtual]
 

Reimplemented from StandardFE.

Definition at line 242 of file LagrangeFE.cpp.

References StandardFE::set().

00242                                       { 
00243   StandardFE::set(order_); 
00244 }

void VectorLagrangeFE::set_size int  size_  )  [virtual]
 

Definition at line 232 of file LagrangeFE.cpp.

References size.

00232                                           {
00233   size = size_; 
00234 }


Member Data Documentation

int VectorLagrangeFE::size [protected]
 

Definition at line 27 of file LagrangeFE.h.

Referenced by compute_basis_functions(), and set_size().


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