#include <ACGrGrMulti.h>
Definition at line 49 of file ACGrGrMulti.h.
◆ ACGrGrMulti()
Definition at line 45 of file ACGrGrMulti.C.
47 _uname(this->
template getParam<NonlinearVariableName>(
"variable")),
48 _dmudu(this->
template getMaterialPropertyDerivative<Real>(
"mu",
_uname)),
49 _vname(this->
template getParam<std::vector<VariableName>>(
"v")),
51{
52 for (
unsigned int n = 0; n <
_num_j; ++n)
53 _dmudEtaj[n] = &this->
template getMaterialPropertyDerivative<Real>(
"mu",
_vname[n]);
54}
const MaterialProperty< Real > & _dmudu
const NonlinearVariableName _uname
std::vector< const MaterialProperty< Real > * > _dmudEtaj
const std::vector< VariableName > _vname
◆ computedF0du()
Definition at line 46 of file ACGrGrMulti.C.
114{
117 SumGammaEtaj += (*
_prop_gammas[i])[_qp] * (*_vals[i])[_qp] * (*_vals[i])[_qp];
118
119 return _u[_qp] * _u[_qp] * _u[_qp] - _u[_qp] + 2.0 * _u[_qp] * SumGammaEtaj;
120}
Moose::GenericType< Real, is_ad > GenericReal
std::vector< const GenericMaterialProperty< Real, is_ad > * > _prop_gammas
Values of gammas for each order parameter.
IntRange< T > make_range(T beg, T end)
◆ computeDFDOP()
| Real ACGrGrMulti::computeDFDOP |
( |
PFFunctionType |
type | ) |
|
|
overrideprotectedvirtual |
Definition at line 57 of file ACGrGrMulti.C.
58{
59
60 Real SumGammaEtaj = 0.0;
62 SumGammaEtaj += (*
_prop_gammas[i])[_qp] * (*_vals[i])[_qp] * (*_vals[i])[_qp];
63
64
65 switch (type)
66 {
68 {
70 }
71
72 case Jacobian:
73 {
74 Real d2f0du2 = 3.0 * _u[_qp] * _u[_qp] - 1.0 + 2.0 * SumGammaEtaj;
76 }
77
78 default:
80 }
81}
void mooseError(Args &&... args)
GenericReal< is_ad > computedF0du()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ computeQpOffDiagJacobian()
| Real ACGrGrMulti::computeQpOffDiagJacobian |
( |
unsigned int |
jvar | ) |
|
|
overrideprotectedvirtual |
Definition at line 95 of file ACGrGrMulti.C.
96{
97 for (unsigned int i = 0; i < _op_num; ++i)
98 if (jvar == _vals_var[i])
99 {
100
101 const Real dSumGammaEtaj = 2.0 * (*
_prop_gammas[i])[_qp] * (*_vals[i])[_qp];
102 const Real dDFDOP = _mu[_qp] * 2.0 * _u[_qp] * dSumGammaEtaj;
103
104 return _L[_qp] * _test[_i][_qp] * _phi[_j][_qp] *
106 }
107
108 return 0.0;
109}
◆ validParams()
Definition at line 28 of file ACGrGrMulti.C.
18{
22 "gamma_names",
23 "List of gamma material property names for each other order parameter. Place "
24 "in same order as order parameters (v)!");
25 return params;
26}
typename std::conditional< is_ad, ADGrainGrowthBase, ACGrGrBase >::type ACGrGrMultiBase
This kernel calculates the residual for grain growth for a multi-phase, poly-crystal system.
◆ _dmudEtaj
◆ _dmudu
◆ _gamma_names
Names of gammas for each order parameter.
Definition at line 34 of file ACGrGrMulti.h.
◆ _num_j
◆ _prop_gammas
Values of gammas for each order parameter.
Definition at line 38 of file ACGrGrMulti.h.
◆ _uname
| const NonlinearVariableName ACGrGrMulti::_uname |
|
protected |
◆ _vname
| const std::vector<VariableName> ACGrGrMulti::_vname |
|
protected |
The documentation for this class was generated from the following files: