www.mooseframework.org
phase_field
src
kernels
ADGrainGrowthBase.C
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
#include "
ADGrainGrowthBase.h
"
11
12
defineADValidParams
(
ADGrainGrowthBase
,
13
ADAllenCahnBase
,
14
params.addRequiredCoupledVar(
15
"v"
,
"Array of coupled order parameter names for other order parameters"
););
16
17
template
<ComputeStage compute_stage>
18
ADGrainGrowthBase<compute_stage>::ADGrainGrowthBase
(
const
InputParameters & parameters)
19
:
ADAllenCahnBase
<compute_stage, Real>(parameters),
20
_op_num(coupledComponents(
"v"
)),
21
_vals(_op_num),
22
_mu(getADMaterialProperty<Real>(
"mu"
))
23
{
24
// Loop through grains and load coupled variables into the arrays
25
for
(
unsigned
int
i = 0; i <
_op_num
; ++i)
26
_vals
[i] = &adCoupledValue(
"v"
, i);
27
}
28
29
adBaseClass
(
ADGrainGrowthBase
);
ADGrainGrowthBase::_vals
std::vector< const ADVariableValue * > _vals
Definition:
ADGrainGrowthBase.h:40
adBaseClass
adBaseClass(ADGrainGrowthBase)
ADAllenCahnBase
This is the Allen-Cahn equation base class that implements the bulk or local energy term of the equat...
Definition:
ADAllenCahnBase.h:22
ADGrainGrowthBase::_op_num
const unsigned int _op_num
Definition:
ADGrainGrowthBase.h:39
ADGrainGrowthBase::ADGrainGrowthBase
ADGrainGrowthBase(const InputParameters ¶meters)
Definition:
ADGrainGrowthBase.C:18
defineADValidParams
defineADValidParams(ADGrainGrowthBase, ADAllenCahnBase, params.addRequiredCoupledVar("v", "Array of coupled order parameter names for other order parameters");)
ADGrainGrowthBase
This is the base class for kernels that calculate the residual for grain growth.
Definition:
ADGrainGrowthBase.h:22
ADGrainGrowthBase.h
Generated on Sat Jan 25 2020 12:04:40 for www.mooseframework.org by
1.8.16