https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PiecewiseMultilinear.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
13
14// Forward declarations
15class GriddedData;
16
25{
26public:
28
30
31 virtual RealGradient gradient(Real t, const Point & p) const override;
32 virtual Real timeDerivative(Real t, const Point & p) const override;
33
34protected:
35 virtual Real sample(const GridPoint & pt) const override;
36 virtual ADReal sample(const ADGridPoint & pt) const override;
37
38 const Real _epsilon;
39
40private:
41 template <bool is_ad>
44};
DualNumber< Real, DNDerivativeType, true > ADReal
Container for holding a function defined on a grid of arbitrary dimension.
Definition GriddedData.h:33
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Uses GriddedData to define data on a grid, and does linear interpolation on that data to provide func...
Uses GriddedData to define data on a grid, and does linear interpolation on that data to provide func...
virtual Real sample(const GridPoint &pt) const override
This does the core work.
static InputParameters validParams()
Moose::GenericType< Real, is_ad > sampleInternal(const Moose::GenericType< GridPoint, is_ad > pt) const
virtual RealGradient gradient(Real t, const Point &p) const override
Function objects can optionally provide a gradient at a point.
virtual Real timeDerivative(Real t, const Point &p) const override
Get the time derivative of the function.
typename std::conditional< is_ad, typename ADType< T >::type, T >::type GenericType
Definition MooseTypes.h:694