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

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

#include <SplitCHCRes.h>

Inheritance diagram for SplitCHCRes:
[legend]

Public Member Functions

 SplitCHCRes (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)
 

Protected Attributes

const MaterialProperty< Real > & _kappa
 
unsigned int _w_var
 
const VariableValue & _w
 

Detailed Description

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

Definition at line 22 of file SplitCHCRes.h.

Member Enumeration Documentation

◆ PFFunctionType

enum SplitCHBase::PFFunctionType
protectedinherited
Enumerator
Jacobian 
Residual 

Definition at line 28 of file SplitCHBase.h.

Constructor & Destructor Documentation

◆ SplitCHCRes()

SplitCHCRes::SplitCHCRes ( const InputParameters &  parameters)

Definition at line 23 of file SplitCHCRes.C.

24  : SplitCHBase(parameters),
25  _kappa(getMaterialProperty<Real>("kappa_name")),
26  _w_var(coupled("w")),
27  _w(coupledValue("w"))
28 {
29 }
SplitCHBase(const InputParameters &parameters)
Definition: SplitCHBase.C:21
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:32
unsigned int _w_var
Definition: SplitCHCRes.h:33
const VariableValue & _w
Definition: SplitCHCRes.h:34

Member Function Documentation

◆ computeDEDC()

Real SplitCHBase::computeDEDC ( PFFunctionType  type)
protectedvirtualinherited

Definition at line 69 of file SplitCHBase.C.

Referenced by SplitCHBase::computeQpJacobian(), and SplitCHBase::computeQpResidual().

69 { return 0.0; }

◆ computeDFDC()

Real SplitCHBase::computeDFDC ( PFFunctionType  type)
protectedvirtualinherited

Reimplemented in SplitCHMath.

Definition at line 67 of file SplitCHBase.C.

Referenced by SplitCHBase::computeQpJacobian(), and SplitCHBase::computeQpResidual().

67 { return 0.0; }

◆ computeQpJacobian()

Real SplitCHCRes::computeQpJacobian ( )
protectedvirtual

Reimplemented from SplitCHBase.

Definition at line 60 of file SplitCHCRes.C.

61 {
62  Real jacobian = SplitCHBase::computeQpJacobian(); //(df_prime_zero_dc+de_prime_dc)*_test[_i][_qp];
63  // from SplitCHBase
64 
65  jacobian += _kappa[_qp] * _grad_phi[_j][_qp] * _grad_test[_i][_qp];
66 
67  return jacobian;
68 }
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:32
virtual Real computeQpJacobian()
Definition: SplitCHBase.C:51

◆ computeQpOffDiagJacobian()

Real SplitCHCRes::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Reimplemented from SplitCHBase.

Definition at line 71 of file SplitCHCRes.C.

Referenced by SplitCHParsed::computeQpOffDiagJacobian().

72 {
73  if (jvar == _w_var)
74  {
75  return -_phi[_j][_qp] * _test[_i][_qp];
76  }
77 
78  return 0.0;
79 }
unsigned int _w_var
Definition: SplitCHCRes.h:33

◆ computeQpResidual()

Real SplitCHCRes::computeQpResidual ( )
protectedvirtual

Reimplemented from SplitCHBase.

Definition at line 48 of file SplitCHCRes.C.

49 {
50  Real residual =
51  SplitCHBase::computeQpResidual(); //(f_prime_zero+e_prime)*_test[_i][_qp] from SplitCHBase
52 
53  residual += -_w[_qp] * _test[_i][_qp];
54  residual += _kappa[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
55 
56  return residual;
57 }
virtual Real computeQpResidual()
Definition: SplitCHBase.C:40
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:32
const VariableValue & _w
Definition: SplitCHCRes.h:34

Member Data Documentation

◆ _kappa

const MaterialProperty<Real>& SplitCHCRes::_kappa
protected

Definition at line 32 of file SplitCHCRes.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _w

const VariableValue& SplitCHCRes::_w
protected

Definition at line 34 of file SplitCHCRes.h.

Referenced by computeQpResidual().

◆ _w_var

unsigned int SplitCHCRes::_w_var
protected

Definition at line 33 of file SplitCHCRes.h.

Referenced by computeQpOffDiagJacobian().


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