www.mooseframework.org
ACInterface.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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"
14 #include "DerivativeMaterialInterface.h"
15 
16 class ACInterface;
17 
18 template <>
19 InputParameters validParams<ACInterface>();
20 
25 class ACInterface : public DerivativeMaterialInterface<JvarMapKernelInterface<Kernel>>
26 {
27 public:
28  ACInterface(const InputParameters & parameters);
29  virtual void initialSetup();
30 
31 protected:
32  virtual Real computeQpResidual();
33  virtual Real computeQpJacobian();
34  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
35 
38 
41 
44 
46  const MaterialProperty<Real> & _L;
48  const MaterialProperty<Real> & _kappa;
49 
51  const bool _variable_L;
52 
54  const MaterialProperty<Real> & _dLdop;
55  const MaterialProperty<Real> & _d2Ldop2;
57 
59  const MaterialProperty<Real> & _dkappadop;
60 
62  const unsigned int _nvar;
63 
65  std::vector<const MaterialProperty<Real> *> _dLdarg;
66  std::vector<const MaterialProperty<Real> *> _d2Ldargdop;
67  std::vector<std::vector<const MaterialProperty<Real> *>> _d2Ldarg2;
69 
71  std::vector<const MaterialProperty<Real> *> _dkappadarg;
72 
74  std::vector<const VariableGradient *> _gradarg;
75 };
76 
ACInterface::_gradarg
std::vector< const VariableGradient * > _gradarg
Gradients for all coupled variables.
Definition: ACInterface.h:74
ACInterface::computeQpJacobian
virtual Real computeQpJacobian()
Definition: ACInterface.C:110
ACInterface::_variable_L
const bool _variable_L
flag set if L is a function of non-linear variables in args
Definition: ACInterface.h:51
ACInterface::kappaNablaLPsi
RealGradient kappaNablaLPsi()
the term
Definition: ACInterface.C:98
ACInterface::gradKappa
RealGradient gradKappa()
libMesh::RealGradient
VectorValue< Real > RealGradient
Definition: GrainForceAndTorqueInterface.h:17
ACInterface::nablaLPsi
RealGradient nablaLPsi()
the term
Definition: ACInterface.C:86
ACInterface::_L
const MaterialProperty< Real > & _L
Mobility.
Definition: ACInterface.h:46
validParams< ACInterface >
InputParameters validParams< ACInterface >()
Definition: ACInterface.C:16
ACInterface::ACInterface
ACInterface(const InputParameters &parameters)
Definition: ACInterface.C:31
ACInterface::_nvar
const unsigned int _nvar
number of coupled variables
Definition: ACInterface.h:62
ACInterface::_d2Ldargdop
std::vector< const MaterialProperty< Real > * > _d2Ldargdop
Definition: ACInterface.h:66
ACInterface::_kappa
const MaterialProperty< Real > & _kappa
Interfacial parameter.
Definition: ACInterface.h:48
ACInterface::_dLdarg
std::vector< const MaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
Definition: ACInterface.h:65
ACInterface::_d2Ldarg2
std::vector< std::vector< const MaterialProperty< Real > * > > _d2Ldarg2
Definition: ACInterface.h:67
ACInterface::_dLdop
const MaterialProperty< Real > & _dLdop
Mobility derivatives w.r.t. order parameter.
Definition: ACInterface.h:54
ACInterface::initialSetup
virtual void initialSetup()
Definition: ACInterface.C:70
ACInterface::_dkappadarg
std::vector< const MaterialProperty< Real > * > _dkappadarg
kappa derivative w.r.t. other coupled variables
Definition: ACInterface.h:71
ACInterface
Compute the Allen-Cahn interface term with the weak form residual .
Definition: ACInterface.h:25
ACInterface::_dkappadop
const MaterialProperty< Real > & _dkappadop
kappa derivative w.r.t. order parameter
Definition: ACInterface.h:59
ACInterface::computeQpResidual
virtual Real computeQpResidual()
Definition: ACInterface.C:104
ACInterface::gradL
RealGradient gradL()
Definition: ACInterface.C:77
ACInterface::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: ACInterface.C:132
ACInterface::_d2Ldop2
const MaterialProperty< Real > & _d2Ldop2
Definition: ACInterface.h:55