https://mooseframework.inl.gov
Loading...
Searching...
No Matches
OrderParameterFunctionMaterial.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
11
14{
16 params.addCoupledVar("eta", "Order parameter variable");
17 params.addParam<std::string>("function_name", "f", "actual name for f(eta), i.e. 'h' or 'g'");
18 return params;
19}
20
23 _eta(coupledValue("eta")),
24 _eta_var(coupled("eta")),
25 _eta_name(coupledName("eta", 0)),
26 _function_name(getParam<std::string>("function_name")),
27 _prop_f(declareProperty<Real>(_function_name)),
28 _prop_df(declarePropertyDerivative<Real>(_function_name, _eta_name)),
29 _prop_d2f(declarePropertyDerivative<Real>(_function_name, _eta_name, _eta_name))
30{
31}
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
OrderParameterFunctionMaterial(const InputParameters &parameters)