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

#include <GBEvolutionBase.h>

Inheritance diagram for GBEvolutionBase:
[legend]

Public Member Functions

 GBEvolutionBase (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

Real _f0s
 
Real _wGB
 
Real _length_scale
 
Real _time_scale
 
Real _GBmob0
 
Real _Q
 
Real _GBMobility
 
Real _molar_vol
 
const VariableValue & _T
 
MaterialProperty< Real > & _sigma
 
MaterialProperty< Real > & _M_GB
 
MaterialProperty< Real > & _kappa
 
MaterialProperty< Real > & _gamma
 
MaterialProperty< Real > & _L
 
MaterialProperty< Real > * _dLdT
 
MaterialProperty< Real > & _l_GB
 
MaterialProperty< Real > & _mu
 
MaterialProperty< Real > & _entropy_diff
 
MaterialProperty< Real > & _molar_volume
 
MaterialProperty< Real > & _act_wGB
 
const Real _kb
 
const Real _JtoeV
 

Detailed Description

Definition at line 19 of file GBEvolutionBase.h.

Constructor & Destructor Documentation

GBEvolutionBase::GBEvolutionBase ( const InputParameters &  parameters)

Definition at line 33 of file GBEvolutionBase.C.

34  : DerivativeMaterialInterface<Material>(parameters),
35  _f0s(getParam<Real>("f0s")),
36  _wGB(getParam<Real>("wGB")),
37  _length_scale(getParam<Real>("length_scale")),
38  _time_scale(getParam<Real>("time_scale")),
39  _GBmob0(getParam<Real>("GBmob0")),
40  _Q(getParam<Real>("Q")),
41  _GBMobility(getParam<Real>("GBMobility")),
42  _molar_vol(getParam<Real>("molar_volume")),
43  _T(coupledValue("T")),
44  _sigma(declareProperty<Real>("sigma")),
45  _M_GB(declareProperty<Real>("M_GB")),
46  _kappa(declareProperty<Real>("kappa_op")),
47  _gamma(declareProperty<Real>("gamma_asymm")),
48  _L(declareProperty<Real>("L")),
49  _dLdT(parameters.hasDefaultCoupledValue("T")
50  ? nullptr
51  : &declarePropertyDerivative<Real>("L", getVar("T", 0)->name())),
52  _l_GB(declareProperty<Real>("l_GB")),
53  _mu(declareProperty<Real>("mu")),
54  _entropy_diff(declareProperty<Real>("entropy_diff")),
55  _molar_volume(declareProperty<Real>("molar_volume")),
56  _act_wGB(declareProperty<Real>("act_wGB")),
57  _kb(8.617343e-5), // Boltzmann constant in eV/K
58  _JtoeV(6.24150974e18) // Joule to eV conversion
59 {
60  if (_GBMobility == -1 && _GBmob0 == 0)
61  mooseError("Either a value for GBMobility or for GBmob0 and Q must be provided");
62 }
MaterialProperty< Real > & _entropy_diff
const Real _JtoeV
MaterialProperty< Real > & _M_GB
MaterialProperty< Real > & _molar_volume
MaterialProperty< Real > & _gamma
const VariableValue & _T
MaterialProperty< Real > & _l_GB
MaterialProperty< Real > * _dLdT
MaterialProperty< Real > & _kappa
MaterialProperty< Real > & _mu
MaterialProperty< Real > & _sigma
MaterialProperty< Real > & _L
MaterialProperty< Real > & _act_wGB

Member Function Documentation

void GBEvolutionBase::computeQpProperties ( )
protectedvirtual

Reimplemented in GBEvolution.

Definition at line 65 of file GBEvolutionBase.C.

Referenced by GBEvolution::computeQpProperties().

66 {
67  const Real length_scale4 = _length_scale * _length_scale * _length_scale * _length_scale;
68 
69  // Convert to lengthscale^4/(eV*timescale);
70  Real M0 = _GBmob0 * _time_scale / (_JtoeV * length_scale4);
71 
72  // GB mobility Derivative
73  Real dM_GBdT;
74 
75  if (_GBMobility < 0)
76  {
77  _M_GB[_qp] = M0 * std::exp(-_Q / (_kb * _T[_qp]));
78  dM_GBdT = _M_GB[_qp] * _Q / (_kb * _T[_qp] * _T[_qp]);
79  }
80  else
81  {
82  // Convert to lengthscale^4/(eV*timescale)
83  _M_GB[_qp] = _GBMobility * _time_scale / (_JtoeV * length_scale4);
84  dM_GBdT = 0.0;
85  }
86 
87  // in the length scale of the system
88  _l_GB[_qp] = _wGB;
89 
90  _L[_qp] = 4.0 / 3.0 * _M_GB[_qp] / _l_GB[_qp];
91  if (_dLdT)
92  (*_dLdT)[_qp] = 4.0 / 3.0 * dM_GBdT / _l_GB[_qp];
93  _kappa[_qp] = 3.0 / 4.0 * _sigma[_qp] * _l_GB[_qp];
94  _gamma[_qp] = 1.5;
95  _mu[_qp] = 3.0 / 4.0 * 1.0 / _f0s * _sigma[_qp] / _l_GB[_qp];
96 
97  // J/(K mol) converted to eV(K mol)
98  _entropy_diff[_qp] = 8.0e3 * _JtoeV;
99 
100  // m^3/mol converted to ls^3/mol
101  _molar_volume[_qp] = _molar_vol / (_length_scale * _length_scale * _length_scale);
102  _act_wGB[_qp] = 0.5e-9 / _length_scale;
103 }
MaterialProperty< Real > & _entropy_diff
const Real _JtoeV
MaterialProperty< Real > & _M_GB
MaterialProperty< Real > & _molar_volume
MaterialProperty< Real > & _gamma
const VariableValue & _T
MaterialProperty< Real > & _l_GB
MaterialProperty< Real > * _dLdT
MaterialProperty< Real > & _kappa
MaterialProperty< Real > & _mu
MaterialProperty< Real > & _sigma
MaterialProperty< Real > & _L
MaterialProperty< Real > & _act_wGB

Member Data Documentation

MaterialProperty<Real>& GBEvolutionBase::_act_wGB
protected

Definition at line 48 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>* GBEvolutionBase::_dLdT
protected

Definition at line 43 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_entropy_diff
protected

Definition at line 46 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_f0s
protected

Definition at line 27 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_gamma
protected

Definition at line 41 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_GBmob0
protected

Definition at line 31 of file GBEvolutionBase.h.

Referenced by computeQpProperties(), and GBEvolutionBase().

Real GBEvolutionBase::_GBMobility
protected

Definition at line 33 of file GBEvolutionBase.h.

Referenced by computeQpProperties(), and GBEvolutionBase().

const Real GBEvolutionBase::_JtoeV
protected

Definition at line 51 of file GBEvolutionBase.h.

Referenced by computeQpProperties(), and GBEvolution::computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_kappa
protected

Definition at line 40 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

const Real GBEvolutionBase::_kb
protected

Definition at line 50 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_L
protected

Definition at line 42 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_l_GB
protected

Definition at line 44 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_length_scale
protected

Definition at line 29 of file GBEvolutionBase.h.

Referenced by computeQpProperties(), and GBEvolution::computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_M_GB
protected

Definition at line 39 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_molar_vol
protected

Definition at line 34 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_molar_volume
protected

Definition at line 47 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_mu
protected

Definition at line 45 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_Q
protected

Definition at line 32 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& GBEvolutionBase::_sigma
protected

Definition at line 38 of file GBEvolutionBase.h.

Referenced by computeQpProperties(), and GBEvolution::computeQpProperties().

const VariableValue& GBEvolutionBase::_T
protected

Definition at line 36 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_time_scale
protected

Definition at line 30 of file GBEvolutionBase.h.

Referenced by computeQpProperties().

Real GBEvolutionBase::_wGB
protected

Definition at line 28 of file GBEvolutionBase.h.

Referenced by computeQpProperties().


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