SyFi
0.3
|
#include <DiscontinuousLagrange.h>
Public Member Functions | |
VectorDiscontinuousLagrange () | |
VectorDiscontinuousLagrange (Polygon &p, unsigned int order=1) | |
virtual | ~VectorDiscontinuousLagrange () |
virtual void | set_element_number (unsigned int element) |
virtual void | set_size (unsigned int size_) |
virtual void | compute_basis_functions () |
Private Attributes | |
GiNaC::ex | element |
Definition at line 39 of file DiscontinuousLagrange.h.
Definition at line 83 of file DiscontinuousLagrange.cpp.
References SyFi::StandardFE::description, and element.
: VectorLagrange() { description = "DiscontinuousLagrange"; element = GiNaC::symbol("e"); }
SyFi::VectorDiscontinuousLagrange::VectorDiscontinuousLagrange | ( | Polygon & | p, |
unsigned int | order = 1 |
||
) |
Definition at line 77 of file DiscontinuousLagrange.cpp.
References compute_basis_functions(), and element.
: VectorLagrange(p,order) { compute_basis_functions(); element = GiNaC::symbol("e"); }
virtual SyFi::VectorDiscontinuousLagrange::~VectorDiscontinuousLagrange | ( | ) | [inline, virtual] |
Definition at line 45 of file DiscontinuousLagrange.h.
{}
void SyFi::VectorDiscontinuousLagrange::compute_basis_functions | ( | ) | [virtual] |
Reimplemented from SyFi::VectorLagrange.
Definition at line 90 of file DiscontinuousLagrange.cpp.
References SyFi::StandardFE::description, SyFi::StandardFE::dofs, element, SyFi::StandardFE::Ns, and SyFi::StandardFE::str().
Referenced by SyFi::ArnoldFalkWintherWeakSymU::compute_basis_functions(), SyFi::ArnoldFalkWintherWeakSymP::compute_basis_functions(), and VectorDiscontinuousLagrange().
{ // remove previously computed basis functions and dofs Ns.clear(); dofs.clear(); VectorLagrange:: compute_basis_functions(); for (unsigned int i=0; i< dofs.size(); i++) { dofs[i] = GiNaC::lst(dofs[i].op(0), dofs[i].op(1), element); } description = "Discontinuous" + VectorLagrange:: str(); }
void SyFi::VectorDiscontinuousLagrange::set_element_number | ( | unsigned int | element | ) | [virtual] |
Definition at line 112 of file DiscontinuousLagrange.cpp.
References element.
{ element = element_; }
void SyFi::VectorDiscontinuousLagrange::set_size | ( | unsigned int | size_ | ) | [virtual] |
Reimplemented from SyFi::VectorLagrange.
Definition at line 107 of file DiscontinuousLagrange.cpp.
Referenced by SyFi::ArnoldFalkWintherWeakSymU::compute_basis_functions(), and SyFi::ArnoldFalkWintherWeakSymP::compute_basis_functions().
{ VectorLagrange::set_size(size_); }
GiNaC::ex SyFi::VectorDiscontinuousLagrange::element [private] |
Definition at line 41 of file DiscontinuousLagrange.h.
Referenced by compute_basis_functions(), set_element_number(), and VectorDiscontinuousLagrange().