https://mooseframework.inl.gov
ComputeExtraStressBase.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 
10 #include "ComputeExtraStressBase.h"
11 
14 {
16  params.addParam<std::string>("base_name",
17  "Optional parameter that allows the user to define "
18  "multiple mechanics material systems on the same "
19  "block, i.e. for multiple phases");
20  return params;
21 }
22 
24  : Material(parameters),
25  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
26  _extra_stress_name(_base_name + "extra_stress"),
27  _extra_stress(declareProperty<RankTwoTensor>(_base_name + "extra_stress"))
28 {
29 }
30 
31 void
33 {
35 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
ComputeExtraStressBase(const InputParameters &parameters)
virtual void computeQpExtraStress()=0
static InputParameters validParams()
static InputParameters validParams()