www.mooseframework.org
StressUpdateBase.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 #include "StressUpdateBase.h"
8 
9 #include "MooseMesh.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<Material>();
16  params.addClassDescription("Calculates an admissible state (stress that lies on or within the "
17  "yield surface, plastic strains, internal parameters, etc). This "
18  "class is intended to be a parent class for classes with specific "
19  "constitutive models.");
20  // The return stress increment classes are intended to be iterative materials, so must set compute
21  // = false for all inheriting classes
22  params.set<bool>("compute") = false;
23  params.suppressParameter<bool>("compute");
24  return params;
25 }
26 
27 StressUpdateBase::StressUpdateBase(const InputParameters & parameters) : Material(parameters) {}
28 
29 void
30 StressUpdateBase::setQp(unsigned int qp)
31 {
32  _qp = qp;
33 }
34 
35 void
37 {
38  mooseError(
39  "propagateQpStatefulProperties called: it needs to be implemented by your inelastic model");
40 }
41 
42 Real
44 {
45  return std::numeric_limits<Real>::max();
46 }
InputParameters validParams< StressUpdateBase >()
virtual void propagateQpStatefulProperties()
If updateState is not called during a timestep, this will be.
void setQp(unsigned int qp)
Sets the value of the global variable _qp for inheriting classes.
virtual Real computeTimeStepLimit()
StressUpdateBase(const InputParameters &parameters)