#include <P0.h>
Public Member Functions | |
VectorP0 () | |
VectorP0 (Polygon &p, unsigned int order=0, unsigned int size=0) | |
~VectorP0 () | |
virtual void | set_size (unsigned int size_) |
virtual void | compute_basis_functions () |
def | __init__ |
def | set_size |
def | compute_basis_functions |
Public Attributes | |
this | |
Protected Attributes | |
unsigned int | size |
Static Private Attributes | |
dictionary | __swig_setmethods__ = {} |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, VectorP0, name, value) |
dictionary | __swig_getmethods__ = {} |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, VectorP0, name) |
__repr__ = _swig_repr | |
__swig_destroy__ = _SyFi.delete_VectorP0 | |
__del__ = lambdaself:None; |
Proxy of C++ SyFi::VectorP0 class
Definition at line 22 of file P0.h.
SyFi::VectorP0::VectorP0 | ( | ) |
Definition at line 78 of file P0.cpp.
References SyFi::StandardFE::description.
00078 : StandardFE() 00079 { 00080 description = "VectorP0"; 00081 }
SyFi::VectorP0::VectorP0 | ( | Polygon & | p, | |
unsigned int | order = 0 , |
|||
unsigned int | size = 0 | |||
) |
Definition at line 83 of file P0.cpp.
References compute_basis_functions(), SyFi::nsd, and size.
00083 : StandardFE(p, order) 00084 { 00085 size = size_ < 0 ? nsd: size_; 00086 compute_basis_functions(); 00087 }
def SyFi::VectorP0::__init__ | ( | self, | ||
args | ||||
) |
__init__(self) -> VectorP0 __init__(self, Polygon p, unsigned int order = 0, unsigned int size = 0) -> VectorP0 __init__(self, Polygon p, unsigned int order = 0) -> VectorP0 __init__(self, Polygon p) -> VectorP0
Reimplemented from SyFi::StandardFE.
Definition at line 2361 of file SyFi.py.
02361 : 02362 """ 02363 __init__(self) -> VectorP0 02364 __init__(self, Polygon p, unsigned int order = 0, unsigned int size = 0) -> VectorP0 02365 __init__(self, Polygon p, unsigned int order = 0) -> VectorP0 02366 __init__(self, Polygon p) -> VectorP0 02367 """ 02368 this = _SyFi.new_VectorP0(*args) 02369 try: self.this.append(this) 02370 except: self.this = this
def SyFi::VectorP0::compute_basis_functions | ( | self | ) |
compute_basis_functions(self)
Reimplemented from SyFi::StandardFE.
Definition at line 2377 of file SyFi.py.
02377 : 02378 """compute_basis_functions(self)""" 02379 return _SyFi.VectorP0_compute_basis_functions(self) 02380 VectorP0_swigregister = _SyFi.VectorP0_swigregister
void SyFi::VectorP0::compute_basis_functions | ( | ) | [virtual] |
Reimplemented from SyFi::StandardFE.
Definition at line 89 of file P0.cpp.
References SyFi::StandardFE::description, SyFi::StandardFE::dof(), SyFi::StandardFE::dofs, demos::crouzeixraviart::fe, SyFi::StandardFE::N(), SyFi::StandardFE::nbf(), SyFi::StandardFE::Ns, SyFi::StandardFE::p, run::s, size, and SyFi::StandardFE::str().
Referenced by SyFi::ArnoldFalkWintherWeakSymP::compute_basis_functions(), SyFi::ArnoldFalkWintherWeakSymU::compute_basis_functions(), and VectorP0().
00090 { 00091 00092 // remove previously computed basis functions and dofs 00093 Ns.clear(); 00094 dofs.clear(); 00095 00096 if ( p == NULL ) 00097 { 00098 throw(std::logic_error("You need to set a polygon before the basisfunctions can be computed")); 00099 } 00100 00101 if ( size == 0) 00102 { 00103 throw(std::logic_error("You need to set the size of the vector before the basisfunctions can be computed")); 00104 } 00105 00106 P0 fe(*p); 00107 GiNaC::lst zero_list; 00108 for (unsigned int s=1; s<= size ; s++) 00109 { 00110 zero_list.append(0); 00111 } 00112 00113 for (unsigned int i=0; i< fe.nbf() ; i++) 00114 { 00115 for (unsigned int s=0; s< size ; s++) 00116 { 00117 GiNaC::lst Nis = zero_list; 00118 Nis.let_op(s) = fe.N(i); 00119 GiNaC::ex Nmat = GiNaC::matrix(size,1,Nis); 00120 Ns.insert(Ns.end(), Nmat); 00121 00122 GiNaC::lst dof = GiNaC::lst(fe.dof(i), s) ; 00123 dofs.insert(dofs.end(), dof); 00124 } 00125 } 00126 description = "Vector" + fe.str(); 00127 }
def SyFi::VectorP0::set_size | ( | self, | ||
args | ||||
) |
set_size(self, unsigned int size_)
Definition at line 2373 of file SyFi.py.
02373 : 02374 """set_size(self, unsigned int size_)""" 02375 return _SyFi.VectorP0_set_size(self, *args) 02376 def compute_basis_functions(self):
void SyFi::VectorP0::set_size | ( | unsigned int | size_ | ) | [virtual] |
Definition at line 129 of file P0.cpp.
References size.
Referenced by SyFi::ArnoldFalkWintherWeakSymP::compute_basis_functions(), and SyFi::ArnoldFalkWintherWeakSymU::compute_basis_functions().
00130 { 00131 size = size_; 00132 }
SyFi::VectorP0::__del__ = lambdaself:None; [static, private] |
tuple SyFi::VectorP0::__getattr__ = lambdaself,name:_swig_getattr(self, VectorP0, name) [static, private] |
SyFi::VectorP0::__repr__ = _swig_repr [static, private] |
tuple SyFi::VectorP0::__setattr__ = lambdaself,name,value:_swig_setattr(self, VectorP0, name, value) [static, private] |
SyFi::VectorP0::__swig_destroy__ = _SyFi.delete_VectorP0 [static, private] |
dictionary SyFi::VectorP0::__swig_getmethods__ = {} [static, private] |
dictionary SyFi::VectorP0::__swig_setmethods__ = {} [static, private] |
unsigned int SyFi::VectorP0::size [protected] |
Definition at line 25 of file P0.h.
Referenced by compute_basis_functions(), set_size(), and VectorP0().