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

ADSplitCHWResBase implements the residual for the chemical potential in the split form of the Cahn-Hilliard equation in a general way that can be templated to a scalar or tensor mobility. More...

#include <ADSplitCHWResBase.h>

Inheritance diagram for ADSplitCHWResBase< compute_stage, T >:
[legend]

Public Member Functions

 ADSplitCHWResBase (const InputParameters &parameters)
 

Protected Member Functions

virtual ADRealVectorValue precomputeQpResidual ()
 
const ADMaterialProperty (T) &_mob
 

Protected Attributes

const MaterialPropertyName _mob_name
 
 usingKernelGradMembers
 

Detailed Description

template<ComputeStage compute_stage, typename T>
class ADSplitCHWResBase< compute_stage, T >

ADSplitCHWResBase implements the residual for the chemical potential in the split form of the Cahn-Hilliard equation in a general way that can be templated to a scalar or tensor mobility.

Definition at line 23 of file ADSplitCHWResBase.h.

Constructor & Destructor Documentation

◆ ADSplitCHWResBase()

template<ComputeStage compute_stage, typename T >
ADSplitCHWResBase< compute_stage, T >::ADSplitCHWResBase ( const InputParameters &  parameters)

Definition at line 48 of file ADSplitCHWResBase.h.

49  : ADKernelGrad<compute_stage>(parameters),
50  _mob_name(adGetParam<MaterialPropertyName>("mob_name")),
51  _mob(adGetADMaterialProperty<T>("mob_name"))
52 {
53 }
const MaterialPropertyName _mob_name

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage, typename T>
const ADSplitCHWResBase< compute_stage, T >::ADMaterialProperty ( ) &
protected

◆ precomputeQpResidual()

template<ComputeStage compute_stage, typename T >
ADRealVectorValue ADSplitCHWResBase< compute_stage, T >::precomputeQpResidual ( )
protectedvirtual

Definition at line 57 of file ADSplitCHWResBase.h.

58 {
59  return _mob[_qp] * _grad_u[_qp];
60 }

Member Data Documentation

◆ _mob_name

template<ComputeStage compute_stage, typename T>
const MaterialPropertyName ADSplitCHWResBase< compute_stage, T >::_mob_name
protected

Definition at line 41 of file ADSplitCHWResBase.h.

◆ usingKernelGradMembers

template<ComputeStage compute_stage, typename T>
ADSplitCHWResBase< compute_stage, T >::usingKernelGradMembers
protected

Definition at line 44 of file ADSplitCHWResBase.h.


The documentation for this class was generated from the following file: