|
SyFi 0.3
|
#include <ArnoldFalkWintherWeakSym.h>
Public Member Functions | |
| ArnoldFalkWintherWeakSymSigma () | |
| ArnoldFalkWintherWeakSymSigma (Polygon &p, int order=1) | |
| virtual | ~ArnoldFalkWintherWeakSymSigma () |
| virtual void | compute_basis_functions () |
| def | __init__ |
| def | compute_basis_functions |
Public Attributes | |
| this | |
Static Private Attributes | |
| dictionary | __swig_setmethods__ = {} |
| tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, ArnoldFalkWintherWeakSymSigma, name, value) |
| dictionary | __swig_getmethods__ = {} |
| tuple | __getattr__ = lambdaself,name:_swig_getattr(self, ArnoldFalkWintherWeakSymSigma, name) |
| __repr__ = _swig_repr | |
| __swig_destroy__ = _SyFi.delete_ArnoldFalkWintherWeakSymSigma | |
| __del__ = lambdaself:None; | |
Proxy of C++ SyFi::ArnoldFalkWintherWeakSymSigma class
Definition at line 12 of file ArnoldFalkWintherWeakSym.h.
| SyFi::ArnoldFalkWintherWeakSymSigma::ArnoldFalkWintherWeakSymSigma | ( | ) |
Definition at line 18 of file ArnoldFalkWintherWeakSym.cpp.
References SyFi::StandardFE::description.
: StandardFE() { description = "ArnoldFalkWintherWeakSymSigma"; }
| SyFi::ArnoldFalkWintherWeakSymSigma::ArnoldFalkWintherWeakSymSigma | ( | Polygon & | p, |
| int | order = 1 |
||
| ) |
Definition at line 23 of file ArnoldFalkWintherWeakSym.cpp.
References compute_basis_functions().
: StandardFE(p, order) { compute_basis_functions(); }
| virtual SyFi::ArnoldFalkWintherWeakSymSigma::~ArnoldFalkWintherWeakSymSigma | ( | ) | [inline, virtual] |
Definition at line 17 of file ArnoldFalkWintherWeakSym.h.
{}
| def SyFi::ArnoldFalkWintherWeakSymSigma::__init__ | ( | self, | |
| args | |||
| ) |
__init__(self) -> ArnoldFalkWintherWeakSymSigma __init__(self, Polygon p, int order = 1) -> ArnoldFalkWintherWeakSymSigma __init__(self, Polygon p) -> ArnoldFalkWintherWeakSymSigma
Reimplemented from SyFi::StandardFE.
Definition at line 2648 of file SyFi.py.
02648 : 02649 """ 02650 __init__(self) -> ArnoldFalkWintherWeakSymSigma 02651 __init__(self, Polygon p, int order = 1) -> ArnoldFalkWintherWeakSymSigma 02652 __init__(self, Polygon p) -> ArnoldFalkWintherWeakSymSigma 02653 """ 02654 this = _SyFi.new_ArnoldFalkWintherWeakSymSigma(*args) 02655 try: self.this.append(this) 02656 except: self.this = this
| void SyFi::ArnoldFalkWintherWeakSymSigma::compute_basis_functions | ( | ) | [virtual] |
Reimplemented from SyFi::StandardFE.
Definition at line 28 of file ArnoldFalkWintherWeakSym.cpp.
References SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::StandardFE::description, SyFi::StandardFE::dof(), SyFi::StandardFE::dofs, demos::crouzeixraviart::fe, SyFi::istr(), SyFi::StandardFE::N(), SyFi::StandardFE::nbf(), SyFi::StandardFE::Ns, SyFi::StandardFE::order, SyFi::StandardFE::p, SyFi::StandardFE::set_order(), and SyFi::StandardFE::set_polygon().
Referenced by ArnoldFalkWintherWeakSymSigma(), and main().
{
// remove previously computed basis functions and dofs
Ns.clear();
dofs.clear();
if ( order < 1 )
{
throw(std::logic_error("Arnold-Falk-Winther elements must be of order 1 or higher."));
}
if ( p == NULL )
{
throw(std::logic_error("You need to set a polygon before the basisfunctions can be computed"));
}
description = istr("ArnoldFalkWintherWeakSymSigma_", order) + "_3D";
Nedelec2Hdiv fe;
fe.set_order(order);
fe.set_polygon(*p);
fe.compute_basis_functions();
for (int d=0; d<3; d++)
{
for (unsigned int i=0; i<fe.nbf(); i++)
{
GiNaC::matrix Nmat = GiNaC::matrix(3,3);
Nmat(d,0) = fe.N(i).op(0);
Nmat(d,1) = fe.N(i).op(1);
Nmat(d,2) = fe.N(i).op(2);
Ns.insert(Ns.end(), Nmat);
dofs.insert(dofs.end(),GiNaC::lst(fe.dof(i).op(0), fe.dof(i).op(1), d));
}
}
}
| def SyFi::ArnoldFalkWintherWeakSymSigma::compute_basis_functions | ( | self | ) |
compute_basis_functions(self)
Reimplemented from SyFi::StandardFE.
SyFi::ArnoldFalkWintherWeakSymSigma::__del__ = lambdaself:None; [static, private] |
Reimplemented from SyFi::StandardFE.
tuple SyFi::ArnoldFalkWintherWeakSymSigma::__getattr__ = lambdaself,name:_swig_getattr(self, ArnoldFalkWintherWeakSymSigma, name) [static, private] |
Reimplemented from SyFi::StandardFE.
SyFi::ArnoldFalkWintherWeakSymSigma::__repr__ = _swig_repr [static, private] |
Reimplemented from SyFi::StandardFE.
tuple SyFi::ArnoldFalkWintherWeakSymSigma::__setattr__ = lambdaself,name,value:_swig_setattr(self, ArnoldFalkWintherWeakSymSigma, name, value) [static, private] |
Reimplemented from SyFi::StandardFE.
SyFi::ArnoldFalkWintherWeakSymSigma::__swig_destroy__ = _SyFi.delete_ArnoldFalkWintherWeakSymSigma [static, private] |
Reimplemented from SyFi::StandardFE.
dictionary SyFi::ArnoldFalkWintherWeakSymSigma::__swig_getmethods__ = {} [static, private] |
Reimplemented from SyFi::StandardFE.
dictionary SyFi::ArnoldFalkWintherWeakSymSigma::__swig_setmethods__ = {} [static, private] |
Reimplemented from SyFi::StandardFE.
Reimplemented from SyFi::StandardFE.