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

ADSplitCHParsed uses the Free Energy function and derivatives provided by an ADMaterial. More...

#include <ADSplitCHParsed.h>

Inheritance diagram for ADSplitCHParsed< compute_stage >:
[legend]

Public Member Functions

 ADSplitCHParsed (const InputParameters &parameters)
 

Protected Member Functions

virtual ADReal computeDFDC ()
 
const ADMaterialProperty (Real) &_dFdc
 chemical potential property More...
 
virtual ADReal computeQpResidual ()
 

Protected Attributes

const MaterialPropertyName _f_name
 name of the free energy function More...
 
 usingSplitCHCResMembers
 
const ADVariableValue & _w
 
 usingSplitCHBaseMembers
 
 usingKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADSplitCHParsed< compute_stage >

ADSplitCHParsed uses the Free Energy function and derivatives provided by an ADMaterial.

Derivatives w.r.t DOFs provided by the MOOSE AD system are required for a correct Jacobian to be formed.

Definition at line 18 of file ADSplitCHParsed.h.

Constructor & Destructor Documentation

◆ ADSplitCHParsed()

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

Definition at line 24 of file ADSplitCHParsed.C.

25  : ADSplitCHCRes<compute_stage>(parameters),
26  _f_name(adGetParam<MaterialPropertyName>("f_name")),
27  _dFdc(adGetADMaterialProperty<Real>(derivativePropertyNameFirst(_f_name, _var.name())))
28 {
29 }
The pair, ADSplitCHCRes and ADSplitCHWRes, splits the Cahn-Hilliard equation by replacing chemical po...
Definition: ADSplitCHCRes.h:22
const MaterialPropertyName _f_name
name of the free energy function

Member Function Documentation

◆ ADMaterialProperty()

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

chemical potential property

◆ computeDFDC()

template<ComputeStage compute_stage>
ADReal ADSplitCHParsed< compute_stage >::computeDFDC ( )
protectedvirtual

Reimplemented from ADSplitCHBase< compute_stage >.

Definition at line 33 of file ADSplitCHParsed.C.

34 {
35  return _dFdc[_qp];
36 }

◆ computeQpResidual()

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

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

◆ _f_name

template<ComputeStage compute_stage>
const MaterialPropertyName ADSplitCHParsed< compute_stage >::_f_name
protected

name of the free energy function

Definition at line 38 of file ADSplitCHParsed.h.

◆ _w

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

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
protectedinherited

Definition at line 42 of file ADSplitCHCRes.h.

◆ usingSplitCHCResMembers

template<ComputeStage compute_stage>
ADSplitCHParsed< compute_stage >::usingSplitCHCResMembers
protected

Definition at line 43 of file ADSplitCHParsed.h.


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