www.mooseframework.org
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)
 

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 25 of file ComputeThermalExpansionEigenstrainBeam.h.

Constructor & Destructor Documentation

◆ ComputeThermalExpansionEigenstrainBeam()

ComputeThermalExpansionEigenstrainBeam::ComputeThermalExpansionEigenstrainBeam ( const InputParameters &  parameters)

Definition at line 26 of file ComputeThermalExpansionEigenstrainBeam.C.

29  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
30 {
31 }
const Real & _thermal_expansion_coeff
Constant thermal expansion coefficient.
ComputeThermalExpansionEigenstrainBeamBase(const InputParameters &parameters)

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeThermalExpansionEigenstrainBeamBase::computeQpEigenstrain ( )
overrideprotectedvirtualinherited

Definition at line 34 of file ComputeThermalExpansionEigenstrainBeamBase.C.

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

◆ computeThermalStrain()

void ComputeThermalExpansionEigenstrainBeam::computeThermalStrain ( Real &  thermal_strain)
overrideprotectedvirtual

Implements ComputeThermalExpansionEigenstrainBeamBase.

Definition at line 34 of file ComputeThermalExpansionEigenstrainBeam.C.

35 {
36  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
37 }
const VariableValue & _stress_free_temperature
Value of stress free temperature at each quadrature point.
const VariableValue & _temperature
Value of temperature at each quadrature point.
const Real & _thermal_expansion_coeff
Constant thermal expansion coefficient.

Member Data Documentation

◆ _initial_axis

RealGradient ComputeThermalExpansionEigenstrainBeamBase::_initial_axis
protectedinherited

Initial orientation of the beam.

Definition at line 49 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 46 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by computeThermalStrain().

◆ _temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_temperature
protectedinherited

Value of temperature at each quadrature point.

Definition at line 43 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by computeThermalStrain().

◆ _thermal_expansion_coeff

const Real& ComputeThermalExpansionEigenstrainBeam::_thermal_expansion_coeff
protected

Constant thermal expansion coefficient.

Definition at line 34 of file ComputeThermalExpansionEigenstrainBeam.h.

Referenced by computeThermalStrain().


The documentation for this class was generated from the following files: