https://mooseframework.inl.gov
PiecewiseLinearFromVectorPostprocessor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 "Function.h"
13 #include "LinearInterpolation.h"
15 
21 {
22 public:
24 
26 
27  using Function::value;
28  virtual Real value(Real t, const Point & p) const override;
29  virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
30 
31 protected:
32  std::unique_ptr<LinearInterpolation> _linear_interp;
35 
36  template <typename T, typename P>
37  T valueInternal(const T & t, const P & p) const;
38 
40 
43 
45  mutable std::tuple<Real, unsigned int, unsigned int> _last_update;
46 };
Base class for function objects.
Definition: Function.h:36
Function which provides a piecewise continuous linear interpolation of a data set provided as two col...
PiecewiseLinearFromVectorPostprocessor(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
virtual Real value(Real t, const Point &p) const override
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
FEProblemBase & _fe_problem
used to get the current linear/non-linear iteration number
std::vector< Real > VectorPostprocessorValue
Definition: MooseTypes.h:203
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::unique_ptr< LinearInterpolation > _linear_interp
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
Definition: Function.C:44
std::tuple< Real, unsigned int, unsigned int > _last_update
last iteration during which the linear interpolation was rebuilt