www.mooseframework.org
CHCpldPFCTrad.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "CHCpldPFCTrad.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<LaplacianSplit>();
15  params.addRequiredParam<MaterialPropertyName>("coeff_name", "Name of coefficient");
16  return params;
17 }
18 
19 CHCpldPFCTrad::CHCpldPFCTrad(const InputParameters & parameters)
20  : LaplacianSplit(parameters), _coeff(getMaterialProperty<Real>("coeff_name"))
21 {
22 }
23 
24 RealGradient
26 {
27  RealGradient grad_cpldvar = LaplacianSplit::precomputeQpResidual();
28  return _coeff[_qp] * grad_cpldvar;
29 }
30 
31 Real
33 {
34  Real grphi_grtst = LaplacianSplit::computeQpOffDiagJacobian(jvar);
35  return _coeff[_qp] * grphi_grtst;
36 }
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
CHCpldPFCTrad(const InputParameters &parameters)
Definition: CHCpldPFCTrad.C:19
virtual RealGradient precomputeQpResidual()
Definition: CHCpldPFCTrad.C:25
InputParameters validParams< LaplacianSplit >()
virtual RealGradient precomputeQpResidual()
Split with a variable that holds the Laplacian of the phase field.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: CHCpldPFCTrad.C:32
const MaterialProperty< Real > & _coeff
Definition: CHCpldPFCTrad.h:29
InputParameters validParams< CHCpldPFCTrad >()
Definition: CHCpldPFCTrad.C:12