19 "Helper material to provide $h(\\eta)$ and its derivative in one of two "
20 "polynomial forms.\nSIMPLE: $3\\eta^2-2\\eta^3$\nHIGH: "
21 "$\\eta^3(6\\eta^2-15\\eta+10)$");
22 MooseEnum h_order(
"SIMPLE=0 HIGH",
"SIMPLE");
24 "h_order", h_order,
"Polynomial order of the switching function h(eta)");
25 params.
set<std::string>(
"function_name") = std::string(
"h");
38 n = n > 1 ? 1 : (n < 0 ? 0 : n);
43 _prop_f[_qp] = 3.0 * n * n - 2.0 * n * n * n;
44 _prop_df[_qp] = 6.0 * n - 6.0 * n * n;
49 _prop_f[_qp] = n * n * n * (6.0 * n * n - 15.0 * n + 10.0);
50 _prop_df[_qp] = 30.0 * n * n * (n * n - 2.0 * n + 1.0);
51 _prop_d2f[_qp] = n * (120.0 * n * n - 180.0 * n + 60.0);
void mooseError(Args &&... args)
registerMooseObject("PhaseFieldApp", SwitchingFunctionMaterial)
Material base class for materials that provide the switching function or the double well function .
MaterialProperty< Real > & _prop_df
Material property to store the derivative .
MaterialProperty< Real > & _prop_f
Material property to store .
static InputParameters validParams()
MaterialProperty< Real > & _prop_d2f
Material property to store the second derivative .
const VariableValue & _eta
Coupled variable value for the order parameter .
Material class to provide the switching function for the KKS system.
MooseEnum _h_order
Polynomial order of the switching function .
static InputParameters validParams()
SwitchingFunctionMaterial(const InputParameters ¶meters)
virtual void computeQpProperties()