www.mooseframework.org
OrderParameterFunctionMaterial.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<Material>();
14  params.addCoupledVar("eta", "Order parameter variable");
15  params.addParam<std::string>("function_name", "f", "actual name for f(eta), i.e. 'h' or 'g'");
16  return params;
17 }
18 
20  : DerivativeMaterialInterface<Material>(parameters),
21  _eta(coupledValue("eta")),
22  _eta_var(coupled("eta")),
23  _eta_name(getVar("eta", 0)->name()),
24  _function_name(getParam<std::string>("function_name")),
25  _prop_f(declareProperty<Real>(_function_name)),
26  _prop_df(declarePropertyDerivative<Real>(_function_name, _eta_name)),
27  _prop_d2f(declarePropertyDerivative<Real>(_function_name, _eta_name, _eta_name))
28 {
29 }
OrderParameterFunctionMaterial(const InputParameters &parameters)
InputParameters validParams< OrderParameterFunctionMaterial >()