|
SyFi 0.3
|
#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; | |
| 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().
| SyFi::MixedFE::~MixedFE | ( | ) | [virtual] |
| def SyFi::MixedFE::__init__ | ( | self, | |
| args | |||
| ) |
__init__(self) -> MixedFE __init__(self, StandardFE fe1, StandardFE fe2) -> MixedFE
| 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 | |||
| ) |
| virtual void SyFi::MixedFE::compute_basis_functions | ( | ) | [inline, virtual] |
| def SyFi::MixedFE::compute_basis_functions | ( | self | ) |
| 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().
{
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.
| def SyFi::MixedFE::get | ( | self, | |
| args | |||
| ) |
| def SyFi::MixedFE::get_polygon | ( | 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().
{
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 | ) |
| unsigned int SyFi::MixedFE::nbf | ( | ) | const [virtual] |
| virtual void SyFi::MixedFE::set_polygon | ( | Polygon & | p | ) | [inline, virtual] |
| def SyFi::MixedFE::set_polygon | ( | self, | |
| args | |||
| ) |
| def 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;
}
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().