www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeThermalExpansionEigenstrainBeamBase Class Referenceabstract

ComputeThermalExpansionEigenstrainBeamBase is a base class for all models that compute beam eigenstrains due to thermal expansion of a material. More...

#include <ComputeThermalExpansionEigenstrainBeamBase.h>

Inheritance diagram for ComputeThermalExpansionEigenstrainBeamBase:
[legend]

Public Member Functions

 ComputeThermalExpansionEigenstrainBeamBase (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

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

ComputeThermalExpansionEigenstrainBeamBase is a base class for all models that compute beam eigenstrains due to thermal expansion of a material.

Definition at line 25 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Constructor & Destructor Documentation

◆ ComputeThermalExpansionEigenstrainBeamBase()

ComputeThermalExpansionEigenstrainBeamBase::ComputeThermalExpansionEigenstrainBeamBase ( const InputParameters &  parameters)

Definition at line 25 of file ComputeThermalExpansionEigenstrainBeamBase.C.

27  : DerivativeMaterialInterface<ComputeEigenstrainBeamBase>(parameters),
28  _temperature(coupledValue("temperature")),
29  _stress_free_temperature(coupledValue("stress_free_temperature"))
30 {
31 }
const VariableValue & _stress_free_temperature
Value of stress free temperature at each quadrature point.
const VariableValue & _temperature
Value of temperature at each quadrature point.

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeThermalExpansionEigenstrainBeamBase::computeQpEigenstrain ( )
overrideprotectedvirtual

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()

virtual void ComputeThermalExpansionEigenstrainBeamBase::computeThermalStrain ( Real &  thermal_strain)
protectedpure virtual

Member Data Documentation

◆ _initial_axis

RealGradient ComputeThermalExpansionEigenstrainBeamBase::_initial_axis
protected

Initial orientation of the beam.

Definition at line 49 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by computeQpEigenstrain().

◆ _stress_free_temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_stress_free_temperature
protected

Value of stress free temperature at each quadrature point.

Definition at line 46 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by ComputeThermalExpansionEigenstrainBeam::computeThermalStrain().

◆ _temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_temperature
protected

Value of temperature at each quadrature point.

Definition at line 43 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by ComputeThermalExpansionEigenstrainBeam::computeThermalStrain().


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