www.mooseframework.org
GBDependentTensorBase.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<Material>();
14  params.addRequiredCoupledVar("gb", "GB variable");
15  params.addParam<Real>("bulk_parameter", 0.0, "Parameter value of bulk material");
16  params.addParam<Real>("gb_parameter", 0.0, "Parameter value at GB");
17  params.addParam<MaterialPropertyName>("gb_normal_tensor_name",
18  "Name of GB normal tensor property");
19  params.addParam<MaterialPropertyName>("gb_tensor_prop_name", "Name of GB tensor property");
20  return params;
21 }
22 
23 GBDependentTensorBase::GBDependentTensorBase(const InputParameters & parameters)
24  : DerivativeMaterialInterface<Material>(parameters),
25  _gb(coupledValue("gb")),
26  _bulk_parameter(getParam<Real>("bulk_parameter")),
27  _gb_parameter(getParam<Real>("gb_parameter")),
28  _gb_normal_tensor(getMaterialProperty<RankTwoTensor>("gb_normal_tensor_name")),
29  _gb_dependent_tensor(
30  declareProperty<RealTensorValue>(getParam<MaterialPropertyName>("gb_tensor_prop_name")))
31 {
32 }
InputParameters validParams< GBDependentTensorBase >()
GBDependentTensorBase(const InputParameters &parameters)