https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ACInterface.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
20class ACInterface : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
21{
22public:
24
25 ACInterface(const InputParameters & parameters);
26 virtual void initialSetup();
27
28protected:
29 virtual Real computeQpResidual();
30 virtual Real computeQpJacobian();
31 virtual Real computeQpOffDiagJacobian(unsigned int jvar);
32
33 RealGradient gradL();
34 RealGradient gradKappa();
35
37 RealGradient nablaLPsi();
38
40 RealGradient kappaNablaLPsi();
41
46
48 const bool _variable_L;
49
54
57
59 std::vector<const MaterialProperty<Real> *> _dLdarg;
60 std::vector<const MaterialProperty<Real> *> _d2Ldargdop;
61 std::vector<std::vector<const MaterialProperty<Real> *>> _d2Ldarg2;
63
65 std::vector<const MaterialProperty<Real> *> _dkappadarg;
66
68 std::vector<const VariableGradient *> _gradarg;
69};
Compute the Allen-Cahn interface term with the weak form residual .
Definition ACInterface.h:21
const bool _variable_L
flag set if L is a function of non-linear variables in args
Definition ACInterface.h:48
RealGradient kappaNablaLPsi()
the term
Definition ACInterface.C:94
RealGradient gradKappa()
std::vector< const VariableGradient * > _gradarg
Gradients for all coupled variables.
Definition ACInterface.h:68
RealGradient gradL()
Definition ACInterface.C:73
const MaterialProperty< Real > & _dLdop
Mobility derivatives w.r.t. order parameter.
Definition ACInterface.h:51
const MaterialProperty< Real > & _d2Ldop2
Definition ACInterface.h:52
std::vector< const MaterialProperty< Real > * > _dkappadarg
kappa derivative w.r.t. other coupled variables
Definition ACInterface.h:65
std::vector< const MaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
Definition ACInterface.h:59
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
static InputParameters validParams()
Definition ACInterface.C:15
const MaterialProperty< Real > & _L
Mobility.
Definition ACInterface.h:43
virtual void initialSetup()
Definition ACInterface.C:66
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
Definition ACInterface.h:60
RealGradient nablaLPsi()
the term
Definition ACInterface.C:82
std::vector< std::vector< const MaterialProperty< Real > * > > _d2Ldarg2
Definition ACInterface.h:61
const MaterialProperty< Real > & _dkappadop
kappa derivative w.r.t. order parameter
Definition ACInterface.h:56
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< Real > & _kappa
Interfacial parameter.
Definition ACInterface.h:45