www.mooseframework.org
PiecewiseMulticonstant.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 
13 
14 // Forward declarations
15 class GriddedData;
16 
25 {
26 public:
28 
30 
32  virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
33 
34  virtual RealGradient gradient(Real t, const Point & p) const override;
35  virtual Real timeDerivative(Real t, const Point & p) const override;
36 
37 protected:
39  virtual Real sample(const GridPoint & pt) const override;
40 
41 private:
44 };
Container for holding a function defined on a grid of arbitrary dimension.
Definition: GriddedData.h:34
Uses GriddedData to define data on a grid, and does linear interpolation on that data to provide func...
virtual RealGradient gradient(Real t, const Point &p) const override
Function objects can optionally provide a gradient at a point.
virtual ADReal value(const ADReal &t, const ADPoint &p) const override
Override this to evaluate the scalar function at point (t,x,y,z), using dual numbers by default this ...
static InputParameters validParams()
virtual Real sample(const GridPoint &pt) const override
This does the core work.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real timeDerivative(Real t, const Point &p) const override
Get the time derivative of the function.
Utility class template for a semidynamic vector with a maximum size N and a chosen dynamic size...
DualReal ADReal
Definition: ADRealForward.h:14
Uses GriddedData to define data on a grid, and does linear interpolation on that data to provide func...
PiecewiseMulticonstant(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MultiMooseEnum _direction
direction where to look for value if interpolation order is constant
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real value(Real t, const Point &pt) const override
Given t and p, return the interpolated value.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual Real sample(const GridPoint &pt) const =0
This does the core work.