OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::GaussianHillTimeEvolution2D< T, S > Class Template Reference

8.6.1 Gauss Hill time evolution More...

#include <analyticalF.h>

+ Inheritance diagram for olb::GaussianHillTimeEvolution2D< T, S >:
+ Collaboration diagram for olb::GaussianHillTimeEvolution2D< T, S >:

Public Member Functions

 GaussianHillTimeEvolution2D (T sigma0, T D, T t, Vector< T, 2 > x0, Vector< T, 2 > u, 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
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
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)
 

Additional Inherited Members

- 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::GaussianHillTimeEvolution2D< T, S >

8.6.1 Gauss Hill time evolution

Definition at line 631 of file analyticalF.h.

Constructor & Destructor Documentation

◆ GaussianHillTimeEvolution2D()

template<typename T , typename S >
olb::GaussianHillTimeEvolution2D< T, S >::GaussianHillTimeEvolution2D ( T sigma0,
T D,
T t,
Vector< T, 2 > x0,
Vector< T, 2 > u,
T c0 )

Definition at line 710 of file analyticalF.hh.

711 : AnalyticalF2D<T,S>(1), _sigma02(sigma0*sigma0), _D(D), _t(t), _x0(x0[0],x0[1]), _u(u[0],u[1]), _c0(c0)
712{
713 this->getName() = "GaussianHillTimeEvolution";
714}
std::string & getName()
read and write access to name
Definition genericF.hh:51
AnalyticalF< 2, T, S > AnalyticalF2D

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

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

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

Definition at line 717 of file analyticalF.hh.

718{
719 output[0] = _sigma02 / (_sigma02+2*_D*_t) * _c0 * util::exp(- ((x[0]-_x0[0]-_u[0]*_t)*(x[0]-_x0[0]-_u[0]*_t) + (x[1]-_x0[1]-_u[1]*_t)*(x[1]-_x0[1]-_u[1]*_t)) / (2*(_sigma02+2*_D*_t) ));
720 return true;
721}
Expr exp(Expr x)
Definition expr.cpp:240

References olb::util::exp().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: