www.mooseframework.org
Public Member Functions | Protected Types | Protected Member Functions | List of all members
SplitCHBase Class Reference

The couple, SplitCHBase and SplitCHWRes, splits the CH equation by replacing chemical potential with 'w'. More...

#include <SplitCHBase.h>

Inheritance diagram for SplitCHBase:
[legend]

Public Member Functions

 SplitCHBase (const InputParameters &parameters)
 

Protected Types

enum  PFFunctionType { Jacobian, Residual }
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 
virtual Real computeDFDC (PFFunctionType type)
 
virtual Real computeDEDC (PFFunctionType type)
 

Detailed Description

The couple, SplitCHBase and SplitCHWRes, splits the CH equation by replacing chemical potential with 'w'.

Definition at line 22 of file SplitCHBase.h.

Member Enumeration Documentation

◆ PFFunctionType

Enumerator
Jacobian 
Residual 

Definition at line 28 of file SplitCHBase.h.

Constructor & Destructor Documentation

◆ SplitCHBase()

SplitCHBase::SplitCHBase ( const InputParameters &  parameters)

Definition at line 21 of file SplitCHBase.C.

21 : Kernel(parameters) {}

Member Function Documentation

◆ computeDEDC()

Real SplitCHBase::computeDEDC ( PFFunctionType  type)
protectedvirtual

Definition at line 69 of file SplitCHBase.C.

Referenced by computeQpJacobian(), and computeQpResidual().

69 { return 0.0; }

◆ computeDFDC()

Real SplitCHBase::computeDFDC ( PFFunctionType  type)
protectedvirtual

Reimplemented in SplitCHMath.

Definition at line 67 of file SplitCHBase.C.

Referenced by computeQpJacobian(), and computeQpResidual().

67 { return 0.0; }

◆ computeQpJacobian()

Real SplitCHBase::computeQpJacobian ( )
protectedvirtual

Reimplemented in SplitCHCRes.

Definition at line 51 of file SplitCHBase.C.

Referenced by SplitCHCRes::computeQpJacobian().

52 {
53  Real df_prime_zero_dc = computeDFDC(Jacobian);
54  Real de_prime_dc = computeDEDC(Jacobian);
55 
56  Real jacobian = (df_prime_zero_dc + de_prime_dc) * _test[_i][_qp];
57 
58  return jacobian;
59 }
virtual Real computeDEDC(PFFunctionType type)
Definition: SplitCHBase.C:69
virtual Real computeDFDC(PFFunctionType type)
Definition: SplitCHBase.C:67

◆ computeQpOffDiagJacobian()

Real SplitCHBase::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Reimplemented in SplitCHCRes.

Definition at line 62 of file SplitCHBase.C.

63 {
64  return 0.0;
65 }

◆ computeQpResidual()

Real SplitCHBase::computeQpResidual ( )
protectedvirtual

Reimplemented in SplitCHCRes.

Definition at line 40 of file SplitCHBase.C.

Referenced by SplitCHCRes::computeQpResidual(), and KKSSplitCHCRes::computeQpResidual().

41 {
42  Real f_prime_zero = computeDFDC(Residual);
43  Real e_prime = computeDEDC(Residual);
44 
45  Real residual = (f_prime_zero + e_prime) * _test[_i][_qp];
46 
47  return residual;
48 }
virtual Real computeDEDC(PFFunctionType type)
Definition: SplitCHBase.C:69
virtual Real computeDFDC(PFFunctionType type)
Definition: SplitCHBase.C:67

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