https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DerivativeKernelInterface.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
18template <class T>
20{
21public:
23
26
27protected:
28 unsigned int _nvar;
29 std::string _F_name;
30};
31
32template <class T>
34 : DerivativeMaterialInterface<T>(parameters),
35 _nvar(this->_coupled_moose_vars.size()),
36 _F_name(this->template getRenamedParam<std::string>("f_name", "property_name"))
37{
38}
39
40template <class T>
43{
44 InputParameters params = T::validParams();
45 params.addDeprecatedParam<std::string>(
46 "f_name",
47 "Base name of the free energy function F defined in a DerivativeParsedMaterial",
48 "Deprecated, use property_name");
49 // TODO Make required once deprecation is handled, see #20535
50 params.addParam<std::string>(
51 "property_name", "Base name of the material property defined in a DerivativeParsedMaterial");
52 return params;
53}
Interface class ("Veneer") to provide generator methods for derivative material property names,...
DerivativeKernelInterface(const InputParameters &parameters)
static InputParameters validParams()
as partial template specialization is not allowed in C++ we have to implement this as a static method
Interface class ("Veneer") to provide generator methods for derivative material property names.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
void addDeprecatedParam(const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message)