https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearCombinationFunction.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 "FunctionInterface.h"
14
19{
20public:
22
24
25 using Function::value;
26 virtual Real value(Real t, const Point & pt) const override;
27 virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
28 virtual RealVectorValue vectorValue(Real t, const Point & p) const override;
29 virtual RealGradient gradient(Real t, const Point & p) const override;
30
31private:
32 std::vector<std::pair<const Function *, Real>> _fw;
33};
DualNumber< Real, DNDerivativeType, true > ADReal
Interface for objects that need to use functions.
Base class for function objects.
Definition Function.h:30
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.
Sum_over_i (w_i * functions_i)
static InputParameters validParams()
virtual RealVectorValue vectorValue(Real t, const Point &p) const override
Override this to evaluate the vector function at a point (t,x,y,z), by default this returns a zero ve...
virtual RealGradient gradient(Real t, const Point &p) const override
Function objects can optionally provide a gradient at a point.
std::vector< std::pair< const Function *, Real > > _fw
virtual Real value(Real t, const Point &pt) const override
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131