libMesh
Public Member Functions | List of all members
ShiftedGaussian Struct Reference

#include <assembly.h>

Inheritance diagram for ShiftedGaussian:
[legend]

Public Member Functions

virtual Number evaluate (const RBParameters &mu, const Point &p, const Elem &)
 Evaluate this parametrized function for the parameter value mu at the point p. More...
 

Detailed Description

Definition at line 39 of file assembly.h.

Member Function Documentation

virtual Number ShiftedGaussian::evaluate ( const RBParameters ,
const Point ,
const Elem  
)
virtual

Evaluate this parametrized function for the parameter value mu at the point p.

Reimplemented from libMesh::RBParametrizedFunction.

Definition at line 41 of file assembly.h.

References libMesh::RBParameters::get_value(), std::pow(), and libMesh::Real.

44  {
45  Real center_x = mu.get_value("center_x");
46  Real center_y = mu.get_value("center_y");
47  return exp(-2.*(pow(center_x-p(0),2.) + pow(center_y-p(1),2.)));
48  }
double pow(double a, int b)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

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