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

The pair, ADSplitCHCRes and ADSplitCHWRes, splits the Cahn-Hilliard equation by replacing chemical potential with 'w'. More...

#include <ADSplitCHCRes.h>

Inheritance diagram for ADSplitCHCRes< compute_stage >:
[legend]

Public Member Functions

 ADSplitCHCRes (const InputParameters &parameters)
 

Protected Member Functions

virtual ADReal computeQpResidual ()
 
const ADMaterialProperty (Real) &_kappa
 
virtual ADReal computeDFDC ()
 

Protected Attributes

const ADVariableValue & _w
 
 usingSplitCHBaseMembers
 
 usingKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADSplitCHCRes< compute_stage >

The pair, ADSplitCHCRes and ADSplitCHWRes, splits the Cahn-Hilliard equation by replacing chemical potential with 'w'.

Definition at line 22 of file ADSplitCHCRes.h.

Constructor & Destructor Documentation

◆ ADSplitCHCRes()

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

Definition at line 20 of file ADSplitCHCRes.C.

21  : ADSplitCHBase<compute_stage>(parameters),
22  _kappa(adGetADMaterialProperty<Real>("kappa_name")),
23  _w(adCoupledValue("w"))
24 {
25 }
const ADVariableValue & _w
Definition: ADSplitCHCRes.h:40
The pair, ADSplitCHCRes and ADSplitCHWRes, splits the Cahn-Hilliard equation by replacing chemical po...
Definition: ADSplitCHBase.h:22

Member Function Documentation

◆ ADMaterialProperty()

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

◆ computeDFDC()

template<ComputeStage compute_stage>
ADReal ADSplitCHBase< compute_stage >::computeDFDC ( )
protectedvirtualinherited

Reimplemented in ADSplitCHParsed< compute_stage >.

Definition at line 31 of file ADSplitCHBase.C.

32 {
33  return 0.0;
34 }

◆ computeQpResidual()

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

Reimplemented from ADSplitCHBase< compute_stage >.

Definition at line 29 of file ADSplitCHCRes.C.

30 {
32 
33  residual += -_w[_qp] * _test[_i][_qp];
34  residual += _kappa[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
35 
36  return residual;
37 }
virtual ADReal computeQpResidual()
Definition: ADSplitCHBase.C:24
const ADVariableValue & _w
Definition: ADSplitCHCRes.h:40

Member Data Documentation

◆ _w

template<ComputeStage compute_stage>
const ADVariableValue& ADSplitCHCRes< compute_stage >::_w
protected

Definition at line 40 of file ADSplitCHCRes.h.

◆ usingKernelMembers

template<ComputeStage compute_stage>
ADSplitCHBase< compute_stage >::usingKernelMembers
protectedinherited

Definition at line 40 of file ADSplitCHBase.h.

◆ usingSplitCHBaseMembers

template<ComputeStage compute_stage>
ADSplitCHCRes< compute_stage >::usingSplitCHBaseMembers
protected

Definition at line 42 of file ADSplitCHCRes.h.


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