www.mooseframework.org
GBRelaxationStrainIncrement.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 #include "libmesh/quadrature.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<Material>();
15  params.addClassDescription("Compute strain increment based on lattice relaxation at GB");
16  params.addParam<MaterialPropertyName>("prefactor_name", "Name of perfactor property");
17  params.addParam<MaterialPropertyName>("gb_normal_name", "Name of GB normal property");
18  params.addParam<MaterialPropertyName>("property_name",
19  "Name of GB relaxation strain increment property");
20  return params;
21 }
22 
24  : DerivativeMaterialInterface<Material>(parameters),
25  _prefactor(getMaterialProperty<Real>("prefactor_name")),
26  _gb_normal_tensor(getMaterialProperty<RankTwoTensor>("gb_normal_name")),
27  _strain_increment(
28  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("property_name")))
29 {
30 }
31 
32 void
34 {
35  _strain_increment[_qp].zero();
36 }
37 
38 void
40 {
41  _strain_increment[_qp] = _prefactor[_qp] * _dt * _gb_normal_tensor[_qp];
42 }
InputParameters validParams< GBRelaxationStrainIncrement >()
const MaterialProperty< RankTwoTensor > & _gb_normal_tensor
const MaterialProperty< Real > & _prefactor
MaterialProperty< RankTwoTensor > & _strain_increment
GBRelaxationStrainIncrement(const InputParameters &parameters)