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

#include <CHBulkPFCTrad.h>

Inheritance diagram for CHBulkPFCTrad:
[legend]

Public Member Functions

 CHBulkPFCTrad (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...
 

Private Attributes

const MaterialProperty< Real > & _C0
 
const MaterialProperty< Real > & _a
 
const MaterialProperty< Real > & _b
 

Detailed Description

Definition at line 12 of file CHBulkPFCTrad.h.

Member Enumeration Documentation

enum CHBulk::PFFunctionType
protectedinherited

Definition at line 36 of file CHBulk.h.

Constructor & Destructor Documentation

CHBulkPFCTrad::CHBulkPFCTrad ( const InputParameters &  parameters)

Definition at line 13 of file CHBulkPFCTrad.C.

14  : CHBulk<Real>(parameters),
15  _C0(getMaterialProperty<Real>("C0")),
16  _a(getMaterialProperty<Real>("a")),
17  _b(getMaterialProperty<Real>("b"))
18 {
19 }
const MaterialProperty< Real > & _a
Definition: CHBulkPFCTrad.h:22
const MaterialProperty< Real > & _b
Definition: CHBulkPFCTrad.h:23
const MaterialProperty< Real > & _C0
Definition: CHBulkPFCTrad.h:21

Member Function Documentation

RealGradient CHBulkPFCTrad::computeGradDFDCons ( PFFunctionType  type)
protectedvirtual

Implements CHBulk< Real >.

Definition at line 22 of file CHBulkPFCTrad.C.

23 {
24  Real d2fdc2 = 1.0 - _C0[_qp] - _a[_qp] * _u[_qp] + _b[_qp] * _u[_qp] * _u[_qp];
25 
26  switch (type)
27  {
28  case Residual:
29  return d2fdc2 * _grad_u[_qp];
30 
31  case Jacobian:
32  {
33  Real d3fdc3 = -_a[_qp] + 2.0 * _b[_qp] * _u[_qp];
34  return d2fdc2 * _grad_phi[_j][_qp] + d3fdc3 * _grad_u[_qp] * _phi[_j][_qp];
35  }
36  }
37 
38  mooseError("Invalid type passed in");
39 }
const MaterialProperty< Real > & _a
Definition: CHBulkPFCTrad.h:22
const MaterialProperty< Real > & _b
Definition: CHBulkPFCTrad.h:23
const MaterialProperty< Real > & _C0
Definition: CHBulkPFCTrad.h:21
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

const MaterialProperty<Real>& CHBulkPFCTrad::_a
private

Definition at line 22 of file CHBulkPFCTrad.h.

Referenced by computeGradDFDCons().

const MaterialProperty<Real>& CHBulkPFCTrad::_b
private

Definition at line 23 of file CHBulkPFCTrad.h.

Referenced by computeGradDFDCons().

const MaterialProperty<Real>& CHBulkPFCTrad::_C0
private

Definition at line 21 of file CHBulkPFCTrad.h.

Referenced by computeGradDFDCons().

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: