www.mooseframework.org
GBRelaxationStrainIncrement.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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("Compute strain increment based on lattice relaxation at GB");
20  params.addParam<MaterialPropertyName>("prefactor_name", "Name of prefactor property");
21  params.addParam<MaterialPropertyName>("gb_normal_name", "Name of GB normal property");
22  params.addParam<MaterialPropertyName>("property_name",
23  "Name of GB relaxation strain increment property");
24  return params;
25 }
26 
29  _prefactor(getMaterialProperty<Real>("prefactor_name")),
30  _gb_normal_tensor(getMaterialProperty<RankTwoTensor>("gb_normal_name")),
31  _strain_increment(
32  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("property_name")))
33 {
34 }
35 
36 void
38 {
39  _strain_increment[_qp].zero();
40 }
41 
42 void
44 {
46 }
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)