SyFi  0.3
SyFi::ArnoldFalkWintherWeakSymU Class Reference

#include <ArnoldFalkWintherWeakSym.h>

Inheritance diagram for SyFi::ArnoldFalkWintherWeakSymU:
SyFi::StandardFE SyFi::StandardFE SyFi::FE SyFi::FE SyFi::FE SyFi::FE

List of all members.

Public Member Functions

 ArnoldFalkWintherWeakSymU ()
 ArnoldFalkWintherWeakSymU (Polygon &p, int order=1)
virtual ~ArnoldFalkWintherWeakSymU ()
virtual void compute_basis_functions ()
def __init__

Static Public Attributes

tuple thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

Static Private Attributes

 __repr__ = _swig_repr

Detailed Description

Proxy of C++ SyFi::ArnoldFalkWintherWeakSymU class

Definition at line 36 of file ArnoldFalkWintherWeakSym.h.


Constructor & Destructor Documentation

Definition at line 41 of file ArnoldFalkWintherWeakSym.h.

{}
def SyFi::ArnoldFalkWintherWeakSymU::__init__ (   self,
  args 
)
__init__(SyFi::ArnoldFalkWintherWeakSymU self) -> ArnoldFalkWintherWeakSymU
__init__(SyFi::ArnoldFalkWintherWeakSymU self, Polygon p, int order=1) -> ArnoldFalkWintherWeakSymU
__init__(SyFi::ArnoldFalkWintherWeakSymU self, Polygon p) -> ArnoldFalkWintherWeakSymU

Reimplemented from SyFi::StandardFE.

Definition at line 2805 of file SyFi.py.

02805 
02806     def __init__(self, *args):
02807         """
02808         __init__(SyFi::ArnoldFalkWintherWeakSymU self) -> ArnoldFalkWintherWeakSymU
02809         __init__(SyFi::ArnoldFalkWintherWeakSymU self, Polygon p, int order=1) -> ArnoldFalkWintherWeakSymU
02810         __init__(SyFi::ArnoldFalkWintherWeakSymU self, Polygon p) -> ArnoldFalkWintherWeakSymU
02811         """
        _SyFi.ArnoldFalkWintherWeakSymU_swiginit(self,_SyFi.new_ArnoldFalkWintherWeakSymU(*args))

Member Function Documentation

Reimplemented from SyFi::StandardFE.

Definition at line 92 of file ArnoldFalkWintherWeakSym.cpp.

References SyFi::VectorP0::compute_basis_functions(), SyFi::VectorDiscontinuousLagrange::compute_basis_functions(), SyFi::StandardFE::description, SyFi::StandardFE::dof(), SyFi::StandardFE::dofs, SyFi::istr(), SyFi::StandardFE::N(), SyFi::StandardFE::nbf(), SyFi::StandardFE::Ns, SyFi::StandardFE::order, SyFi::StandardFE::p, SyFi::StandardFE::set_order(), SyFi::StandardFE::set_polygon(), SyFi::VectorP0::set_size(), and SyFi::VectorDiscontinuousLagrange::set_size().

Referenced by ArnoldFalkWintherWeakSymU(), 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("ArnoldFalkWintherWeakSymU_", order) + "_3D";

                if ( order  > 1 )
                {
                        VectorDiscontinuousLagrange fe;
                        fe.set_order(order-1);
                        fe.set_size(3);
                        fe.set_polygon(*p);
                        fe.compute_basis_functions();

                        for (unsigned int i=0; i<fe.nbf(); i++)
                        {
                                GiNaC::lst Ni = GiNaC::lst(fe.N(i).op(0), fe.N(i).op(1), fe.N(i).op(2));
                                GiNaC::ex Nmat = GiNaC::matrix(3,1,Ni);
                                Ns.insert(Ns.end(), Nmat);
                                dofs.insert(dofs.end(),GiNaC::lst(fe.dof(i)));
                        }
                }
                else if ( order == 1 )
                {
                        VectorP0 fe;
                        fe.set_order(order-1);
                        fe.set_size(3);
                        fe.set_polygon(*p);
                        fe.compute_basis_functions();

                        for (unsigned int i=0; i<fe.nbf(); i++)
                        {
                                GiNaC::lst Ni = GiNaC::lst(fe.N(i).op(0), fe.N(i).op(1), fe.N(i).op(2));
                                GiNaC::ex Nmat = GiNaC::matrix(3,1,Ni);
                                Ns.insert(Ns.end(), Nmat);
                                GiNaC::ex d = GiNaC::lst(fe.dof(i), 0);
                                dofs.insert(dofs.end(),GiNaC::lst(d));
                        }
                }

        }

Member Data Documentation

Reimplemented from SyFi::StandardFE.

Definition at line 2803 of file SyFi.py.

tuple SyFi::ArnoldFalkWintherWeakSymU::thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') [static]

Reimplemented from SyFi::StandardFE.

Definition at line 2802 of file SyFi.py.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines