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

This kernel adds to the residual a contribution of \( -L*v \) where \( L \) is a material property and \( v \) is a variable (nonlinear or coupled). More...

#include <ADMatReaction.h>

Inheritance diagram for ADMatReaction< compute_stage >:
[legend]

Public Member Functions

 ADMatReaction (const InputParameters &parameters)
 

Protected Member Functions

virtual ADReal computeQpResidual ()
 
const ADMaterialProperty (Real) &_mob
 Reaction rate. More...
 

Protected Attributes

const ADVariableValue & _v
 Kernel variable (can be nonlinear or coupled variable) (For constrained Allen-Cahn problems, v = lambda where lambda is the Lagrange multiplier) More...
 
 usingKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADMatReaction< compute_stage >

This kernel adds to the residual a contribution of \( -L*v \) where \( L \) is a material property and \( v \) is a variable (nonlinear or coupled).

Definition at line 16 of file ADMatReaction.h.

Constructor & Destructor Documentation

◆ ADMatReaction()

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

Definition at line 26 of file ADMatReaction.C.

27  : ADKernel<compute_stage>(parameters),
28  _v(isCoupled("v") ? adCoupledValue("v") : _u),
29  _mob(getADMaterialProperty<Real>("mob_name"))
30 {
31 }

Member Function Documentation

◆ ADMaterialProperty()

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

Reaction rate.

◆ computeQpResidual()

template<ComputeStage compute_stage>
ADReal ADMatReaction< compute_stage >::computeQpResidual ( )
protectedvirtual

Definition at line 35 of file ADMatReaction.C.

36 {
37  return -_mob[_qp] * _test[_i][_qp] * _v[_qp];
38 }

Member Data Documentation

◆ _v

template<ComputeStage compute_stage>
const ADVariableValue& ADMatReaction< compute_stage >::_v
protected

Kernel variable (can be nonlinear or coupled variable) (For constrained Allen-Cahn problems, v = lambda where lambda is the Lagrange multiplier)

Definition at line 38 of file ADMatReaction.h.

◆ usingKernelMembers

template<ComputeStage compute_stage>
ADMatReaction< compute_stage >::usingKernelMembers
protected

Definition at line 43 of file ADMatReaction.h.


The documentation for this class was generated from the following files:
ADMatReaction::_v
const ADVariableValue & _v
Kernel variable (can be nonlinear or coupled variable) (For constrained Allen-Cahn problems,...
Definition: ADMatReaction.h:38