www.mooseframework.org
LinearElasticTruss.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 
8 #include "LinearElasticTruss.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<TrussMaterial>();
15  params.addParam<Real>("thermal_expansion_coeff", 0.0, "Thermal expansion coefficient in 1/K");
16  params.addParam<Real>("temperature_ref", 273, "Reference temperature for thermal expansion in K");
17  params.addCoupledVar("temperature", 273, "Temperature in Kelvin");
18  return params;
19 }
20 
21 LinearElasticTruss::LinearElasticTruss(const InputParameters & parameters)
22  : TrussMaterial(parameters),
23  _T(coupledValue("temperature")),
24  _T0(getParam<Real>("temperature_ref")),
25  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
26 {
27 }
28 
29 void
31 {
34 }
35 
36 void
38 {
40 }
Real _current_length
Definition: TrussMaterial.h:43
LinearElasticTruss(const InputParameters &parameters)
MaterialProperty< Real > & _total_stretch
Definition: TrussMaterial.h:37
virtual void computeQpStrain()
const VariableValue & _youngs_modulus
Definition: TrussMaterial.h:35
InputParameters validParams< TrussMaterial >()
Definition: TrussMaterial.C:20
MaterialProperty< Real > & _elastic_stretch
Definition: TrussMaterial.h:38
InputParameters validParams< LinearElasticTruss >()
MaterialProperty< Real > & _axial_stress
Definition: TrussMaterial.h:39
const VariableValue & _T
virtual void computeQpStress()