www.mooseframework.org
LaplacianSplit.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 "LaplacianSplit.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<KernelGrad>();
15  params.addClassDescription(
16  "Split with a variable that holds the Laplacian of a phase field variable.");
17  params.addRequiredCoupledVar("c", "Field variable to take the Laplacian of");
18  return params;
19 }
20 
21 LaplacianSplit::LaplacianSplit(const InputParameters & parameters)
22  : KernelGrad(parameters), _var_c(coupled("c")), _grad_c(coupledGradient("c"))
23 {
24 }
25 
26 RealGradient
28 {
29  return _grad_c[_qp]; // * _grad_test[_i][_qp]
30 }
31 
32 RealGradient
34 {
35  return 0.0;
36 }
37 
38 Real
40 {
41  if (jvar == _var_c)
42  return _grad_phi[_j][_qp] * _grad_test[_i][_qp];
43 
44  return 0.0;
45 }
virtual RealGradient precomputeQpJacobian()
const VariableGradient & _grad_c
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
InputParameters validParams< LaplacianSplit >()
LaplacianSplit(const InputParameters &parameters)
virtual RealGradient precomputeQpResidual()
const unsigned int _var_c