19 "Kernel that provides antitrapping current at the interface for alloy solidification");
31 const Real norm_sq =
_grad_v[_qp].norm_sq();
35 return _F[_qp] * _v_dot[_qp] *
_grad_v[_qp] * _grad_test[_i][_qp] / std::sqrt(norm_sq);
41 const Real norm_sq =
_grad_v[_qp].norm_sq();
45 return _dFdu[_qp] * _v_dot[_qp] *
_grad_v[_qp] * _grad_test[_i][_qp] * _phi[_j][_qp] /
52 const Real norm_sq =
_grad_v[_qp].norm_sq();
57 const unsigned int cvar = mapJvarToCvar(jvar);
60 return (
_F[_qp] * _dv_dot[_qp] *
_grad_v[_qp] * _grad_test[_i][_qp] * _phi[_j][_qp] +
61 _F[_qp] * _v_dot[_qp] * _grad_test[_i][_qp] * _grad_phi[_j][_qp] -
63 _grad_phi[_j][_qp] / norm_sq +
64 _v_dot[_qp] *
_grad_v[_qp] * _grad_test[_i][_qp] * _phi[_j][_qp] *
68 return _v_dot[_qp] *
_grad_v[_qp] * _grad_test[_i][_qp] * _phi[_j][_qp] * (*
_dFdarg[cvar])[_qp] /
registerMooseObject("PhaseFieldApp", AntitrappingCurrent)
This calculates a modified coupled time derivative that multiplies the time derivative of a coupled v...
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
static InputParameters validParams()
virtual Real computeQpJacobian()
const VariableGradient & _grad_v
AntitrappingCurrent(const InputParameters ¶meters)
virtual Real computeQpResidual()
This calculates a modified coupled time derivative that multiplies the time derivative of a coupled v...
std::vector< const MaterialProperty< Real > * > _dFdarg
function derivatives w.r.t. coupled variables
const MaterialProperty< Real > & _F
The function multiplied by the coupled time derivative.
const MaterialProperty< Real > & _dFdu
function derivative w.r.t. the kernel variable
static InputParameters validParams()
static constexpr Real TOLERANCE