https://mooseframework.inl.gov
MatGradSquareCoupled.h
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 #pragma once
11 
12 #include "Kernel.h"
13 #include "JvarMapInterface.h"
15 
16 // Forward Declarations
17 
18 /*
19  * This kernel calculates the prefactor * grad_psi * grad_psi in Allen-Cahn equation for phase field
20  * modeling of oxidation psi is the electric field variable. prefactor = 0.5 * d_permitivity/d_phi,
21  * described in [Materials] using [DerivativeParsedMaterials]
22  */
23 
24 class MatGradSquareCoupled : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
25 {
26 public:
28 
30  virtual void initialSetup();
31 
32 protected:
33  virtual Real computeQpResidual();
34  virtual Real computeQpJacobian();
35  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
36 
37 private:
39  const unsigned int _elec_potential_var;
40 
43  std::vector<const MaterialProperty<Real> *> _dprefactor_darg;
44 };
OutputTools< Real >::VariableGradient VariableGradient
std::vector< const MaterialProperty< Real > * > _dprefactor_darg
const VariableGradient & _grad_elec_potential
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< Real > & _prefactor
virtual Real computeQpJacobian()
virtual Real computeQpResidual()
const unsigned int _elec_potential_var
const MaterialProperty< Real > & _dprefactor_dphi
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
MatGradSquareCoupled(const InputParameters &parameters)