www.mooseframework.org
ComputeExtraStressConstant.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 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<ComputeExtraStressBase>();
15  params.addClassDescription("Computes a constant extra stress that is added to the stress "
16  "calculated by the constitutive model");
17  params.addRequiredParam<std::vector<Real>>("extra_stress_tensor",
18  "Vector of values defining the constant extra stress "
19  "to add, in order 11, 22, 33, 23, 13, 12");
20  params.addParam<MaterialPropertyName>(
21  "prefactor", 1.0, "Name of material defining additional constant prefactor");
22  return params;
23 }
24 
25 ComputeExtraStressConstant::ComputeExtraStressConstant(const InputParameters & parameters)
26  : ComputeExtraStressBase(parameters), _prefactor(getMaterialProperty<Real>("prefactor"))
27 {
28  _extra_stress_tensor.fillFromInputVector(getParam<std::vector<Real>>("extra_stress_tensor"));
29 }
30 
31 void
33 {
35 }
ComputeExtraStressBase is the base class for extra_stress, which is added to stress calculated by the...
const MaterialProperty< Real > & _prefactor
InputParameters validParams< ComputeExtraStressConstant >()
ComputeExtraStressConstant(const InputParameters &parameters)
InputParameters validParams< ComputeExtraStressBase >()
MaterialProperty< RankTwoTensor > & _extra_stress