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

Compute1DSmallStrain defines a strain tensor, assuming small strains, in 1D problems, handling strains in other two directions. More...

#include <Compute1DSmallStrain.h>

Inheritance diagram for Compute1DSmallStrain:
[legend]

Public Member Functions

 Compute1DSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

void computeProperties () override
 
virtual Real computeStrainYY ()=0
 Computes the strain_yy; as a virtual function, this function is overwritten for the specific geometries defined by inheriting classes. More...
 
virtual Real computeStrainZZ ()=0
 Computes the strain_zz; as a virtual function, this function is overwritten for the specific geometries defined by inheriting classes. More...
 
virtual void initQpStatefulProperties () override
 

Protected Attributes

unsigned int _ndisp
 Coupled displacement variables. More...
 
std::vector< const VariableValue * > _disp
 
std::vector< const VariableGradient * > _grad_disp
 
std::string _base_name
 
MaterialProperty< RankTwoTensor > & _mechanical_strain
 
MaterialProperty< RankTwoTensor > & _total_strain
 
std::vector< MaterialPropertyName > _eigenstrain_names
 
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
 
bool _volumetric_locking_correction
 
const Real & _current_elem_volume
 

Detailed Description

Compute1DSmallStrain defines a strain tensor, assuming small strains, in 1D problems, handling strains in other two directions.

Compute1DSmallStrain contains virtual methods to define the strain_yy and strain_zz as a general nonzero value.

Definition at line 18 of file Compute1DSmallStrain.h.

Constructor & Destructor Documentation

Compute1DSmallStrain::Compute1DSmallStrain ( const InputParameters &  parameters)

Definition at line 21 of file Compute1DSmallStrain.C.

22  : ComputeSmallStrain(parameters)
23 {
24 }
ComputeSmallStrain(const InputParameters &parameters)

Member Function Documentation

void Compute1DSmallStrain::computeProperties ( )
overrideprotectedvirtual

Reimplemented from ComputeSmallStrain.

Definition at line 27 of file Compute1DSmallStrain.C.

28 {
29  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
30  {
31  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
32  _total_strain[_qp](1, 1) = computeStrainYY();
33  _total_strain[_qp](2, 2) = computeStrainZZ();
34 
36 
37  // Remove the eigenstrain
38  for (auto es : _eigenstrains)
39  _mechanical_strain[_qp] -= (*es)[_qp];
40  }
41 }
virtual Real computeStrainYY()=0
Computes the strain_yy; as a virtual function, this function is overwritten for the specific geometri...
virtual Real computeStrainZZ()=0
Computes the strain_zz; as a virtual function, this function is overwritten for the specific geometri...
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_disp
virtual Real Compute1DSmallStrain::computeStrainYY ( )
protectedpure virtual

Computes the strain_yy; as a virtual function, this function is overwritten for the specific geometries defined by inheriting classes.

Implemented in ComputeAxisymmetric1DSmallStrain.

Referenced by computeProperties().

virtual Real Compute1DSmallStrain::computeStrainZZ ( )
protectedpure virtual

Computes the strain_zz; as a virtual function, this function is overwritten for the specific geometries defined by inheriting classes.

Implemented in ComputeAxisymmetric1DSmallStrain.

Referenced by computeProperties().

void ComputeStrainBase::initQpStatefulProperties ( )
overrideprotectedvirtualinherited

Reimplemented in ComputeCosseratIncrementalSmallStrain, and ComputeIncrementalStrainBase.

Definition at line 78 of file ComputeStrainBase.C.

Referenced by ComputeStrainBase::~ComputeStrainBase().

79 {
80  _mechanical_strain[_qp].zero();
81  _total_strain[_qp].zero();
82 }
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain

Member Data Documentation

std::string ComputeStrainBase::_base_name
protectedinherited

Definition at line 33 of file ComputeStrainBase.h.

Referenced by ComputeStrainBase::ComputeStrainBase().

const Real& ComputeStrainBase::_current_elem_volume
protectedinherited
std::vector<const VariableValue *> ComputeStrainBase::_disp
protectedinherited
std::vector<MaterialPropertyName> ComputeStrainBase::_eigenstrain_names
protectedinherited
std::vector<const MaterialProperty<RankTwoTensor> *> ComputeStrainBase::_eigenstrains
protectedinherited
std::vector<const VariableGradient *> ComputeStrainBase::_grad_disp
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited
unsigned int ComputeStrainBase::_ndisp
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited
bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

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