https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADACInterface.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 "ADKernel.h"
14
20{
21public:
23
25
26protected:
27 virtual ADReal computeQpResidual();
28
32 const MaterialPropertyName & _name_L;
33
36
38 const bool _variable_L;
39
42
44 const unsigned int _nvar;
45
47 std::vector<const ADMaterialProperty<Real> *> _dLdarg;
48
50 std::vector<const ADVariableGradient *> _gradarg;
51};
DualNumber< Real, DNDerivativeType, true > ADReal
Compute the Allen-Cahn interface term with the weak form residual .
const bool _variable_L
flag set if L is a function of non-linear variables in args
const ADMaterialProperty< Real > *const _dLdop
Mobility derivative w.r.t. order parameter.
const ADMaterialProperty< Real > & _kappa
Interfacial parameter.
const unsigned int _nvar
number of coupled variables
virtual ADReal computeQpResidual()
const ADMaterialProperty< Real > & _prop_L
Mobility.
static InputParameters validParams()
std::vector< const ADMaterialProperty< Real > * > _dLdarg
Mobility derivative w.r.t. other coupled variables.
const MaterialPropertyName & _name_L
Mobility property name.
std::vector< const ADVariableGradient * > _gradarg
Gradients for all coupled variables.
const InputParameters & parameters() const