|
SyFi
0.3
|
#include <Polygon.h>
Public Member Functions | |
| Tetrahedron (GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3, const std::string &subscript="") | |
| Tetrahedron (const Tetrahedron &tetrahedron) | |
| virtual | ~Tetrahedron () |
| virtual unsigned int | no_space_dim () const |
| virtual Line | line (unsigned int i) const |
| virtual Triangle | triangle (unsigned int i) const |
| virtual GiNaC::ex | repr (Repr_format format=SUBS_PERFORMED) const |
| virtual const std::string | str () const |
| virtual GiNaC::ex | integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED) |
| virtual Tetrahedron * | copy () const |
| def | __init__ |
| def | repr |
| def | integrate |
| def | copy |
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 | |
| __swig_destroy__ = _SyFi.delete_Tetrahedron | |
| SyFi::Tetrahedron::Tetrahedron | ( | GiNaC::ex | x0, |
| GiNaC::ex | x1, | ||
| GiNaC::ex | x2, | ||
| GiNaC::ex | x3, | ||
| const std::string & | subscript = "" |
||
| ) |
Referenced by copy().
| SyFi::Tetrahedron::Tetrahedron | ( | const Tetrahedron & | tetrahedron | ) |
Definition at line 892 of file Polygon.cpp.
: Polygon(tetrahedron) { }
| virtual SyFi::Tetrahedron::~Tetrahedron | ( | ) | [inline, virtual] |
| def SyFi::Tetrahedron::__init__ | ( | self, | |
| args | |||
| ) |
__init__(SyFi::Tetrahedron self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3, std::string const & subscript="") -> Tetrahedron __init__(SyFi::Tetrahedron self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3) -> Tetrahedron __init__(SyFi::Tetrahedron self, Tetrahedron tetrahedron) -> Tetrahedron
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1813 of file SyFi.py.
01813 01814 def __init__(self, *args): 01815 """ 01816 __init__(SyFi::Tetrahedron self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3, std::string const & subscript="") -> Tetrahedron 01817 __init__(SyFi::Tetrahedron self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3) -> Tetrahedron 01818 __init__(SyFi::Tetrahedron self, Tetrahedron tetrahedron) -> Tetrahedron 01819 """ _SyFi.Tetrahedron_swiginit(self,_SyFi.new_Tetrahedron(*args))
| Tetrahedron * SyFi::Tetrahedron::copy | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1051 of file Polygon.cpp.
References Tetrahedron().
Referenced by copy().
{
return new Tetrahedron(*this);
}
| def SyFi::Tetrahedron::copy | ( | self | ) |
copy(Tetrahedron self) -> Tetrahedron
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1835 of file SyFi.py.
References copy(), and SyFi.new_instancemethod.
01835 01836 def copy(self): 01837 """copy(Tetrahedron self) -> Tetrahedron""" 01838 return _SyFi.Tetrahedron_copy(self) 01839 01840 Tetrahedron.repr = new_instancemethod(_SyFi.Tetrahedron_repr,None,Tetrahedron) 01841 Tetrahedron.integrate = new_instancemethod(_SyFi.Tetrahedron_integrate,None,Tetrahedron) Tetrahedron.copy = new_instancemethod(_SyFi.Tetrahedron_copy,None,Tetrahedron)
| virtual GiNaC::ex SyFi::Tetrahedron::integrate | ( | GiNaC::ex | f, |
| Repr_format | format = SUBS_PERFORMED |
||
| ) | [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Referenced by SyFi::Nedelec::compute_basis_functions(), SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::RaviartThomas::compute_basis_functions(), integrate(), and main().
| def SyFi::Tetrahedron::integrate | ( | self, | |
| args | |||
| ) |
integrate(Tetrahedron self, GiNaC::ex f, SyFi::Repr_format format=SUBS_PERFORMED) -> GiNaC::ex integrate(Tetrahedron self, GiNaC::ex f) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1828 of file SyFi.py.
References integrate().
| Line SyFi::Tetrahedron::line | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 899 of file Polygon.cpp.
References SyFi::istr(), SyFi::Polygon::p, and SyFi::Polygon::subscript.
Referenced by SyFi::Nedelec::compute_basis_functions().
{
int i0, i1;
switch(i)
{
case 0: i0 = 0; i1 = 1; break;
case 1: i0 = 0; i1 = 2; break;
case 2: i0 = 0; i1 = 3; break;
case 3: i0 = 1; i1 = 2; break;
case 4: i0 = 1; i1 = 3; break;
case 5: i0 = 2; i1 = 3; break;
default:
throw std::out_of_range("Line index is out of range!");
}
return Line(p[i0], p[i1], istr(subscript,i));
}
| unsigned int SyFi::Tetrahedron::no_space_dim | ( | ) | const [virtual] |
| ex SyFi::Tetrahedron::repr | ( | Repr_format | format = SUBS_PERFORMED | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 940 of file Polygon.cpp.
References SyFi::Line::repr(), SyFi::t, SyFi::Polygon::vertex(), and SyFi::x.
Referenced by _wrap_Tetrahedron_repr__SWIG_1(), main(), and repr().
{
GiNaC::symbol r("r"), s("s"), t("t");
ex l1_repr = Line(vertex(0), vertex(1)).repr(r);
ex l2_repr = Line(vertex(0), vertex(2)).repr(s);
ex l3_repr = Line(vertex(0), vertex(3)).repr(t);
lst ret;
ret = lst(
x == l1_repr.op(0).rhs().coeff(r,0) + l1_repr.op(0).rhs().coeff(r,1)*r
+ l2_repr.op(0).rhs().coeff(s,1)*s + l3_repr.op(0).rhs().coeff(t,1)*t,
y == l1_repr.op(1).rhs().coeff(r,0) + l1_repr.op(1).rhs().coeff(r,1)*r
+ l2_repr.op(1).rhs().coeff(s,1)*s + l3_repr.op(1).rhs().coeff(t,1)*t,
z == l1_repr.op(2).rhs().coeff(r,0) + l1_repr.op(2).rhs().coeff(r,1)*r
+ l2_repr.op(2).rhs().coeff(s,1)*s + l3_repr.op(2).rhs().coeff(t,1)*t);
ret.append(lst(r, 0, 1));
ret.append(lst(s, 0, 1 - r));
ret.append(lst(t, 0, 1 - r - s));
return ret;
}
| def SyFi::Tetrahedron::repr | ( | self, | |
| args | |||
| ) |
repr(Tetrahedron self, SyFi::Repr_format format=SUBS_PERFORMED) -> GiNaC::ex repr(Tetrahedron self) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 1821 of file SyFi.py.
References repr().
| const string SyFi::Tetrahedron::str | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 963 of file Polygon.cpp.
Referenced by main().
{
std::ostringstream s;
// s <<"Tetrahedron("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")";
s <<"Tetrahedron";
return s.str();
}
| Triangle SyFi::Tetrahedron::triangle | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 916 of file Polygon.cpp.
References SyFi::istr(), SyFi::Polygon::p, and SyFi::Polygon::subscript.
Referenced by SyFi::CrouzeixRaviart::compute_basis_functions(), SyFi::Nedelec::compute_basis_functions(), SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::RaviartThomas::compute_basis_functions(), and SyFi::normal().
{
if ( i == 0 )
{
return Triangle(p[1], p[2], p[3], istr(subscript,i));
}
else if ( i == 1)
{
return Triangle(p[0], p[2], p[3], istr(subscript,i));
}
else if ( i == 2)
{
return Triangle(p[0], p[1], p[3], istr(subscript,i));
}
else if ( i == 3)
{
return Triangle(p[0], p[1], p[2], istr(subscript,i));
}
throw std::out_of_range("Face index is out of range!");
}
SyFi::Tetrahedron::__repr__ = _swig_repr [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
SyFi::Tetrahedron::__swig_destroy__ = _SyFi.delete_Tetrahedron [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
tuple SyFi::Tetrahedron::thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') [static] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.