www.mooseframework.org
GBDependentDiffusivity.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 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<GBDependentTensorBase>();
14  params.addClassDescription("Compute diffusivity rank two tensor based on GB phase variable");
15  return params;
16 }
17 
18 GBDependentDiffusivity::GBDependentDiffusivity(const InputParameters & parameters)
19  : GBDependentTensorBase(parameters)
20 {
21 }
22 
23 void
25 {
26  _gb_dependent_tensor[_qp].zero();
27 }
28 
29 void
31 {
32  RankTwoTensor iden(RankTwoTensor::initIdentity);
33  RankTwoTensor gb_tensor;
34 
35  gb_tensor = (1.0 - _gb[_qp]) * _bulk_parameter * iden +
36  _gb[_qp] * _gb_parameter * (iden - _gb_normal_tensor[_qp]);
37  gb_tensor.fillRealTensor(_gb_dependent_tensor[_qp]);
38 }
MaterialProperty< RealTensorValue > & _gb_dependent_tensor
const MaterialProperty< RankTwoTensor > & _gb_normal_tensor
InputParameters validParams< GBDependentDiffusivity >()
Base class to define GB dependent properties.
GBDependentDiffusivity(const InputParameters &parameters)
const VariableValue & _gb
virtual void initQpStatefulProperties()
InputParameters validParams< GBDependentTensorBase >()