OpenLB 1.7
Searching...
No Matches
olb::GaussianHill2D< T, S > Class Template Reference

8.6.1 Gauss Hill inital values More...

`#include <analyticalF.h>`

Inheritance diagram for olb::GaussianHill2D< T, S >:
Collaboration diagram for olb::GaussianHill2D< T, S >:

Public Member Functions

GaussianHill2D (T sigma, Vector< T, 2 > x0, T c0)

bool operator() (T output[1], const S x[2]) override

Public Member Functions inherited from olb::AnalyticalF< D, T, S >
AnalyticalF< D, T, S > & operator- (AnalyticalF< D, T, S > &rhs)

AnalyticalF< D, T, S > & operator+ (AnalyticalF< D, T, S > &rhs)

AnalyticalF< D, T, S > & operator* (AnalyticalF< D, T, S > &rhs)

AnalyticalF< D, T, S > & operator/ (AnalyticalF< D, T, S > &rhs)

Public Member Functions inherited from olb::GenericF< T, S >
virtual ~GenericF ()=default

int getSourceDim () const

int getTargetDim () const

std::string & getName ()

std::string const & getName () const

virtual bool operator() (T output[], const S input[])=0
has to be implemented for 'every' derived class

bool operator() (T output[])
wrapper that call the pure virtual operator() (T output[], const S input[]) from above

bool operator() (T output[], S input0)

bool operator() (T output[], S input0, S input1)

bool operator() (T output[], S input0, S input1, S input2)

bool operator() (T output[], S input0, S input1, S input2, S input3)

Public Types inherited from olb::AnalyticalF< D, T, S >
using identity_functor_type = AnalyticalIdentity<D,T,S>

Public Types inherited from olb::GenericF< T, S >
using targetType = T

using sourceType = S

Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
memory management, frees resouces (calcClass)

Static Public Attributes inherited from olb::AnalyticalF< D, T, S >
static constexpr unsigned dim = D

Protected Member Functions inherited from olb::AnalyticalF< D, T, S >
AnalyticalF (int n)

Protected Member Functions inherited from olb::GenericF< T, S >
GenericF (int targetDim, int sourceDim)

Detailed Description

template<typename T, typename S>
class olb::GaussianHill2D< T, S >

8.6.1 Gauss Hill inital values

Definition at line 596 of file analyticalF.h.

◆ GaussianHill2D()

template<typename T , typename S >
 olb::GaussianHill2D< T, S >::GaussianHill2D ( T sigma, Vector< T, 2 > x0, T c0 )

Definition at line 693 of file analyticalF.hh.

694 : AnalyticalF2D<T,S>(1), _sigma(sigma), _x0(x0[0],x0[1]), _c0(c0)
695{
696 this->getName() = "GaussianHill";
697}
std::string & getName()
Definition genericF.hh:51

References olb::GenericF< T, S >::getName().

Here is the call graph for this function:

◆ operator()()

template<typename T , typename S >
 bool olb::GaussianHill2D< T, S >::operator() ( T output[1], const S x[2] )
override

Definition at line 700 of file analyticalF.hh.

701{
702 output[0] = _c0 * util::exp(- ((x[0]-_x0[0])*(x[0]-_x0[0]) + (x[1]-_x0[1])*(x[1]-_x0[1])) / (2*_sigma*_sigma) );
703 return true;
704}