https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LaplacianSplit.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#include "LaplacianSplit.h"
11
13
16{
19 "Split with a variable that holds the Laplacian of a phase field variable.");
20 params.addRequiredCoupledVar("c", "Field variable to take the Laplacian of");
21 return params;
22}
23
25 : KernelGrad(parameters), _var_c(coupled("c")), _grad_c(coupledGradient("c"))
26{
27}
28
29RealGradient
31{
32 return _grad_c[_qp]; // * _grad_test[_i][_qp]
33}
34
35RealGradient
37{
38 return 0.0;
39}
40
41Real
43{
44 if (jvar == _var_c)
45 return _grad_phi[_j][_qp] * _grad_test[_i][_qp];
46
47 return 0.0;
48}
registerMooseObject("PhaseFieldApp", LaplacianSplit)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _j
unsigned int _i
static InputParameters validParams()
const VariablePhiGradient & _grad_phi
const VariableTestGradient & _grad_test
Split with a variable that holds the Laplacian of the phase field.
LaplacianSplit(const InputParameters &parameters)
static InputParameters validParams()
virtual RealGradient precomputeQpJacobian()
virtual RealGradient precomputeQpResidual()
const unsigned int _var_c
const VariableGradient & _grad_c
virtual Real computeQpOffDiagJacobian(unsigned int jvar)