https://mooseframework.inl.gov
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 
18 template <class T>
20 {
21 public:
22  DerivativeKernelInterface(const InputParameters & parameters);
23 
26 
27 protected:
28  unsigned int _nvar;
29  std::string _F_name;
30 };
31 
32 template <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 
40 template <class T>
43 {
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 }
void addDeprecatedParam(const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message)
DerivativeKernelInterface(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams()
Interface class ("Veneer") to provide generator methods for derivative material property names...
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...
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...