https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
24class MatGradSquareCoupled : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
25{
26public:
28
29 MatGradSquareCoupled(const InputParameters & parameters);
30 virtual void initialSetup();
31
32protected:
33 virtual Real computeQpResidual();
34 virtual Real computeQpJacobian();
35 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
36
37private:
39 const unsigned int _elec_potential_var;
40
43 std::vector<const MaterialProperty<Real> *> _dprefactor_darg;
44};
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _prefactor
const VariableGradient & _grad_elec_potential
std::vector< const MaterialProperty< Real > * > _dprefactor_darg
const unsigned int _elec_potential_var
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
static InputParameters validParams()
const MaterialProperty< Real > & _dprefactor_dphi
virtual Real computeQpResidual()
VariableGradientTempl< false > VariableGradient