www.mooseframework.org
PiecewiseLinear.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef PIECEWISELINEAR_H
16 #define PIECEWISELINEAR_H
17 
18 #include "Piecewise.h"
19 
20 // Forward declarations
21 class PiecewiseLinear;
22 
23 template <>
25 
30 class PiecewiseLinear : public Piecewise
31 {
32 public:
34 
41  virtual Real value(Real t, const Point & pt) override;
42 
49  virtual Real timeDerivative(Real t, const Point & pt) override;
50 
51  virtual Real integral() override;
52 
53  virtual Real average() override;
54 };
55 
56 #endif
virtual Real timeDerivative(Real t, const Point &pt) override
Get the time derivative of the function (based on time only)
virtual Real value(Real t, const Point &pt) override
Get the value of the function (based on time only)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Function which provides a piecewise continuous linear interpolation of a provided (x...
virtual Real average() override
InputParameters validParams< PiecewiseLinear >()
PiecewiseLinear(const InputParameters &parameters)
virtual Real integral() override
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Function which provides a piecewise approximation to a provided (x,y) point data set.
Definition: Piecewise.h:31