Material class that creates the math free energy and its derivatives for use with ADSplitCHParsed.
More...
#include <ADMathFreeEnergy.h>
template<ComputeStage compute_stage>
class ADMathFreeEnergy< compute_stage >
Material class that creates the math free energy and its derivatives for use with ADSplitCHParsed.
\( F = \frac14(1 + c)^2(1 - c)^2 \).
Definition at line 17 of file ADMathFreeEnergy.h.
◆ ADMathFreeEnergy()
template<ComputeStage compute_stage>
Definition at line 23 of file ADMathFreeEnergy.C.
24 : ADMaterial<compute_stage>(parameters),
25 _c(adCoupledValue(
"c")),
26 _f_name(getParam<MaterialPropertyName>(
"f_name")),
27 _prop_F(declareADProperty<Real>(
_f_name)),
29 declareADProperty<Real>(derivativePropertyNameFirst(
_f_name, this->getVar(
"c", 0)->
name())))
◆ ADMaterialProperty() [1/2]
template<ComputeStage compute_stage>
function value derivative
◆ ADMaterialProperty() [2/2]
template<ComputeStage compute_stage>
◆ computeQpProperties()
template<ComputeStage compute_stage>
Definition at line 35 of file ADMathFreeEnergy.C.
37 _prop_F[_qp] = 1.0 / 4.0 * (1.0 +
_c[_qp]) * (1.0 +
_c[_qp]) * (1.0 -
_c[_qp]) * (1.0 -
_c[_qp]);
38 _prop_dFdc[_qp] =
_c[_qp] * (
_c[_qp] *
_c[_qp] - 1.0);
◆ _c
template<ComputeStage compute_stage>
Coupled variable value for the concentration \( c \).
Definition at line 36 of file ADMathFreeEnergy.h.
◆ _f_name
template<ComputeStage compute_stage>
◆ usingMaterialMembers
template<ComputeStage compute_stage>
The documentation for this class was generated from the following files: