Fluid Dynamics Library
Public Member Functions | Private Attributes
fdl::Gaussian< scalar_t > Class Template Reference

Gaussian field $\mathbf{x} \mapsto \alpha \exp(-|\mathbf{x} - \mathbf{x}_0|^2/\sigma^2)$. More...

#include <scalars.hpp>

Inheritance diagram for fdl::Gaussian< scalar_t >:
fdl::ScalarBase< scalar_t >

List of all members.

Public Member Functions

 Gaussian (unsigned dim, scalar_t x0[], scalar_t sigma=scalar_t(1), scalar_t alpha=scalar_t(1))
 Legacy constructor.
 Gaussian (TiXmlNode *node)
virtual scalar_t operator() (scalar_t t, const scalar_t x[])

Private Attributes

scalar_t alpha_
scalar_t sigma2_
scalar_t x0_ [3]

Detailed Description

template<typename scalar_t>
class fdl::Gaussian< scalar_t >

Gaussian field $\mathbf{x} \mapsto \alpha \exp(-|\mathbf{x} - \mathbf{x}_0|^2/\sigma^2)$.

Definition at line 63 of file scalars.hpp.


Constructor & Destructor Documentation

template<typename scalar_t>
fdl::Gaussian< scalar_t >::Gaussian ( TiXmlNode *  node) [inline]

XML data format:

 <Node>
    <Definition>Gaussian</Definition>
    <Parameters x0="0.0" y0="0.0" z0="0.0" alpha="1.0" sigma="1.0">
 </Node>
 

Definition at line 89 of file scalars.hpp.


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