www.mooseframework.org
HEVPStrengthUOBase.h
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 #ifndef HEVPSTRENGTHUOBASE_H
8 #define HEVPSTRENGTHUOBASE_H
9 
10 #include "DiscreteElementUserObject.h"
11 #include "RankTwoTensor.h"
12 
13 class HEVPStrengthUOBase;
14 
15 template <>
16 InputParameters validParams<HEVPStrengthUOBase>();
17 
22 class HEVPStrengthUOBase : public DiscreteElementUserObject
23 {
24 public:
25  HEVPStrengthUOBase(const InputParameters & parameters);
26 
27  virtual bool computeValue(unsigned int, Real &) const = 0;
28  virtual bool computeDerivative(unsigned int, const std::string &, Real &) const = 0;
29 
30 protected:
31  std::string _intvar_prop_name;
32  const MaterialProperty<Real> & _intvar;
33 };
34 
35 #endif
virtual bool computeValue(unsigned int, Real &) const =0
This user object is a pure virtual base classs Derived classes computes material resistances and deri...
virtual bool computeDerivative(unsigned int, const std::string &, Real &) const =0
InputParameters validParams< HEVPStrengthUOBase >()
const MaterialProperty< Real > & _intvar
std::string _intvar_prop_name
HEVPStrengthUOBase(const InputParameters &parameters)