https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FunctionBase.C
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#include "FunctionBase.h"
11
12namespace Moose
13{
14
17{
20
21 // Functions should be executed on the fly
22 params.suppressParameter<ExecFlagEnum>("execute_on");
23
24 params.registerBase("Function");
25
26 return params;
27}
28
30 : MooseObject(parameters),
31 SetupInterface(this),
35 Restartable(this, "Functions"),
36 MeshChangedInterface(parameters),
38{
39}
40
41#ifdef MOOSE_KOKKOS_ENABLED
43 : MooseObject(object, key),
44 SetupInterface(object, key),
45 TransientInterface(object, key),
46 PostprocessorInterface(object, key),
47 UserObjectInterface(object, key),
48 Restartable(object, key),
49 MeshChangedInterface(object, key),
50 ScalarCoupleable(object, key)
51{
52}
53#endif
54
56
57} // namespace Moose
A MultiMooseEnum object to hold "execute_on" flags.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void suppressParameter(const std::string &name)
This method suppresses an inherited parameter so that it isn't required or valid in the derived class...
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System.
Interface for notifications that the mesh has changed.
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
static InputParameters validParams()
Definition MooseObject.C:25
static InputParameters validParams()
FunctionBase(const InputParameters &parameters)
virtual ~FunctionBase()
Interface class for classes which interact with Postprocessors.
A class for creating restricted objects.
Definition Restartable.h:29
Interface for objects that needs scalar coupling capabilities.
static InputParameters validParams()
Interface for objects that needs transient capabilities.
Interface for objects that need to use UserObjects.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...