|
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 | no_space_dim |
| def | line |
| def | triangle |
| def | repr |
| def | str |
| def | integrate |
| def | copy |
Public Attributes | |
| this | |
Static Private Attributes | |
| dictionary | __swig_setmethods__ = {} |
| tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, Tetrahedron, name, value) |
| dictionary | __swig_getmethods__ = {} |
| tuple | __getattr__ = lambdaself,name:_swig_getattr(self, Tetrahedron, name) |
| __repr__ = _swig_repr | |
| __swig_destroy__ = _SyFi.delete_Tetrahedron | |
| __del__ = lambdaself:None; | |
| 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 858 of file Polygon.cpp.
: Polygon(tetrahedron) { }
| virtual SyFi::Tetrahedron::~Tetrahedron | ( | ) | [inline, virtual] |
| def SyFi::Tetrahedron::__init__ | ( | self, | |
| args | |||
| ) |
__init__(self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3,
string subscript = "") -> Tetrahedron
__init__(self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3) -> Tetrahedron
__init__(self, Tetrahedron tetrahedron) -> Tetrahedron
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1723 of file SyFi.py.
01723 : 01724 """ 01725 __init__(self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3, 01726 string subscript = "") -> Tetrahedron 01727 __init__(self, GiNaC::ex x0, GiNaC::ex x1, GiNaC::ex x2, GiNaC::ex x3) -> Tetrahedron 01728 __init__(self, Tetrahedron tetrahedron) -> Tetrahedron 01729 """ 01730 this = _SyFi.new_Tetrahedron(*args) 01731 try: self.this.append(this) 01732 except: self.this = this
| Tetrahedron * SyFi::Tetrahedron::copy | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 1017 of file Polygon.cpp.
References Tetrahedron().
{
return new Tetrahedron(*this);
}
| def SyFi::Tetrahedron::copy | ( | self | ) |
copy(self) -> Tetrahedron
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
| def SyFi::Tetrahedron::integrate | ( | self, | |
| args | |||
| ) |
integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex integrate(self, GiNaC::ex f) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
| 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::RaviartThomas::compute_basis_functions(), SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::Nedelec::compute_basis_functions(), and main().
| def SyFi::Tetrahedron::line | ( | self, | |
| args | |||
| ) |
line(self, unsigned int i) -> Line
Reimplemented from SyFi::Polygon.
| Line SyFi::Tetrahedron::line | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 865 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] |
| def SyFi::Tetrahedron::no_space_dim | ( | self | ) |
no_space_dim(self) -> unsigned int
Reimplemented from SyFi::Polygon.
| ex SyFi::Tetrahedron::repr | ( | Repr_format | format = SUBS_PERFORMED | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 906 of file Polygon.cpp.
References SyFi::Line::repr(), run::s, SyFi::t, SyFi::Polygon::vertex(), and SyFi::x.
Referenced by _wrap_Tetrahedron_repr__SWIG_1(), and main().
{
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(self, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex repr(self) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
| const string SyFi::Tetrahedron::str | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Definition at line 929 of file Polygon.cpp.
References run::s.
Referenced by _wrap_Tetrahedron_str(), and main().
{
std::ostringstream s;
// s <<"Tetrahedron("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")";
s <<"Tetrahedron";
return s.str();
}
| def SyFi::Tetrahedron::str | ( | self | ) |
| Triangle SyFi::Tetrahedron::triangle | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 882 of file Polygon.cpp.
References SyFi::istr(), SyFi::Polygon::p, and SyFi::Polygon::subscript.
Referenced by SyFi::RaviartThomas::compute_basis_functions(), SyFi::Nedelec2Hdiv::compute_basis_functions(), SyFi::Nedelec::compute_basis_functions(), SyFi::CrouzeixRaviart::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!");
}
| def SyFi::Tetrahedron::triangle | ( | self, | |
| args | |||
| ) |
triangle(self, unsigned int i) -> Triangle
Reimplemented from SyFi::Polygon.
SyFi::Tetrahedron::__del__ = lambdaself:None; [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
tuple SyFi::Tetrahedron::__getattr__ = lambdaself,name:_swig_getattr(self, Tetrahedron, name) [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
SyFi::Tetrahedron::__repr__ = _swig_repr [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
tuple SyFi::Tetrahedron::__setattr__ = lambdaself,name,value:_swig_setattr(self, Tetrahedron, name, value) [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.
dictionary SyFi::Tetrahedron::__swig_getmethods__ = {} [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
dictionary SyFi::Tetrahedron::__swig_setmethods__ = {} [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceTetrahedron.
Reimplemented in SyFi::ReferenceTetrahedron.