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

#include <formulas2D.hh>

Inheritance diagram for concepts::Cos_n_y:
concepts::Formula< Real >

Public Types

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

Public Member Functions

virtual Cos_n_yclone () const
 
virtual Formulaclone () const=0
 
 Cos_n_y (const int n=0, const Real L=1.0)
 Constructor. More...
 
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...
 

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 $ \cos(2 \pi n y/ L), n\in\mathbb{Z} $ for points $ (x,y) \in \mathbb{R}^2 $ in cartesian coordinates.

Author
Kersten Schmidt, 2012

Definition at line 220 of file formulas2D.hh.

Member Typedef Documentation

◆ G

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

Definition at line 37 of file formula.hh.

◆ value_type

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

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ Cos_n_y()

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

Constructor.

Member Function Documentation

◆ clone() [1/2]

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

Definition at line 230 of file formulas2D.hh.

◆ clone() [2/2]

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

◆ info()

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

◆ 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::Cos_n_y::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< Real >.

◆ operator()() [5/6]

virtual Real concepts::Cos_n_y::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< Real >.

◆ operator()() [6/6]

virtual Real concepts::Cos_n_y::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< Real >.

Member Data Documentation

◆ L_

const Real concepts::Cos_n_y::L_
private

length of the interval

Definition at line 239 of file formulas2D.hh.

◆ n_

const int concepts::Cos_n_y::n_
private

exponent of the function

Definition at line 237 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