18 InputParameters params = validParams<DerivativeFunctionMaterialBase>();
19 params.addClassDescription(
"Material that implements the math free energy and its derivatives: "
20 "\nF = 1/4(1 + c)^2*(1 - c)^2");
21 params.addRequiredCoupledVar(
"c",
"Concentration variable");
26 : DerivativeFunctionMaterialBase(parameters), _c(coupledValue(
"c")), _c_var(coupled(
"c"))
33 return 1.0 / 4.0 * (1.0 +
_c[_qp]) * (1.0 +
_c[_qp]) * (1.0 -
_c[_qp]) * (1.0 -
_c[_qp]);
41 return _c[_qp] * (
_c[_qp] *
_c[_qp] - 1.0);
50 return 3 *
_c[_qp] *
_c[_qp] - 1.0;