www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeThermalExpansionEigenstrainBeam Class Reference

ComputeThermalExpansionEigenstrainBeam computes an eigenstrain for thermal expansion with a constant expansion coefficient. More...

#include <ComputeThermalExpansionEigenstrainBeam.h>

Inheritance diagram for ComputeThermalExpansionEigenstrainBeam:
[legend]

Public Member Functions

 ComputeThermalExpansionEigenstrainBeam (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual void computeThermalStrain (Real &thermal_strain) override
 
virtual void computeQpEigenstrain () override
 

Protected Attributes

const Real & _thermal_expansion_coeff
 Constant thermal expansion coefficient. More...
 
const VariableValue & _temperature
 Value of temperature at each quadrature point. More...
 
const VariableValue & _stress_free_temperature
 Value of stress free temperature at each quadrature point. More...
 
RealGradient _initial_axis
 Initial orientation of the beam. More...
 

Detailed Description

ComputeThermalExpansionEigenstrainBeam computes an eigenstrain for thermal expansion with a constant expansion coefficient.

Definition at line 24 of file ComputeThermalExpansionEigenstrainBeam.h.

Constructor & Destructor Documentation

◆ ComputeThermalExpansionEigenstrainBeam()

ComputeThermalExpansionEigenstrainBeam::ComputeThermalExpansionEigenstrainBeam ( const InputParameters &  parameters)

Definition at line 27 of file ComputeThermalExpansionEigenstrainBeam.C.

30  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
31 {
32 }

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeThermalExpansionEigenstrainBeamBase::computeQpEigenstrain ( )
overrideprotectedvirtualinherited

Definition at line 35 of file ComputeThermalExpansionEigenstrainBeamBase.C.

36 {
37  // fetch the two end nodes for current element
38  std::vector<const Node *> node;
39  for (unsigned int i = 0; i < 2; ++i)
40  node.push_back(_current_elem->node_ptr(i));
41 
42  // calculate initial axis of the beam element
43  for (unsigned int i = 0; i < 2; ++i)
44  _initial_axis(i) = (*node[1])(i) - (*node[0])(i);
45 
46  _initial_axis /= _initial_axis.norm();
47 
48  Real thermal_strain = 0.0;
49 
50  computeThermalStrain(thermal_strain);
51 
52  _disp_eigenstrain[_qp].zero();
53  _rot_eigenstrain[_qp].zero();
54  _disp_eigenstrain[_qp] = _initial_axis * thermal_strain;
55 }

◆ computeThermalStrain()

void ComputeThermalExpansionEigenstrainBeam::computeThermalStrain ( Real &  thermal_strain)
overrideprotectedvirtual

Implements ComputeThermalExpansionEigenstrainBeamBase.

Definition at line 35 of file ComputeThermalExpansionEigenstrainBeam.C.

36 {
37  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
38 }

◆ validParams()

InputParameters ComputeThermalExpansionEigenstrainBeam::validParams ( )
static

Definition at line 17 of file ComputeThermalExpansionEigenstrainBeam.C.

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 }

Member Data Documentation

◆ _initial_axis

RealGradient ComputeThermalExpansionEigenstrainBeamBase::_initial_axis
protectedinherited

Initial orientation of the beam.

Definition at line 50 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by ComputeThermalExpansionEigenstrainBeamBase::computeQpEigenstrain().

◆ _stress_free_temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_stress_free_temperature
protectedinherited

Value of stress free temperature at each quadrature point.

Definition at line 47 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by computeThermalStrain().

◆ _temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_temperature
protectedinherited

Value of temperature at each quadrature point.

Definition at line 44 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by computeThermalStrain().

◆ _thermal_expansion_coeff

const Real& ComputeThermalExpansionEigenstrainBeam::_thermal_expansion_coeff
protected

Constant thermal expansion coefficient.

Definition at line 35 of file ComputeThermalExpansionEigenstrainBeam.h.

Referenced by computeThermalStrain().


The documentation for this class was generated from the following files:
ComputeThermalExpansionEigenstrainBeamBase::computeThermalStrain
virtual void computeThermalStrain(Real &thermal_strain)=0
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::_initial_axis
RealGradient _initial_axis
Initial orientation of the beam.
Definition: ComputeThermalExpansionEigenstrainBeamBase.h:50
ComputeThermalExpansionEigenstrainBeamBase::_temperature
const VariableValue & _temperature
Value of temperature at each quadrature point.
Definition: ComputeThermalExpansionEigenstrainBeamBase.h:44
ComputeThermalExpansionEigenstrainBeamBase::ComputeThermalExpansionEigenstrainBeamBase
ComputeThermalExpansionEigenstrainBeamBase(const InputParameters &parameters)
Definition: ComputeThermalExpansionEigenstrainBeamBase.C:26
ComputeThermalExpansionEigenstrainBeam::_thermal_expansion_coeff
const Real & _thermal_expansion_coeff
Constant thermal expansion coefficient.
Definition: ComputeThermalExpansionEigenstrainBeam.h:35