www.mooseframework.org
StressDivergenceTensorsTruss.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 STRESSDIVERGENCETENSORSTRUSS_H
8 #define STRESSDIVERGENCETENSORSTRUSS_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
14 
15 template <>
17 
18 class StressDivergenceTensorsTruss : public Kernel
19 {
20 public:
21  StressDivergenceTensorsTruss(const InputParameters & parameters);
22 
23 protected:
24  virtual void initialSetup();
25  virtual void computeResidual();
26  virtual Real computeQpResidual() { return 0.0; }
27  virtual Real computeStiffness(unsigned int i, unsigned int j);
28  virtual void computeJacobian();
29  virtual void computeOffDiagJacobian(unsigned int jvar);
30 
31  std::string _base_name;
32 
33  const MaterialProperty<Real> & _axial_stress;
34  const MaterialProperty<Real> & _e_over_l;
35 
36 private:
37  const unsigned int _component;
38  const unsigned int _ndisp;
39  const bool _temp_coupled;
40 
41  const unsigned int _temp_var;
42  std::vector<unsigned int> _disp_var;
43 
44  const VariableValue & _area;
45  const std::vector<RealGradient> * _orientation;
46 };
47 
48 #endif // STRESSDIVERGENCETENSORSTRUSS_H
StressDivergenceTensorsTruss(const InputParameters &parameters)
virtual Real computeStiffness(unsigned int i, unsigned int j)
InputParameters validParams< StressDivergenceTensorsTruss >()
const std::vector< RealGradient > * _orientation
virtual void computeOffDiagJacobian(unsigned int jvar)
std::vector< unsigned int > _disp_var
const MaterialProperty< Real > & _axial_stress
const MaterialProperty< Real > & _e_over_l