https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GBDependentTensorBase.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
14{
16 params.addRequiredCoupledVar("gb", "GB variable");
17 params.addParam<Real>("bulk_parameter", 0.0, "Parameter value of bulk material");
18 params.addParam<Real>("gb_parameter", 0.0, "Parameter value at GB");
19 params.addParam<MaterialPropertyName>("gb_normal_tensor_name",
20 "Name of GB normal tensor property");
21 params.addParam<MaterialPropertyName>("gb_tensor_prop_name", "Name of GB tensor property");
22 return params;
23}
24
27 _gb(coupledValue("gb")),
28 _bulk_parameter(getParam<Real>("bulk_parameter")),
29 _gb_parameter(getParam<Real>("gb_parameter")),
30 _gb_normal_tensor(getMaterialProperty<RankTwoTensor>("gb_normal_tensor_name")),
31 _gb_dependent_tensor(
32 declareProperty<RealTensorValue>(getParam<MaterialPropertyName>("gb_tensor_prop_name")))
33{
34}
GBDependentTensorBase(const InputParameters &parameters)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()