www.mooseframework.org
TrussMaterial.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 TRUSSMATERIAL_H
8 #define TRUSSMATERIAL_H
9 
10 #include "Material.h"
11 
12 // Forward Declarations
13 class TrussMaterial;
14 
15 template <>
16 InputParameters validParams<TrussMaterial>();
17 
18 class TrussMaterial : public Material
19 {
20 public:
21  TrussMaterial(const InputParameters & parameters);
22 
23 protected:
24  virtual void initQpStatefulProperties();
25  virtual void computeProperties();
26 
27  virtual void computeQpStrain() = 0;
28  virtual void computeQpStress() = 0;
29 
30  std::vector<MooseVariable *> _disp_var;
31 
32  const std::string _base_name;
33 
34  unsigned int _ndisp;
35  const VariableValue & _youngs_modulus;
36 
37  MaterialProperty<Real> & _total_stretch;
38  MaterialProperty<Real> & _elastic_stretch;
39  MaterialProperty<Real> & _axial_stress;
40  MaterialProperty<Real> & _e_over_l;
41 
44 };
45 
46 #endif // TRUSSMATERIAL_H
Real _current_length
Definition: TrussMaterial.h:43
TrussMaterial(const InputParameters &parameters)
Definition: TrussMaterial.C:34
std::vector< MooseVariable * > _disp_var
Definition: TrussMaterial.h:30
MaterialProperty< Real > & _total_stretch
Definition: TrussMaterial.h:37
const VariableValue & _youngs_modulus
Definition: TrussMaterial.h:35
InputParameters validParams< TrussMaterial >()
Definition: TrussMaterial.C:20
unsigned int _ndisp
Definition: TrussMaterial.h:34
MaterialProperty< Real > & _elastic_stretch
Definition: TrussMaterial.h:38
virtual void computeQpStrain()=0
MaterialProperty< Real > & _e_over_l
Definition: TrussMaterial.h:40
virtual void computeProperties()
Definition: TrussMaterial.C:61
const std::string _base_name
Definition: TrussMaterial.h:32
MaterialProperty< Real > & _axial_stress
Definition: TrussMaterial.h:39
virtual void initQpStatefulProperties()
Definition: TrussMaterial.C:53
virtual void computeQpStress()=0