https://mooseframework.inl.gov
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 
20 class ACInterface : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
21 {
22 public:
24 
26  virtual void initialSetup();
27 
28 protected:
29  virtual Real computeQpResidual();
30  virtual Real computeQpJacobian();
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
32 
35 
38 
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 };
static InputParameters validParams()
Definition: ACInterface.C:15
std::vector< const VariableGradient * > _gradarg
Gradients for all coupled variables.
Definition: ACInterface.h:68
RealGradient gradKappa()
virtual Real computeQpJacobian()
Definition: ACInterface.C:112
const MaterialProperty< Real > & _L
Mobility.
Definition: ACInterface.h:43
const bool _variable_L
flag set if L is a function of non-linear variables in args
Definition: ACInterface.h:48
RealGradient nablaLPsi()
the term
Definition: ACInterface.C:88
RealGradient kappaNablaLPsi()
the term
Definition: ACInterface.C:100
ACInterface(const InputParameters &parameters)
Definition: ACInterface.C:29
const MaterialProperty< Real > & _dLdop
Mobility derivatives w.r.t. order parameter.
Definition: ACInterface.h:51
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
Definition: ACInterface.h:60
std::vector< const MaterialProperty< Real > * > _dkappadarg
kappa derivative w.r.t. other coupled variables
Definition: ACInterface.h:65
Compute the Allen-Cahn interface term with the weak form residual .
Definition: ACInterface.h:20
virtual void initialSetup()
Definition: ACInterface.C:72
std::vector< const MaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
Definition: ACInterface.h:59
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
const MaterialProperty< Real > & _kappa
Interfacial parameter.
Definition: ACInterface.h:45
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MaterialProperty< Real > & _d2Ldop2
Definition: ACInterface.h:52
virtual Real computeQpResidual()
Definition: ACInterface.C:106
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: ACInterface.C:134
RealGradient gradL()
Definition: ACInterface.C:79