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

Cahn-Hilliard Kernel implementing the free energy f = 1/4(1-c^2)^2, such that grad df/dc = (3 c^2 -1) grad_c. More...

#include <CHMath.h>

Inheritance diagram for CHMath:
[legend]

Public Member Functions

 CHMath (const InputParameters &parameters)
 
virtual void initialSetup ()
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Types

enum  PFFunctionType
 

Protected Member Functions

virtual RealGradient computeGradDFDCons (PFFunctionType type)
 
virtual RealGradient precomputeQpResidual ()
 
virtual RealGradient precomputeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Protected Attributes

const MaterialProperty< Real > & _M
 Mobility. More...
 
const MaterialProperty< Real > & _dMdc
 Mobility derivative w.r.t. concentration. More...
 
std::vector< const MaterialProperty< Real > * > _dMdarg
 Mobility derivative w.r.t coupled variables. More...
 

Detailed Description

Cahn-Hilliard Kernel implementing the free energy f = 1/4(1-c^2)^2, such that grad df/dc = (3 c^2 -1) grad_c.

Most of the Cahn-Hilliard equation is implemented in CHBulk and CHInterface. This kernel inherents from CHBulk and implements a simple polynomial double well to model spinodal decomposition. See M.R. Tonks et al. / Computational Materials Science 51 (2012) 20-29, Eqs 11 and 12.

Definition at line 25 of file CHMath.h.

Member Enumeration Documentation

enum CHBulk::PFFunctionType
protectedinherited

Definition at line 36 of file CHBulk.h.

Constructor & Destructor Documentation

CHMath::CHMath ( const InputParameters &  parameters)

Definition at line 19 of file CHMath.C.

19 : CHBulk<Real>(parameters) {}

Member Function Documentation

RealGradient CHMath::computeGradDFDCons ( PFFunctionType  type)
protectedvirtual

Implements CHBulk< Real >.

Definition at line 22 of file CHMath.C.

23 {
24  switch (type)
25  {
26  case Residual:
27  return 3 * _u[_qp] * _u[_qp] * _grad_u[_qp] - _grad_u[_qp]; // return Residual value
28 
29  case Jacobian:
30  return 6 * _u[_qp] * _phi[_j][_qp] * _grad_u[_qp] +
31  3 * _u[_qp] * _u[_qp] * _grad_phi[_j][_qp] -
32  _grad_phi[_j][_qp]; // return Jacobian value
33  }
34 
35  mooseError("Invalid type passed in");
36 }
virtual Real CHBulk< Real >::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtualinherited

Reimplemented in KKSCHBulk, and CahnHilliardBase< Real >.

virtual void CHBulk< Real >::initialSetup ( )
virtualinherited

Reimplemented in CahnHilliardBase< Real >.

virtual RealGradient CHBulk< Real >::precomputeQpJacobian ( )
protectedvirtualinherited
virtual RealGradient CHBulk< Real >::precomputeQpResidual ( )
protectedvirtualinherited
static InputParameters CHBulk< Real >::validParams ( )
staticinherited

Member Data Documentation

std::vector<const MaterialProperty<Real > *> CHBulk< Real >::_dMdarg
protectedinherited

Mobility derivative w.r.t coupled variables.

Definition at line 51 of file CHBulk.h.

const MaterialProperty<Real >& CHBulk< Real >::_dMdc
protectedinherited

Mobility derivative w.r.t. concentration.

Definition at line 48 of file CHBulk.h.

const MaterialProperty<Real >& CHBulk< Real >::_M
protectedinherited

Mobility.

Definition at line 45 of file CHBulk.h.


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