www.mooseframework.org
ComputeExtraStressBase.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.addParam<std::string>("base_name",
15  "Optional parameter that allows the user to define "
16  "multiple mechanics material systems on the same "
17  "block, i.e. for multiple phases");
18  return params;
19 }
20 
21 ComputeExtraStressBase::ComputeExtraStressBase(const InputParameters & parameters)
22  : Material(parameters),
23  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
24  _extra_stress_name(_base_name + "extra_stress"),
25  _extra_stress(declareProperty<RankTwoTensor>(_base_name + "extra_stress"))
26 {
27 }
28 
29 void
31 {
33 }
ComputeExtraStressBase(const InputParameters &parameters)
virtual void computeQpExtraStress()=0
InputParameters validParams< ComputeExtraStressBase >()