www.mooseframework.org
Public Member Functions | Static 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)
 

Static Public Member Functions

static InputParameters validParams ()
 

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 24 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Constructor & Destructor Documentation

◆ ComputeThermalExpansionEigenstrainBeamBase()

ComputeThermalExpansionEigenstrainBeamBase::ComputeThermalExpansionEigenstrainBeamBase ( const InputParameters &  parameters)

Definition at line 26 of file ComputeThermalExpansionEigenstrainBeamBase.C.

28  : DerivativeMaterialInterface<ComputeEigenstrainBeamBase>(parameters),
29  _temperature(coupledValue("temperature")),
30  _stress_free_temperature(coupledValue("stress_free_temperature"))
31 {
32 }

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeThermalExpansionEigenstrainBeamBase::computeQpEigenstrain ( )
overrideprotectedvirtual

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

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

◆ validParams()

InputParameters ComputeThermalExpansionEigenstrainBeamBase::validParams ( )
static

Definition at line 15 of file ComputeThermalExpansionEigenstrainBeamBase.C.

16 {
17  InputParameters params = ComputeEigenstrainBeamBase::validParams();
18  params.addRequiredCoupledVar("temperature", "Coupled temperature");
19  params.addRequiredCoupledVar("stress_free_temperature",
20  "Reference temperature at which there is no "
21  "thermal expansion for thermal eigenstrain "
22  "calculation");
23  return params;
24 }

Referenced by ComputeThermalExpansionEigenstrainBeam::validParams().

Member Data Documentation

◆ _initial_axis

RealGradient ComputeThermalExpansionEigenstrainBeamBase::_initial_axis
protected

Initial orientation of the beam.

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

Referenced by ComputeThermalExpansionEigenstrainBeam::computeThermalStrain().

◆ _temperature

const VariableValue& ComputeThermalExpansionEigenstrainBeamBase::_temperature
protected

Value of temperature at each quadrature point.

Definition at line 44 of file ComputeThermalExpansionEigenstrainBeamBase.h.

Referenced by ComputeThermalExpansionEigenstrainBeam::computeThermalStrain().


The documentation for this class was generated from the following files:
ComputeThermalExpansionEigenstrainBeamBase::computeThermalStrain
virtual void computeThermalStrain(Real &thermal_strain)=0
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
ComputeEigenstrainBeamBase::validParams
static InputParameters validParams()
Definition: ComputeEigenstrainBeamBase.C:15