Class for evaluating $ \exp(2 \pi i n x/ L), n\in\mathbb{Z} $ for points $ (x,y) \in \mathbb{R}^2 $ in cartesian coordinates. More...

#include <formulas2D.hh>

Inheritance diagram for concepts::Exp_i_n_x:
concepts::Formula< Cmplx >

Public Types

typedef Realtype< Cmplx >::type G
 
typedef Cmplx value_type
 

Public Member Functions

virtual Exp_i_n_xclone () const
 
virtual Formulaclone () const=0
 
 Exp_i_n_x (const int n=0, const Real L=1.0)
 Constructor. More...
 
virtual Cmplx operator() (const Real p, const Real t=0.0) const
 Application operator. More...
 
virtual Cmplx operator() (const Real2d &p, const Real t=0.0) const
 Application operator. More...
 
virtual Cmplx operator() (const Real3d &p, const Real t=0.0) const
 Application operator. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

const Real L_
 length of the interval More...
 
const int n_
 exponent of the function More...
 

Detailed Description

Class for evaluating $ \exp(2 \pi i n x/ L), n\in\mathbb{Z} $ for points $ (x,y) \in \mathbb{R}^2 $ in cartesian coordinates.

Author
Kersten Schmidt, 2012

Definition at line 103 of file formulas2D.hh.

Member Typedef Documentation

◆ G

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

Definition at line 37 of file formula.hh.

◆ value_type

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

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ Exp_i_n_x()

concepts::Exp_i_n_x::Exp_i_n_x ( const int  n = 0,
const Real  L = 1.0 
)

Constructor.

Member Function Documentation

◆ clone() [1/2]

virtual Exp_i_n_x* concepts::Exp_i_n_x::clone ( ) const
inlinevirtual

Definition at line 113 of file formulas2D.hh.

◆ clone() [2/2]

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

◆ info()

virtual std::ostream& concepts::Exp_i_n_x::info ( std::ostream &  os) const
protectedvirtual

◆ operator()() [1/6]

virtual Cmplx concepts::Formula< Cmplx >::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 Cmplx concepts::Formula< Cmplx >::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 Cmplx concepts::Formula< Cmplx >::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 Cmplx concepts::Exp_i_n_x::operator() ( const Real  p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

◆ operator()() [5/6]

virtual Cmplx concepts::Exp_i_n_x::operator() ( const Real2d p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

◆ operator()() [6/6]

virtual Cmplx concepts::Exp_i_n_x::operator() ( const Real3d p,
const Real  t = 0.0 
) const
virtual

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

Member Data Documentation

◆ L_

const Real concepts::Exp_i_n_x::L_
private

length of the interval

Definition at line 122 of file formulas2D.hh.

◆ n_

const int concepts::Exp_i_n_x::n_
private

exponent of the function

Definition at line 120 of file formulas2D.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