https://mooseframework.inl.gov
GBRelaxationStrainIncrement.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 #include "libmesh/quadrature.h"
12 
14 
17 {
19  params.addClassDescription(
20  "Compute strain increment based on lattice relaxation at grain boundaries");
21  params.addParam<MaterialPropertyName>("prefactor_name", "Name of prefactor property");
22  params.addParam<MaterialPropertyName>("gb_normal_name", "Name of GB normal property");
23  params.addParam<MaterialPropertyName>("property_name",
24  "Name of GB relaxation strain increment property");
25  return params;
26 }
27 
30  _prefactor(getMaterialProperty<Real>("prefactor_name")),
31  _gb_normal_tensor(getMaterialProperty<RankTwoTensor>("gb_normal_name")),
32  _strain_increment(
33  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("property_name")))
34 {
35 }
36 
37 void
39 {
40  _strain_increment[_qp].zero();
41 }
42 
43 void
45 {
47 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
GBRelaxationStrainIncrement computes strain increment due to lattice relaxation at GB Forest et...
const MaterialProperty< RankTwoTensor > & _gb_normal_tensor
registerMooseObject("SolidMechanicsApp", GBRelaxationStrainIncrement)
static InputParameters validParams()
const MaterialProperty< Real > & _prefactor
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
MaterialProperty< RankTwoTensor > & _strain_increment
void addClassDescription(const std::string &doc_string)
GBRelaxationStrainIncrement(const InputParameters &parameters)