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

#include <ACGBPoly.h>

Inheritance diagram for ACGBPoly:
[legend]

Public Member Functions

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

Static Public Member Functions

static InputParameters validParams ()
 

Protected Types

enum  PFFunctionType
 

Protected Member Functions

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

Protected Attributes

const VariableValue & _c
 
unsigned int _c_var
 
const MaterialProperty< Real > & _mu
 
const MaterialProperty< Real > & _gamma
 
Real _en_ratio
 
const MaterialProperty< Real > & _L
 Mobility. More...
 
const MaterialProperty< Real > & _dLdop
 Mobility derivative w.r.t. order parameter. More...
 
std::vector< const MaterialProperty< Real > * > _dLdarg
 Mobility derivative w.r.t coupled variables. More...
 

Detailed Description

Definition at line 18 of file ACGBPoly.h.

Member Enumeration Documentation

enum ACBulk::PFFunctionType
protectedinherited

Definition at line 35 of file ACBulk.h.

Constructor & Destructor Documentation

ACGBPoly::ACGBPoly ( const InputParameters &  parameters)

Definition at line 21 of file ACGBPoly.C.

22  : ACBulk<Real>(parameters),
23  _c(coupledValue("c")),
24  _c_var(coupled("c")),
25  _mu(getMaterialProperty<Real>("mu")),
26  _gamma(getMaterialProperty<Real>("gamma_asymm")),
27  _en_ratio(getParam<Real>("en_ratio"))
28 {
29 }
const MaterialProperty< Real > & _mu
Definition: ACGBPoly.h:30
unsigned int _c_var
Definition: ACGBPoly.h:28
const MaterialProperty< Real > & _gamma
Definition: ACGBPoly.h:31
Real _en_ratio
Definition: ACGBPoly.h:33
const VariableValue & _c
Definition: ACGBPoly.h:27

Member Function Documentation

Real ACGBPoly::computeDFDOP ( PFFunctionType  type)
protectedvirtual

Implements ACBulk< Real >.

Definition at line 32 of file ACGBPoly.C.

33 {
34  Real mult = 2.0 * _en_ratio * _mu[_qp] * _gamma[_qp];
35 
36  Real c = _c[_qp];
37  if (c < 1.0e-8)
38  c = 0.0;
39  if (c > 1.0)
40  c = 1.0;
41 
42  switch (type)
43  {
44  case Residual:
45  return mult * _u[_qp] * c * c;
46 
47  case Jacobian:
48  return mult * _phi[_j][_qp] * c * c;
49  }
50 
51  mooseError("Invalid type passed in");
52 }
const MaterialProperty< Real > & _mu
Definition: ACGBPoly.h:30
const MaterialProperty< Real > & _gamma
Definition: ACGBPoly.h:31
Real _en_ratio
Definition: ACGBPoly.h:33
const VariableValue & _c
Definition: ACGBPoly.h:27
Real ACGBPoly::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Reimplemented from ACBulk< Real >.

Definition at line 55 of file ACGBPoly.C.

56 {
57  Real c = _c[_qp];
58  if (c < 1.0e-8)
59  c = 0.0;
60  if (c > 1.0)
61  c = 1.0;
62 
63  if (jvar == _c_var)
64  {
65  Real mult = 2.0 * _en_ratio * _mu[_qp] * _gamma[_qp];
66  Real dDFDOP = 2.0 * mult * _u[_qp] * c * _phi[_j][_qp];
67 
68  return _L[_qp] * _test[_i][_qp] * dDFDOP;
69  }
70 
71  return 0.0;
72 }
const MaterialProperty< Real > & _L
Mobility.
Definition: ACBulk.h:44
const MaterialProperty< Real > & _mu
Definition: ACGBPoly.h:30
unsigned int _c_var
Definition: ACGBPoly.h:28
const MaterialProperty< Real > & _gamma
Definition: ACGBPoly.h:31
Real _en_ratio
Definition: ACGBPoly.h:33
const VariableValue & _c
Definition: ACGBPoly.h:27
virtual void ACBulk< Real >::initialSetup ( )
virtualinherited
virtual Real ACBulk< Real >::precomputeQpJacobian ( )
protectedvirtualinherited
virtual Real ACBulk< Real >::precomputeQpResidual ( )
protectedvirtualinherited
static InputParameters ACBulk< Real >::validParams ( )
staticinherited

Member Data Documentation

const VariableValue& ACGBPoly::_c
protected

Definition at line 27 of file ACGBPoly.h.

Referenced by computeDFDOP(), and computeQpOffDiagJacobian().

unsigned int ACGBPoly::_c_var
protected

Definition at line 28 of file ACGBPoly.h.

Referenced by computeQpOffDiagJacobian().

std::vector<const MaterialProperty<Real > *> ACBulk< Real >::_dLdarg
protectedinherited

Mobility derivative w.r.t coupled variables.

Definition at line 50 of file ACBulk.h.

const MaterialProperty<Real >& ACBulk< Real >::_dLdop
protectedinherited

Mobility derivative w.r.t. order parameter.

Definition at line 47 of file ACBulk.h.

Real ACGBPoly::_en_ratio
protected

Definition at line 33 of file ACGBPoly.h.

Referenced by computeDFDOP(), and computeQpOffDiagJacobian().

const MaterialProperty<Real>& ACGBPoly::_gamma
protected

Definition at line 31 of file ACGBPoly.h.

Referenced by computeDFDOP(), and computeQpOffDiagJacobian().

const MaterialProperty<Real >& ACBulk< Real >::_L
protectedinherited
const MaterialProperty<Real>& ACGBPoly::_mu
protected

Definition at line 30 of file ACGBPoly.h.

Referenced by computeDFDOP(), and computeQpOffDiagJacobian().


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