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

SplitCHWRes creates the residual for the chemical potential in the split form of the Cahn-Hilliard equation with a scalar (isotropic) mobility. More...

#include <SplitCHWRes.h>

Inheritance diagram for SplitCHWRes:
[legend]

Public Member Functions

 SplitCHWRes (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Protected Attributes

const MaterialPropertyName _mob_name
 
const MaterialProperty< Real > & _mob
 
std::vector< const MaterialProperty< Real > *> _dmobdarg
 

Detailed Description

SplitCHWRes creates the residual for the chemical potential in the split form of the Cahn-Hilliard equation with a scalar (isotropic) mobility.

Definition at line 20 of file SplitCHWRes.h.

Constructor & Destructor Documentation

◆ SplitCHWRes()

SplitCHWRes::SplitCHWRes ( const InputParameters &  parameters)

Definition at line 24 of file SplitCHWRes.C.

Member Function Documentation

◆ computeQpJacobian()

Real SplitCHWResBase< Real >::computeQpJacobian ( )
protectedvirtualinherited

Definition at line 73 of file SplitCHWResBase.h.

74 {
75  return _mob[_qp] * _grad_phi[_j][_qp] * _grad_test[_i][_qp];
76 }
const MaterialProperty< Real > & _mob

◆ computeQpOffDiagJacobian()

Real SplitCHWResBase< Real >::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtualinherited

Definition at line 80 of file SplitCHWResBase.h.

81 {
82  // get the coupled variable jvar is referring to
83  const unsigned int cvar = mapJvarToCvar(jvar);
84 
85  return (*_dmobdarg[cvar])[_qp] * _phi[_j][_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
86 }
std::vector< const MaterialProperty< Real > *> _dmobdarg

◆ computeQpResidual()

Real SplitCHWResBase< Real >::computeQpResidual ( )
protectedvirtualinherited

Definition at line 66 of file SplitCHWResBase.h.

67 {
68  return _mob[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
69 }
const MaterialProperty< Real > & _mob

Member Data Documentation

◆ _dmobdarg

std::vector<const MaterialProperty<Real > *> SplitCHWResBase< Real >::_dmobdarg
protectedinherited

Definition at line 44 of file SplitCHWResBase.h.

◆ _mob

const MaterialProperty<Real >& SplitCHWResBase< Real >::_mob
protectedinherited

Definition at line 42 of file SplitCHWResBase.h.

◆ _mob_name

const MaterialPropertyName SplitCHWResBase< Real >::_mob_name
protectedinherited

Definition at line 41 of file SplitCHWResBase.h.


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