https://mooseframework.inl.gov
LinearElasticTruss.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "LinearElasticTruss.h"
11 
12 registerMooseObject("SolidMechanicsApp", LinearElasticTruss);
13 
16 {
18  params.addClassDescription("Computes the linear elastic strain for a truss element");
19  params.addParam<Real>("thermal_expansion_coeff", 0.0, "Thermal expansion coefficient in 1/K");
20  params.addParam<Real>("temperature_ref", 273, "Reference temperature for thermal expansion in K");
21  params.addCoupledVar("temperature", 273, "Temperature in Kelvin");
22  return params;
23 }
24 
26  : TrussMaterial(parameters),
27  _T(coupledValue("temperature")),
28  _T0(getParam<Real>("temperature_ref")),
29  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
30 {
31 }
32 
33 void
35 {
38 }
39 
40 void
42 {
44 }
Real _current_length
Definition: TrussMaterial.h:45
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
LinearElasticTruss(const InputParameters &parameters)
registerMooseObject("SolidMechanicsApp", LinearElasticTruss)
MaterialProperty< Real > & _total_stretch
Definition: TrussMaterial.h:39
virtual void computeQpStrain()
const VariableValue & _youngs_modulus
Definition: TrussMaterial.h:37
unsigned int _qp
MaterialProperty< Real > & _elastic_stretch
Definition: TrussMaterial.h:40
void addCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
Definition: TrussMaterial.C:21
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _axial_stress
Definition: TrussMaterial.h:41
const VariableValue & _T
void addClassDescription(const std::string &doc_string)
virtual void computeQpStress()