www.mooseframework.org
GradParsedFunction.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 GRADPARSEDFUNCTION_H
9 #define GRADPARSEDFUNCTION_H
10 
11 #include "MooseParsedFunction.h"
12 
13 // Forward declarations
14 class GradParsedFunction;
15 
16 template <>
17 InputParameters validParams<GradParsedFunction>();
18 
25 class GradParsedFunction : public MooseParsedFunction
26 {
27 public:
28  GradParsedFunction(const InputParameters & parameters);
29 
30  virtual Real value(Real t, const Point & pt);
31 
32 protected:
34  RealVectorValue _direction;
35 
37  Real _len;
38 };
39 #endif // GRADPARSEDFUNCTION_H
RealVectorValue _direction
central difference direction
returns the central difference approx to the derivative of the function, ie (f(t, p + direction) - f(...
virtual Real value(Real t, const Point &pt)
InputParameters validParams< GradParsedFunction >()
Real _len
2*|_direction|
GradParsedFunction(const InputParameters &parameters)