www.mooseframework.org
GradParsedFunction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseParsedFunction.h"
13 
14 // Forward declarations
15 class GradParsedFunction;
16 
17 template <>
18 InputParameters validParams<GradParsedFunction>();
19 
26 class GradParsedFunction : public MooseParsedFunction
27 {
28 public:
29  GradParsedFunction(const InputParameters & parameters);
30 
31  virtual Real value(Real t, const Point & pt);
32 
33 protected:
35  RealVectorValue _direction;
36 
38  Real _len;
39 };
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)