Formula in spherical polar coordinates. More...

#include <sphericalFormula.hh>

Inheritance diagram for concepts::SphericalFormula< Real >:
concepts::ParsedFormula< Real > concepts::Formula< Real > concepts::ParsedFormulaBase< 1 >

Public Types

typedef Realtype< Real >::type G
 
typedef concepts::Sequence< std::pair< std::string, std::string > > RepSeq
 
typedef Real value_type
 

Public Member Functions

virtual SphericalFormula< Real > * clone () const
 
virtual Formulaclone () const=0
 
virtual Real operator() (const Real p, const Real t=0.0) const
 Application operator. More...
 
virtual Real operator() (const Real2d &p, const Real t=0.0) const
 Application operator. More...
 
virtual Real operator() (const Real3d &p, const Real t=0.0) const
 Application operator. More...
 
void set (const std::string formula, uint i=0, RepSeq rep=RepSeq())
 Sets the i th formula. More...
 
 SphericalFormula (const SphericalFormula &frm)
 Copy Constructor. More...
 
 SphericalFormula (const std::string formula)
 Constructor. More...
 
virtual ~SphericalFormula ()
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Real operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 
Real process_ (const Real3d &p, const Real t=0.0, uint i=0) const
 Processing the i th formula (with time-dependency variable) More...
 

Protected Attributes

std::string formula_ [dim]
 The original formula. More...
 

Private Attributes

uint len_ [dim]
 Length of the parsed formula
More...
 
Array< ucharpgm_ [dim]
 The parsed formula. More...
 

Detailed Description

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}, \]

where $\phi \in (-\pi, \pi)$ and $\theta \in (0,\pi)$.

Author
Philipp Frauenfelder, 2002, Robert 2013

Definition at line 33 of file sphericalFormula.hh.

Member Typedef Documentation

◆ G

typedef Realtype<Real >::type concepts::Formula< Real >::G
inherited

Definition at line 37 of file formula.hh.

◆ RepSeq

typedef concepts::Sequence<std::pair<std::string,std::string> > concepts::ParsedFormulaBase< dim >::RepSeq
inherited

Definition at line 62 of file parsedFormula.hh.

◆ value_type

typedef Real concepts::Formula< Real >::value_type
inherited

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ SphericalFormula() [1/2]

concepts::SphericalFormula< Real >::SphericalFormula ( const std::string  formula)
inline

Constructor.

Definition at line 36 of file sphericalFormula.hh.

◆ SphericalFormula() [2/2]

Copy Constructor.

Definition at line 38 of file sphericalFormula.hh.

◆ ~SphericalFormula()

Member Function Documentation

◆ clone() [1/2]

virtual SphericalFormula<Real>* concepts::SphericalFormula< Real >::clone ( ) const
virtual

Reimplemented from concepts::ParsedFormula< Real >.

◆ clone() [2/2]

virtual Formula* concepts::Formula< Real >::clone ( ) const
pure virtualinherited

◆ info()

virtual std::ostream& concepts::SphericalFormula< Real >::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::ParsedFormula< Real >.

◆ operator()() [1/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 53 of file formula.hh.

◆ operator()() [2/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 56 of file formula.hh.

◆ operator()() [3/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 59 of file formula.hh.

◆ operator()() [4/6]

virtual Real concepts::SphericalFormula< Real >::operator() ( const Real  p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Reimplemented from concepts::ParsedFormula< Real >.

◆ operator()() [5/6]

virtual Real concepts::SphericalFormula< Real >::operator() ( const Real2d p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Reimplemented from concepts::ParsedFormula< Real >.

◆ operator()() [6/6]

virtual Real concepts::SphericalFormula< Real >::operator() ( const Real3d p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Reimplemented from concepts::ParsedFormula< Real >.

◆ process_()

Real concepts::ParsedFormulaBase< dim >::process_ ( const Real3d p,
const Real  t = 0.0,
uint  i = 0 
) const
protectedinherited

Processing the i th formula (with time-dependency variable)

◆ set()

void concepts::ParsedFormulaBase< dim >::set ( const std::string  formula,
uint  i = 0,
RepSeq  rep = RepSeq() 
)
inherited

Sets the i th formula.

Member Data Documentation

◆ formula_

std::string concepts::ParsedFormulaBase< dim >::formula_[dim]
protectedinherited

The original formula.

Definition at line 85 of file parsedFormula.hh.

◆ len_

uint concepts::ParsedFormulaBase< dim >::len_[dim]
privateinherited

Length of the parsed formula

Definition at line 90 of file parsedFormula.hh.

◆ pgm_

Array<uchar> concepts::ParsedFormulaBase< dim >::pgm_[dim]
privateinherited

The parsed formula.

Definition at line 88 of file parsedFormula.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich