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

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

#include <SplitCHMath.h>

Inheritance diagram for SplitCHMath:
[legend]

Public Member Functions

 SplitCHMath (const InputParameters &parameters)
 

Protected Types

enum  PFFunctionType { Jacobian, Residual }
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

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

Definition at line 19 of file SplitCHMath.h.

Member Enumeration Documentation

enum SplitCHBase::PFFunctionType
protectedinherited
Enumerator
Jacobian 
Residual 

Definition at line 25 of file SplitCHBase.h.

Constructor & Destructor Documentation

SplitCHMath::SplitCHMath ( const InputParameters &  parameters)

Definition at line 19 of file SplitCHMath.C.

19 : SplitCHCRes(parameters) {}
SplitCHCRes(const InputParameters &parameters)
Definition: SplitCHCRes.C:20

Member Function Documentation

Real SplitCHBase::computeDEDC ( PFFunctionType  type)
protectedvirtualinherited

Definition at line 66 of file SplitCHBase.C.

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

66 { return 0.0; }
Real SplitCHMath::computeDFDC ( PFFunctionType  type)
protectedvirtual

Reimplemented from SplitCHBase.

Definition at line 22 of file SplitCHMath.C.

23 {
24  switch (type)
25  {
26  case Residual:
27  return _u[_qp] * _u[_qp] * _u[_qp] - _u[_qp]; // return Residual value
28 
29  case Jacobian:
30  return (3.0 * _u[_qp] * _u[_qp] - 1.0) * _phi[_j][_qp]; // return Jacobian value
31  }
32 
33  mooseError("Invalid type passed in");
34 }
Real SplitCHCRes::computeQpJacobian ( )
protectedvirtualinherited

Reimplemented from SplitCHBase.

Definition at line 57 of file SplitCHCRes.C.

58 {
59  Real jacobian = SplitCHBase::computeQpJacobian(); //(df_prime_zero_dc+de_prime_dc)*_test[_i][_qp];
60  // from SplitCHBase
61 
62  jacobian += _kappa[_qp] * _grad_phi[_j][_qp] * _grad_test[_i][_qp];
63 
64  return jacobian;
65 }
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:29
virtual Real computeQpJacobian()
Definition: SplitCHBase.C:48
Real SplitCHCRes::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtualinherited

Reimplemented from SplitCHBase.

Definition at line 68 of file SplitCHCRes.C.

Referenced by SplitCHParsed::computeQpOffDiagJacobian().

69 {
70  if (jvar == _w_var)
71  {
72  return -_phi[_j][_qp] * _test[_i][_qp];
73  }
74 
75  return 0.0;
76 }
unsigned int _w_var
Definition: SplitCHCRes.h:30
Real SplitCHCRes::computeQpResidual ( )
protectedvirtualinherited

Reimplemented from SplitCHBase.

Definition at line 45 of file SplitCHCRes.C.

46 {
47  Real residual =
48  SplitCHBase::computeQpResidual(); //(f_prime_zero+e_prime)*_test[_i][_qp] from SplitCHBase
49 
50  residual += -_w[_qp] * _test[_i][_qp];
51  residual += _kappa[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
52 
53  return residual;
54 }
virtual Real computeQpResidual()
Definition: SplitCHBase.C:37
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:29
const VariableValue & _w
Definition: SplitCHCRes.h:31

Member Data Documentation

const MaterialProperty<Real>& SplitCHCRes::_kappa
protectedinherited

Definition at line 29 of file SplitCHCRes.h.

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

const VariableValue& SplitCHCRes::_w
protectedinherited

Definition at line 31 of file SplitCHCRes.h.

Referenced by SplitCHCRes::computeQpResidual().

unsigned int SplitCHCRes::_w_var
protectedinherited

Definition at line 30 of file SplitCHCRes.h.

Referenced by SplitCHCRes::computeQpOffDiagJacobian().


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