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 22 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 47 of file ADSplitCHWResBase.h.

48  : ADKernelGrad<compute_stage>(parameters),
49  _mob_name(getParam<MaterialPropertyName>("mob_name")),
50  _mob(getADMaterialProperty<T>("mob_name"))
51 {
52 }

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 56 of file ADSplitCHWResBase.h.

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

Member Data Documentation

◆ _mob_name

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

Definition at line 40 of file ADSplitCHWResBase.h.

◆ usingKernelGradMembers

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

Definition at line 43 of file ADSplitCHWResBase.h.


The documentation for this class was generated from the following file:
ADSplitCHWResBase::_mob_name
const MaterialPropertyName _mob_name
Definition: ADSplitCHWResBase.h:40