www.mooseframework.org
GBDependentAnisotropicTensor.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 anisotropic rank two tensor based on GB phase variable");
15  return params;
16 }
17 
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 =
36  (1.0 - _gb[_qp]) * _bulk_parameter * iden + _gb[_qp] * _gb_parameter * _gb_normal_tensor[_qp];
37  gb_tensor.fillRealTensor(_gb_dependent_tensor[_qp]);
38 }
MaterialProperty< RealTensorValue > & _gb_dependent_tensor
InputParameters validParams< GBDependentAnisotropicTensor >()
const MaterialProperty< RankTwoTensor > & _gb_normal_tensor
GBDependentAnisotropicTensor(const InputParameters &parameters)
Base class to define GB dependent properties.
const VariableValue & _gb
InputParameters validParams< GBDependentTensorBase >()