www.mooseframework.org
CompositeFunction.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 
12 #include "Function.h"
13 #include "FunctionInterface.h"
14 
19 class CompositeFunction : public Function, protected FunctionInterface
20 {
21 public:
23 
25 
26  using Function::value;
27  virtual Real value(Real t, const Point & pt) const override;
28  virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
29 
30 private:
32  std::vector<const Function *> _f;
33 };
static InputParameters validParams()
Base class for function objects.
Definition: Function.h:37
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for function objects.
CompositeFunction(const InputParameters &parameters)
DualReal ADReal
Definition: ADRealForward.h:14
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...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _scale_factor
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:41
Interface for objects that need to use functions.
std::vector< const Function * > _f