www.mooseframework.org
ElasticEnergyAux.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 ELASTICENERGYAUX_H
8 #define ELASTICENERGYAUX_H
9 
10 #include "AuxKernel.h"
11 #include "RankTwoTensor.h"
12 
13 // Forward declarations
14 class ElasticEnergyAux;
15 
16 template <>
17 InputParameters validParams<ElasticEnergyAux>();
18 
19 class ElasticEnergyAux : public AuxKernel
20 {
21 public:
22  ElasticEnergyAux(const InputParameters & parameters);
23  virtual ~ElasticEnergyAux() {}
24 
25 protected:
26  virtual Real computeValue();
27 
28  std::string _base_name;
29 
30  const MaterialProperty<RankTwoTensor> & _stress;
31  const MaterialProperty<RankTwoTensor> & _elastic_strain;
32 };
33 
34 #endif // ELASTICENERGYAUX_H
ElasticEnergyAux(const InputParameters &parameters)
InputParameters validParams< ElasticEnergyAux >()
virtual Real computeValue()
const MaterialProperty< RankTwoTensor > & _stress
virtual ~ElasticEnergyAux()
std::string _base_name
const MaterialProperty< RankTwoTensor > & _elastic_strain