www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
LaplacianSplit Class Reference

Split with a variable that holds the Laplacian of the phase field. More...

#include <LaplacianSplit.h>

Inheritance diagram for LaplacianSplit:
[legend]

Public Member Functions

 LaplacianSplit (const InputParameters &parameters)
 

Protected Member Functions

virtual RealGradient precomputeQpResidual ()
 
virtual RealGradient precomputeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Private Attributes

const unsigned int _var_c
 
const VariableGradient & _grad_c
 

Detailed Description

Split with a variable that holds the Laplacian of the phase field.

Definition at line 24 of file LaplacianSplit.h.

Constructor & Destructor Documentation

◆ LaplacianSplit()

LaplacianSplit::LaplacianSplit ( const InputParameters &  parameters)

Definition at line 25 of file LaplacianSplit.C.

26  : KernelGrad(parameters), _var_c(coupled("c")), _grad_c(coupledGradient("c"))
27 {
28 }
const VariableGradient & _grad_c
const unsigned int _var_c

Member Function Documentation

◆ computeQpOffDiagJacobian()

Real LaplacianSplit::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 43 of file LaplacianSplit.C.

44 {
45  if (jvar == _var_c)
46  return _grad_phi[_j][_qp] * _grad_test[_i][_qp];
47 
48  return 0.0;
49 }
const unsigned int _var_c

◆ precomputeQpJacobian()

RealGradient LaplacianSplit::precomputeQpJacobian ( )
protectedvirtual

Definition at line 37 of file LaplacianSplit.C.

38 {
39  return 0.0;
40 }

◆ precomputeQpResidual()

RealGradient LaplacianSplit::precomputeQpResidual ( )
protectedvirtual

Definition at line 31 of file LaplacianSplit.C.

32 {
33  return _grad_c[_qp]; // * _grad_test[_i][_qp]
34 }
const VariableGradient & _grad_c

Member Data Documentation

◆ _grad_c

const VariableGradient& LaplacianSplit::_grad_c
private

Definition at line 36 of file LaplacianSplit.h.

Referenced by precomputeQpResidual().

◆ _var_c

const unsigned int LaplacianSplit::_var_c
private

Definition at line 35 of file LaplacianSplit.h.

Referenced by computeQpOffDiagJacobian().


The documentation for this class was generated from the following files: