GRINS-0.6.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
GRINS::GaussianProfile Class Reference

Gaussian profile. More...

#include <gaussian_profile.h>

Inheritance diagram for GRINS::GaussianProfile:
Inheritance graph
[legend]
Collaboration diagram for GRINS::GaussianProfile:
Collaboration graph
[legend]

Public Member Functions

 GaussianProfile (const double a, const double mu, const double sigma, const double b)
 
virtual ~GaussianProfile ()
 

Protected Member Functions

double eval (const double r)
 

Protected Attributes

double _a
 Coefficients defining parabola. More...
 
double _mu
 
double _variance
 
double _b
 

Private Member Functions

 GaussianProfile ()
 

Detailed Description

Gaussian profile.

Generic Gaussian profile. Mainly used for defining inflow boundary conditions. Function takes the form: $ f= a \exp \left\{ -\frac{(r-\mu)^2}{2*\sigma^2} \right\} - b$ where $ b $ is a shift so that $ f $ is continuous. In particular, if $ r > b, f = 0 $. $ r $ is computed in the derived classes, depending on the plane the function is defined in.

Definition at line 45 of file gaussian_profile.h.

Constructor & Destructor Documentation

GRINS::GaussianProfile::GaussianProfile ( const double  a,
const double  mu,
const double  sigma,
const double  b 
)

Definition at line 35 of file gaussian_profile.C.

37  : libMesh::FunctionBase<libMesh::Number>(),
38  _a(a),
39  _mu(mu),
40  _variance(sigma*sigma),
41  _b(b)
42  {
43  return;
44  }
double _a
Coefficients defining parabola.
GRINS::GaussianProfile::~GaussianProfile ( )
virtual

Definition at line 46 of file gaussian_profile.C.

47  {
48  return;
49  }
GRINS::GaussianProfile::GaussianProfile ( )
private

Member Function Documentation

double GRINS::GaussianProfile::eval ( const double  r)
inlineprotected

Definition at line 56 of file gaussian_profile.h.

References _a, _b, _mu, and _variance.

57  {
58  const double r_m_mu = r - _mu;
59  return _a*std::exp( -r_m_mu*r_m_mu/(2.0*_variance) ) - _b;
60  };
double _a
Coefficients defining parabola.

Member Data Documentation

double GRINS::GaussianProfile::_a
protected

Coefficients defining parabola.

Definition at line 60 of file gaussian_profile.h.

Referenced by eval().

double GRINS::GaussianProfile::_b
protected

Definition at line 60 of file gaussian_profile.h.

Referenced by eval().

double GRINS::GaussianProfile::_mu
protected

Definition at line 60 of file gaussian_profile.h.

Referenced by eval().

double GRINS::GaussianProfile::_variance
protected

Definition at line 60 of file gaussian_profile.h.

Referenced by eval().


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

Generated on Mon Jun 22 2015 21:32:22 for GRINS-0.6.0 by  doxygen 1.8.9.1