#include <sphericalFormula.hh>
Public Types | |
| typedef Real | value_type |
| typedef Realtype< Real >::type | G |
| typedef concepts::Sequence< std::pair< std::string, std::string > > | RepSeq |
Public Member Functions | |
| SphericalFormula (const std::string formula) | |
| Constructor. | |
| SphericalFormula (const SphericalFormula &frm) | |
| Copy Constructor. | |
| virtual SphericalFormula< Real > * | clone () const |
| Virtual copy constructor. | |
| virtual Real | operator() (const Real p, const Real t=0.0) const |
| virtual Real | operator() (const Real2d &p, const Real t=0.0) const |
| virtual Real | operator() (const Real3d &p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
| virtual const F & | dflt_value () const |
| Gives default value. | |
| virtual F & | dflt_value () |
| Gives default value. | |
| void | set (const std::string formula, uint i=0, RepSeq rep=RepSeq()) |
Sets the i th formula. | |
| virtual Real | operator() (const Connector &cntr, const Real p, const Real t=0.0) const |
| virtual Real | operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const |
| virtual Real | operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
| Real | process_ (const Real3d &p, const Real t=0.0, uint i=0) const |
Processing the i th formula (with time-dependency variable) | |
Protected Attributes | |
| std::string | formula_ [dim] |
| The original formula. | |
Formula in spherical polar coordinates. In such a formula, x has the meaning of the radius, y has the meaning of the angle phi and z has the meaning of the angle theta. The input parameters of the application operators has to be given in Kartesian coordinates.
![\[ r^2 = x^2 + y^2 + z^2, \tan \phi = \frac{y}{x},
\cos \theta = \frac{z}{r}, \]](form_325.png)
where 

Definition at line 33 of file sphericalFormula.hh.
|
inherited |
Definition at line 37 of file formula.hh.
|
inherited |
Definition at line 62 of file parsedFormula.hh.
|
inherited |
Definition at line 36 of file formula.hh.
|
inline |
Constructor.
Definition at line 36 of file sphericalFormula.hh.
|
inline |
Copy Constructor.
Definition at line 38 of file sphericalFormula.hh.
|
virtual |
Virtual copy constructor.
Reimplemented from concepts::ParsedFormula< Real >.
|
inlinevirtualinherited |
Gives default value.
Definition at line 83 of file piecewiseFormula.hh.
|
inlinevirtualinherited |
Gives default value.
Definition at line 81 of file piecewiseFormula.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::ParsedFormula< Real >.
|
inlinevirtualinherited |
Convenience implementation, that by default ignores its elm param.
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 53 of file formula.hh.
|
inlinevirtualinherited |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 56 of file formula.hh.
|
inlinevirtualinherited |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 59 of file formula.hh.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
|
inlinevirtualinherited |
Definition at line 52 of file piecewiseFormula.hh.
|
inlinevirtualinherited |
Definition at line 57 of file piecewiseFormula.hh.
|
inlinevirtualinherited |
Definition at line 63 of file piecewiseFormula.hh.
|
virtual |
Application operator. Evaluates the formula.
Reimplemented from concepts::ParsedFormula< Real >.
|
virtual |
Reimplemented from concepts::ParsedFormula< Real >.
|
virtual |
Reimplemented from concepts::ParsedFormula< Real >.
|
protectedinherited |
The original formula.
Definition at line 85 of file parsedFormula.hh.