SyFi 0.3
SyFi::MixedFE Class Reference

#include <MixedFE.h>

Inheritance diagram for SyFi::MixedFE:
SyFi::FE SyFi::FE SyFi::_object SyFi::_object

List of all members.

Public Member Functions

 MixedFE ()
 MixedFE (StandardFE *fe1, StandardFE *fe2)
virtual ~MixedFE ()
virtual void set_polygon (Polygon &p)
virtual Polygonget_polygon ()
virtual void compute_basis_functions ()
StandardFEget (unsigned int i)
void append (StandardFE *fe)
virtual GiNaC::ex N (unsigned int i)
virtual GiNaC::ex dof (unsigned int i)
virtual unsigned int nbf () const
virtual std::string str ()
def __init__
def set_polygon
def get_polygon
def compute_basis_functions
def get
def append
def N
def dof
def nbf
def str

Public Attributes

std::vector< StandardFE * > mfe
 this

Private Attributes

std::string description

Static Private Attributes

dictionary __swig_setmethods__ = {}
tuple __setattr__ = lambdaself,name,value:_swig_setattr(self, MixedFE, name, value)
dictionary __swig_getmethods__ = {}
tuple __getattr__ = lambdaself,name:_swig_getattr(self, MixedFE, name)
 __repr__ = _swig_repr
 __swig_destroy__ = _SyFi.delete_MixedFE
 __del__ = lambdaself:None;

Detailed Description

Proxy of C++ SyFi::MixedFE class

Definition at line 24 of file MixedFE.h.


Constructor & Destructor Documentation

SyFi::MixedFE::MixedFE ( )

Definition at line 11 of file MixedFE.cpp.

References description.

                         : FE()
        {
                description = "MixedFE";
        }
SyFi::MixedFE::MixedFE ( StandardFE fe1,
StandardFE fe2 
)

Definition at line 16 of file MixedFE.cpp.

References description, mfe, and SyFi::StandardFE::str().

                                                         : FE()
        {
                mfe.push_back(fe1);
                mfe.push_back(fe2);
                description = "MixedFE_" + fe1->str() + "_" +  fe2->str();
        }
SyFi::MixedFE::~MixedFE ( ) [virtual]

Definition at line 23 of file MixedFE.cpp.

References mfe.

        {
                mfe.clear();
        }
def SyFi::MixedFE::__init__ (   self,
  args 
)
__init__(self) -> MixedFE
__init__(self, StandardFE fe1, StandardFE fe2) -> MixedFE

Definition at line 2777 of file SyFi.py.

02777                              : 
02778         """
02779         __init__(self) -> MixedFE
02780         __init__(self, StandardFE fe1, StandardFE fe2) -> MixedFE
02781         """
02782         this = _SyFi.new_MixedFE(*args)
02783         try: self.this.append(this)
02784         except: self.this = this

Member Function Documentation

void SyFi::MixedFE::append ( StandardFE fe)

Definition at line 37 of file MixedFE.cpp.

References description, mfe, and SyFi::StandardFE::str().

        {
                mfe.push_back(fe);
                description = description + "_" + fe->str();
        }
def SyFi::MixedFE::append (   self,
  args 
)
append(self, StandardFE fe)

Definition at line 2803 of file SyFi.py.

02804                            :
02805         """append(self, StandardFE fe)"""
02806         return _SyFi.MixedFE_append(self, *args)

virtual void SyFi::MixedFE::compute_basis_functions ( ) [inline, virtual]

Implements SyFi::FE.

Definition at line 44 of file MixedFE.h.

{ }
def SyFi::MixedFE::compute_basis_functions (   self)
compute_basis_functions(self)

Reimplemented from SyFi::FE.

Definition at line 2795 of file SyFi.py.

02796                                      :
02797         """compute_basis_functions(self)"""
02798         return _SyFi.MixedFE_compute_basis_functions(self)

def SyFi::MixedFE::dof (   self,
  args 
)
dof(self, unsigned int i) -> GiNaC::ex

Reimplemented from SyFi::FE.

Definition at line 2811 of file SyFi.py.

02812                         :
02813         """dof(self, unsigned int i) -> GiNaC::ex"""
02814         return _SyFi.MixedFE_dof(self, *args)

GiNaC::ex SyFi::MixedFE::dof ( unsigned int  i) [virtual]

Implements SyFi::FE.

Definition at line 72 of file MixedFE.cpp.

References test::e, mfe, and nbf().

        {

                if ( i < 0 || i > nbf()-1)
                {
                        throw(std::out_of_range("The index is out of range!"));
                }

                bool found = false;
                unsigned int e = 0;
                unsigned int tmp_nbf = (*mfe[0]).nbf() ;
                unsigned int tmp_i = i;

                while ( e < mfe.size() && !found)
                {
                        if ( tmp_i < tmp_nbf)
                        {
                                found = true;
                        }
                        else
                        {
                                tmp_i -= (*mfe[e]).nbf();
                                e++;
                        }
                }
                return (*mfe[e]).dof(tmp_i);
        }
StandardFE * SyFi::MixedFE::get ( unsigned int  i)

Definition at line 28 of file MixedFE.cpp.

References mfe.

        {
                if ( i < 0 || i > mfe.size())
                {
                        throw(std::out_of_range("The index is out of range!"));
                }
                return mfe[i];
        }
def SyFi::MixedFE::get (   self,
  args 
)
get(self, unsigned int i) -> StandardFE

Definition at line 2799 of file SyFi.py.

02800                         :
02801         """get(self, unsigned int i) -> StandardFE"""
02802         return _SyFi.MixedFE_get(self, *args)

def SyFi::MixedFE::get_polygon (   self)
get_polygon(self) -> Polygon

Reimplemented from SyFi::FE.

Definition at line 2791 of file SyFi.py.

02792                          :
02793         """get_polygon(self) -> Polygon"""
02794         return _SyFi.MixedFE_get_polygon(self)

virtual Polygon& SyFi::MixedFE::get_polygon ( ) [inline, virtual]

Implements SyFi::FE.

Definition at line 40 of file MixedFE.h.

References mfe.

                        {
                                return (*(mfe[0])).get_polygon();
                        }
def SyFi::MixedFE::N (   self,
  args 
)
N(self, unsigned int i) -> GiNaC::ex

Reimplemented from SyFi::FE.

Definition at line 2807 of file SyFi.py.

02808                       :
02809         """N(self, unsigned int i) -> GiNaC::ex"""
02810         return _SyFi.MixedFE_N(self, *args)

GiNaC::ex SyFi::MixedFE::N ( unsigned int  i) [virtual]

Implements SyFi::FE.

Definition at line 43 of file MixedFE.cpp.

References test::e, mfe, and nbf().

        {

                if ( i < 0 || i > nbf()-1)
                {
                        throw(std::out_of_range("The index is out of range!"));
                }

                bool found = false;
                unsigned int e = 0;
                unsigned int tmp_nbf = (*mfe[0]).nbf() ;
                unsigned int tmp_i = i;

                while ( e < mfe.size() && !found)
                {
                        tmp_nbf = (*mfe[0]).nbf() ;
                        if ( tmp_i < tmp_nbf )
                        {
                                found = true;
                        }
                        else
                        {
                                tmp_i -= (*mfe[e]).nbf();
                                e++;
                        }
                }
                return (*mfe[e]).N(tmp_i);
        }
def SyFi::MixedFE::nbf (   self)
nbf(self) -> unsigned int

Reimplemented from SyFi::FE.

Definition at line 2815 of file SyFi.py.

02816                  :
02817         """nbf(self) -> unsigned int"""
02818         return _SyFi.MixedFE_nbf(self)

unsigned int SyFi::MixedFE::nbf ( ) const [virtual]

Implements SyFi::FE.

Definition at line 100 of file MixedFE.cpp.

References mfe.

Referenced by dof(), and N().

        {
                int sum = 0;
                for (unsigned int i=0; i< mfe.size(); i++)
                {
                        sum += (*mfe[i]).nbf();
                }
                return sum;
        }
virtual void SyFi::MixedFE::set_polygon ( Polygon p) [inline, virtual]

Implements SyFi::FE.

Definition at line 36 of file MixedFE.h.

                        {
                        }
def SyFi::MixedFE::set_polygon (   self,
  args 
)
set_polygon(self, Polygon p)

Reimplemented from SyFi::FE.

Definition at line 2787 of file SyFi.py.

02788                                 :
02789         """set_polygon(self, Polygon p)"""
02790         return _SyFi.MixedFE_set_polygon(self, *args)

def SyFi::MixedFE::str (   self)
str(self) -> string

Reimplemented from SyFi::FE.

Definition at line 2819 of file SyFi.py.

02820                  :
02821         """str(self) -> string"""
02822         return _SyFi.MixedFE_str(self)

std::string SyFi::MixedFE::str ( ) [virtual]

Implements SyFi::FE.

Definition at line 110 of file MixedFE.cpp.

References description.

        {
                return description;
        }

Member Data Documentation

SyFi::MixedFE::__del__ = lambdaself:None; [static, private]

Reimplemented from SyFi::FE.

Definition at line 2786 of file SyFi.py.

tuple SyFi::MixedFE::__getattr__ = lambdaself,name:_swig_getattr(self, MixedFE, name) [static, private]

Reimplemented from SyFi::FE.

Definition at line 2772 of file SyFi.py.

SyFi::MixedFE::__repr__ = _swig_repr [static, private]

Reimplemented from SyFi::FE.

Definition at line 2773 of file SyFi.py.

tuple SyFi::MixedFE::__setattr__ = lambdaself,name,value:_swig_setattr(self, MixedFE, name, value) [static, private]

Reimplemented from SyFi::FE.

Definition at line 2769 of file SyFi.py.

SyFi::MixedFE::__swig_destroy__ = _SyFi.delete_MixedFE [static, private]

Reimplemented from SyFi::FE.

Definition at line 2785 of file SyFi.py.

dictionary SyFi::MixedFE::__swig_getmethods__ = {} [static, private]

Reimplemented from SyFi::FE.

Definition at line 2770 of file SyFi.py.

dictionary SyFi::MixedFE::__swig_setmethods__ = {} [static, private]

Reimplemented from SyFi::FE.

Definition at line 2767 of file SyFi.py.

std::string SyFi::MixedFE::description [private]

Definition at line 26 of file MixedFE.h.

Referenced by append(), MixedFE(), and str().

Definition at line 28 of file MixedFE.h.

Referenced by append(), dof(), get(), get_polygon(), MixedFE(), N(), nbf(), and ~MixedFE().

Definition at line 2780 of file SyFi.py.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines