www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADGrainGrowth< compute_stage > Class Template Reference

This kernel calculates the residual for grain growth for a single phase, poly-crystal system. More...

#include <ADGrainGrowth.h>

Inheritance diagram for ADGrainGrowth< compute_stage >:
[legend]

Public Member Functions

 ADGrainGrowth (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual ADReal computeDFDOP ()
 Compute the derivative of the bulk free energy w.r.t the order parameter. More...
 
const ADMaterialProperty (Real) &_gamma
 
 usingAllenCahnBaseMembers (Real)
 
virtual ADReal precomputeQpResidual ()
 

Protected Attributes

 usingGrainGrowthBaseMembers
 
const unsigned int _op_num
 
std::vector< const ADVariableValue * > _vals
 
 usingKernelValueMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADGrainGrowth< compute_stage >

This kernel calculates the residual for grain growth for a single phase, poly-crystal system.

A single material property gamma_asymm is used for the prefactor of the cross-terms between order parameters. This is the AD version of ACGrGrPoly

Definition at line 20 of file ADGrainGrowth.h.

Constructor & Destructor Documentation

◆ ADGrainGrowth()

template<ComputeStage compute_stage>
ADGrainGrowth< compute_stage >::ADGrainGrowth ( const InputParameters &  parameters)

Definition at line 20 of file ADGrainGrowth.C.

21  : ADGrainGrowthBase<compute_stage>(parameters), _gamma(getADMaterialProperty<Real>("gamma_asymm"))
22 {
23 }

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage>
const ADGrainGrowth< compute_stage >::ADMaterialProperty ( Real  ) &
protected

◆ computeDFDOP()

template<ComputeStage compute_stage>
ADReal ADGrainGrowth< compute_stage >::computeDFDOP ( )
protectedvirtual

Compute the derivative of the bulk free energy w.r.t the order parameter.

Implements ADAllenCahnBase< compute_stage, Real >.

Definition at line 27 of file ADGrainGrowth.C.

28 {
29  // Sum all other order parameters
30  ADReal SumEtaj = 0.0;
31  for (unsigned int i = 0; i < _op_num; ++i)
32  SumEtaj += (*_vals[i])[_qp] * (*_vals[i])[_qp];
33 
34  return _mu[_qp] * (_u[_qp] * _u[_qp] * _u[_qp] - _u[_qp] + 2.0 * _gamma[_qp] * _u[_qp] * SumEtaj);
35 }

◆ precomputeQpResidual()

ADReal ADAllenCahnBase< compute_stage, Real >::precomputeQpResidual ( )
protectedvirtualinherited

Definition at line 64 of file ADAllenCahnBase.h.

65 {
66  return _prop_L[_qp] * computeDFDOP();
67 }

◆ usingAllenCahnBaseMembers()

template<ComputeStage compute_stage>
ADGrainGrowthBase< compute_stage >::usingAllenCahnBaseMembers ( Real  )
protectedinherited

◆ validParams()

static InputParameters ADAllenCahnBase< compute_stage, Real >::validParams ( )
staticinherited

Member Data Documentation

◆ _op_num

template<ComputeStage compute_stage>
const unsigned int ADGrainGrowthBase< compute_stage >::_op_num
protectedinherited

◆ _vals

template<ComputeStage compute_stage>
std::vector<const ADVariableValue *> ADGrainGrowthBase< compute_stage >::_vals
protectedinherited

◆ usingGrainGrowthBaseMembers

template<ComputeStage compute_stage>
ADGrainGrowth< compute_stage >::usingGrainGrowthBaseMembers
protected

Definition at line 41 of file ADGrainGrowth.h.

◆ usingKernelValueMembers

ADAllenCahnBase< compute_stage, Real >::usingKernelValueMembers
protectedinherited

Definition at line 51 of file ADAllenCahnBase.h.


The documentation for this class was generated from the following files:
ADGrainGrowthBase::_vals
std::vector< const ADVariableValue * > _vals
Definition: ADGrainGrowthBase.h:40
ADAllenCahnBase< compute_stage, Real >::computeDFDOP
virtual ADReal computeDFDOP()=0
Compute the derivative of the bulk free energy w.r.t the order parameter.
ADGrainGrowthBase::_op_num
const unsigned int _op_num
Definition: ADGrainGrowthBase.h:39
ADGrainGrowthBase
This is the base class for kernels that calculate the residual for grain growth.
Definition: ADGrainGrowthBase.h:22