https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PiecewiseConstant.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
18{
19public:
21
23
24 using Function::value;
31 virtual Real value(Real t, const Point & p) const override;
32 virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
33
40 virtual Real timeDerivative(Real t, const Point & pt) const override;
41 virtual Real integral() const override;
42 virtual Real average() const override;
43
44private:
47};
DualNumber< Real, DNDerivativeType, true > ADReal
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:30
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
Function which provides a piecewise constant interpolation of a provided (x,y) point data set.
virtual Real average() const override
Returns the average of the function over its domain.
enum PiecewiseConstant::Direction _direction
virtual Real integral() const override
Returns the integral of the function over its domain.
virtual Real timeDerivative(Real t, const Point &pt) const override
Get the time derivative of the function (based on time only)
Direction
Enum for which direction to apply values.
virtual Real value(Real t, const Point &p) const override
Get the value of the function (based on time only)
static InputParameters validParams()
Function base which provides a piecewise approximation to a provided (x,y) point data set via input p...