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 19 of file SplitCHCRes.h.

Member Enumeration Documentation

enum SplitCHBase::PFFunctionType
protectedinherited
Enumerator
Jacobian 
Residual 

Definition at line 25 of file SplitCHBase.h.

Constructor & Destructor Documentation

SplitCHCRes::SplitCHCRes ( const InputParameters &  parameters)

Definition at line 20 of file SplitCHCRes.C.

21  : SplitCHBase(parameters),
22  _kappa(getMaterialProperty<Real>("kappa_name")),
23  _w_var(coupled("w")),
24  _w(coupledValue("w"))
25 {
26 }
SplitCHBase(const InputParameters &parameters)
Definition: SplitCHBase.C:18
const MaterialProperty< Real > & _kappa
Definition: SplitCHCRes.h:29
unsigned int _w_var
Definition: SplitCHCRes.h:30
const VariableValue & _w
Definition: SplitCHCRes.h:31

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 SplitCHBase::computeDFDC ( PFFunctionType  type)
protectedvirtualinherited

Reimplemented in SplitCHMath.

Definition at line 64 of file SplitCHBase.C.

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

64 { return 0.0; }
Real SplitCHCRes::computeQpJacobian ( )
protectedvirtual

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)
protectedvirtual

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

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
protected

Definition at line 29 of file SplitCHCRes.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const VariableValue& SplitCHCRes::_w
protected

Definition at line 31 of file SplitCHCRes.h.

Referenced by computeQpResidual().

unsigned int SplitCHCRes::_w_var
protected

Definition at line 30 of file SplitCHCRes.h.

Referenced by computeQpOffDiagJacobian().


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