www.mooseframework.org
PFMobility.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "PFMobility.h"
9 
10 #include "libmesh/quadrature.h"
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<Material>();
17  params.addRequiredParam<Real>("mob", "The mobility value");
18  params.addParam<Real>("kappa", 1.0, "The kappa parameter for the vacancy concentration");
19  return params;
20 }
21 
22 PFMobility::PFMobility(const InputParameters & parameters)
23  : Material(parameters),
24  _M(declareProperty<Real>("M")),
25  _grad_M(declareProperty<RealGradient>("grad_M")),
26  _kappa_c(declareProperty<Real>("kappa_c")),
27  _mob(getParam<Real>("mob")),
28  _kappa(getParam<Real>("kappa"))
29 {
30 }
31 
32 void
34 {
35  for (unsigned int qp = 0; qp < _qrule->n_points(); ++qp)
36  {
37  _M[qp] = _mob;
38  _grad_M[qp] = 0.0;
39  _kappa_c[qp] = _kappa;
40  }
41 }
Real _kappa
Definition: PFMobility.h:32
virtual void computeProperties()
Definition: PFMobility.C:33
InputParameters validParams< PFMobility >()
Definition: PFMobility.C:14
Real _mob
Definition: PFMobility.h:31
MaterialProperty< RealGradient > & _grad_M
Definition: PFMobility.h:28
MaterialProperty< Real > & _M
Definition: PFMobility.h:27
MaterialProperty< Real > & _kappa_c
Definition: PFMobility.h:29
PFMobility(const InputParameters &parameters)
Definition: PFMobility.C:22