www.mooseframework.org
ComputeThermalExpansionEigenstrainBeam.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 
13 
15 
16 InputParameters
18 {
20  params.addClassDescription("Computes eigenstrain due to thermal expansion "
21  "with a constant coefficient");
22  params.addParam<Real>("thermal_expansion_coeff", "Thermal expansion coefficient");
23 
24  return params;
25 }
26 
28  const InputParameters & parameters)
30  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
31 {
32 }
33 
34 void
36 {
37  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
38 }
ComputeThermalExpansionEigenstrainBeam
ComputeThermalExpansionEigenstrainBeam computes an eigenstrain for thermal expansion with a constant ...
Definition: ComputeThermalExpansionEigenstrainBeam.h:24
ComputeThermalExpansionEigenstrainBeamBase::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrainBeamBase.C:15
ComputeThermalExpansionEigenstrainBeamBase::_stress_free_temperature
const VariableValue & _stress_free_temperature
Value of stress free temperature at each quadrature point.
Definition: ComputeThermalExpansionEigenstrainBeamBase.h:47
ComputeThermalExpansionEigenstrainBeamBase
ComputeThermalExpansionEigenstrainBeamBase is a base class for all models that compute beam eigenstra...
Definition: ComputeThermalExpansionEigenstrainBeamBase.h:24
ComputeThermalExpansionEigenstrainBeam::computeThermalStrain
virtual void computeThermalStrain(Real &thermal_strain) override
Definition: ComputeThermalExpansionEigenstrainBeam.C:35
ComputeThermalExpansionEigenstrainBeam::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrainBeam.C:17
ComputeThermalExpansionEigenstrainBeamBase::_temperature
const VariableValue & _temperature
Value of temperature at each quadrature point.
Definition: ComputeThermalExpansionEigenstrainBeamBase.h:44
ComputeThermalExpansionEigenstrainBeam.h
defineLegacyParams
defineLegacyParams(ComputeThermalExpansionEigenstrainBeam)
ComputeThermalExpansionEigenstrainBeam::ComputeThermalExpansionEigenstrainBeam
ComputeThermalExpansionEigenstrainBeam(const InputParameters &parameters)
Definition: ComputeThermalExpansionEigenstrainBeam.C:27
registerMooseObject
registerMooseObject("TensorMechanicsApp", ComputeThermalExpansionEigenstrainBeam)
ComputeThermalExpansionEigenstrainBeam::_thermal_expansion_coeff
const Real & _thermal_expansion_coeff
Constant thermal expansion coefficient.
Definition: ComputeThermalExpansionEigenstrainBeam.h:35