www.mooseframework.org
Grad2ParsedFunction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef GRAD2PARSEDFUNCTION_H
9 #define GRAD2PARSEDFUNCTION_H
10 
11 #include "MooseParsedFunction.h"
12 
13 // Forward declarations
15 
16 template <>
17 InputParameters validParams<Grad2ParsedFunction>();
18 
25 class Grad2ParsedFunction : public MooseParsedFunction
26 {
27 public:
28  Grad2ParsedFunction(const InputParameters & parameters);
29 
30  virtual Real value(Real t, const Point & pt);
31 
32 protected:
34  RealVectorValue _direction;
35 
37  Real _len2;
38 };
39 #endif // GRAD2PARSEDFUNCTION_H
Grad2ParsedFunction(const InputParameters &parameters)
returns the central difference approx to the derivative (direction.nabla)^2 function viz (f(t...
InputParameters validParams< Grad2ParsedFunction >()
virtual Real value(Real t, const Point &pt)
RealVectorValue _direction
central difference direction
Real _len2
|_direction|^2