#include <MixedFE.h>
Public Member Functions | |
MixedFE () | |
MixedFE (StandardFE *fe1, StandardFE *fe2) | |
virtual | ~MixedFE () |
virtual void | set_polygon (Polygon &p) |
virtual Polygon & | get_polygon () |
virtual void | compute_basis_functions () |
StandardFE * | get (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; |
Proxy of C++ SyFi::MixedFE class
Definition at line 24 of file MixedFE.h.
SyFi::MixedFE::MixedFE | ( | ) |
Definition at line 11 of file MixedFE.cpp.
References description.
00011 : FE() 00012 { 00013 description = "MixedFE"; 00014 }
SyFi::MixedFE::MixedFE | ( | StandardFE * | fe1, | |
StandardFE * | fe2 | |||
) |
Definition at line 16 of file MixedFE.cpp.
References description, mfe, and SyFi::StandardFE::str().
00016 : FE() 00017 { 00018 mfe.push_back(fe1); 00019 mfe.push_back(fe2); 00020 description = "MixedFE_" + fe1->str() + "_" + fe2->str(); 00021 }
SyFi::MixedFE::~MixedFE | ( | ) | [virtual] |
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
def SyFi::MixedFE::append | ( | self, | ||
args | ||||
) |
void SyFi::MixedFE::append | ( | StandardFE * | fe | ) |
Definition at line 37 of file MixedFE.cpp.
References description, mfe, and SyFi::StandardFE::str().
00038 { 00039 mfe.push_back(fe); 00040 description = description + "_" + fe->str(); 00041 }
def SyFi::MixedFE::compute_basis_functions | ( | self | ) |
virtual void SyFi::MixedFE::compute_basis_functions | ( | ) | [inline, virtual] |
def 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().
00073 { 00074 00075 if ( i < 0 || i > nbf()-1) 00076 { 00077 throw(std::out_of_range("The index is out of range!")); 00078 } 00079 00080 bool found = false; 00081 unsigned int e = 0; 00082 unsigned int tmp_nbf = (*mfe[0]).nbf() ; 00083 unsigned int tmp_i = i; 00084 00085 while ( e < mfe.size() && !found) 00086 { 00087 if ( tmp_i < tmp_nbf) 00088 { 00089 found = true; 00090 } 00091 else 00092 { 00093 tmp_i -= (*mfe[e]).nbf(); 00094 e++; 00095 } 00096 } 00097 return (*mfe[e]).dof(tmp_i); 00098 }
def SyFi::MixedFE::get | ( | self, | ||
args | ||||
) |
StandardFE * SyFi::MixedFE::get | ( | unsigned int | i | ) |
Definition at line 28 of file MixedFE.cpp.
References mfe.
00029 { 00030 if ( i < 0 || i > mfe.size()) 00031 { 00032 throw(std::out_of_range("The index is out of range!")); 00033 } 00034 return mfe[i]; 00035 }
def SyFi::MixedFE::get_polygon | ( | self | ) |
get_polygon(self) -> Polygon
Reimplemented from SyFi::FE.
Definition at line 2791 of file SyFi.py.
02791 : 02792 """get_polygon(self) -> Polygon""" 02793 return _SyFi.MixedFE_get_polygon(self) 02794 def compute_basis_functions(self):
virtual Polygon& SyFi::MixedFE::get_polygon | ( | ) | [inline, virtual] |
def 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().
00044 { 00045 00046 if ( i < 0 || i > nbf()-1) 00047 { 00048 throw(std::out_of_range("The index is out of range!")); 00049 } 00050 00051 bool found = false; 00052 unsigned int e = 0; 00053 unsigned int tmp_nbf = (*mfe[0]).nbf() ; 00054 unsigned int tmp_i = i; 00055 00056 while ( e < mfe.size() && !found) 00057 { 00058 tmp_nbf = (*mfe[0]).nbf() ; 00059 if ( tmp_i < tmp_nbf ) 00060 { 00061 found = true; 00062 } 00063 else 00064 { 00065 tmp_i -= (*mfe[e]).nbf(); 00066 e++; 00067 } 00068 } 00069 return (*mfe[e]).N(tmp_i); 00070 }
def SyFi::MixedFE::nbf | ( | self | ) |
unsigned int SyFi::MixedFE::nbf | ( | ) | const [virtual] |
def SyFi::MixedFE::set_polygon | ( | self, | ||
args | ||||
) |
set_polygon(self, Polygon p)
Reimplemented from SyFi::FE.
Definition at line 2787 of file SyFi.py.
02787 : 02788 """set_polygon(self, Polygon p)""" 02789 return _SyFi.MixedFE_set_polygon(self, *args) 02790 def get_polygon(self):
virtual void SyFi::MixedFE::set_polygon | ( | Polygon & | p | ) | [inline, virtual] |
def SyFi::MixedFE::str | ( | self | ) |
std::string SyFi::MixedFE::str | ( | ) | [virtual] |
Implements SyFi::FE.
Definition at line 110 of file MixedFE.cpp.
References description.
00111 { 00112 return description; 00113 }
SyFi::MixedFE::__del__ = lambdaself:None; [static, private] |
tuple SyFi::MixedFE::__getattr__ = lambdaself,name:_swig_getattr(self, MixedFE, name) [static, private] |
SyFi::MixedFE::__repr__ = _swig_repr [static, private] |
tuple SyFi::MixedFE::__setattr__ = lambdaself,name,value:_swig_setattr(self, MixedFE, name, value) [static, private] |
SyFi::MixedFE::__swig_destroy__ = _SyFi.delete_MixedFE [static, private] |
dictionary SyFi::MixedFE::__swig_getmethods__ = {} [static, private] |
dictionary SyFi::MixedFE::__swig_setmethods__ = {} [static, private] |
std::string SyFi::MixedFE::description [private] |
std::vector<StandardFE*> SyFi::MixedFE::mfe |
Definition at line 28 of file MixedFE.h.
Referenced by append(), dof(), get(), get_polygon(), MixedFE(), N(), nbf(), and ~MixedFE().