https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
33void
39
40void
registerMooseObject("SolidMechanicsApp", LinearElasticTruss)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
const VariableValue & _T
LinearElasticTruss(const InputParameters &parameters)
static InputParameters validParams()
virtual void computeQpStrain()
virtual void computeQpStress()
unsigned int _qp
MaterialProperty< Real > & _axial_stress
const VariableValue & _youngs_modulus
MaterialProperty< Real > & _total_stretch
MaterialProperty< Real > & _elastic_stretch
static InputParameters validParams()