www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADStressDivergenceRSphericalTensors< compute_stage > Class Template Reference

ADStressDivergenceRSphericalTensors is the automatic differentiation version of StressDivergenceTensors. More...

#include <ADStressDivergenceRSphericalTensors.h>

Inheritance diagram for ADStressDivergenceRSphericalTensors< compute_stage >:
[legend]

Public Member Functions

 ADStressDivergenceRSphericalTensors (const InputParameters &parameters)
 

Protected Member Functions

void initialSetup () override
 
ADResidual computeQpResidual () override
 
void precalculateResidual () override
 
const ADMaterialProperty (RankTwoTensor) &_stress
 

Protected Attributes

 usingStressDivergenceTensorsMembers
 
const std::string _base_name
 
const unsigned int _component
 
const unsigned int _ndisp
 Coupled displacement variables. More...
 
std::vector< unsigned int > _disp_var
 
std::vector< ADReal > _avg_grad_test
 Gradient of test function averaged over the element. Used in volumetric locking correction calculation. More...
 
const bool _volumetric_locking_correction
 Flag for volumetric locking correction. More...
 
 usingKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADStressDivergenceRSphericalTensors< compute_stage >

ADStressDivergenceRSphericalTensors is the automatic differentiation version of StressDivergenceTensors.

Within this kernel the first displacement component refers to displacement in the radial direction. The COORD_TYPE in the Problem block must be set to RSPHERICAL.

Definition at line 16 of file ADStressDivergenceRSphericalTensors.h.

Constructor & Destructor Documentation

◆ ADStressDivergenceRSphericalTensors()

template<ComputeStage compute_stage>
ADStressDivergenceRSphericalTensors< compute_stage >::ADStressDivergenceRSphericalTensors ( const InputParameters &  parameters)

Definition at line 27 of file ADStressDivergenceRSphericalTensors.C.

30 {
31  if (_component != 0)
32  mooseError("Invalid component for this 1D RSpherical problem.");
33 }
ADStressDivergenceTensors is the automatic differentiation version of StressDivergenceTensors.

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage>
const ADStressDivergenceTensors< compute_stage >::ADMaterialProperty ( RankTwoTensor  ) &
protectedinherited

◆ computeQpResidual()

template<ComputeStage compute_stage>
ADResidual ADStressDivergenceRSphericalTensors< compute_stage >::computeQpResidual ( )
overrideprotected

Definition at line 46 of file ADStressDivergenceRSphericalTensors.C.

47 {
48  return _grad_test[_i][_qp](0) * _stress[_qp](0, 0) + // stress_{rr} part 1
49  (_test[_i][_qp] / _ad_q_point[_qp](0)) * _stress[_qp](1, 1) + // stress_{\theta \theta}
50  (_test[_i][_qp] / _ad_q_point[_qp](0)) * _stress[_qp](2, 2); // stress_{\phi \phi}
51 }

◆ initialSetup()

template<ComputeStage compute_stage>
void ADStressDivergenceRSphericalTensors< compute_stage >::initialSetup ( )
overrideprotected

Definition at line 37 of file ADStressDivergenceRSphericalTensors.C.

38 {
39  if (getBlockCoordSystem() != Moose::COORD_RSPHERICAL)
40  mooseError("The coordinate system in the Problem block must be set to RSPHERICAL for 1D "
41  "spherically symmetric geometries.");
42 }

◆ precalculateResidual()

template<ComputeStage compute_stage>
void ADStressDivergenceRSphericalTensors< compute_stage >::precalculateResidual ( )
inlineoverrideprotected

Definition at line 36 of file ADStressDivergenceRSphericalTensors.h.

36 {}

Member Data Documentation

◆ _avg_grad_test

template<ComputeStage compute_stage>
std::vector<ADReal> ADStressDivergenceTensors< compute_stage >::_avg_grad_test
protectedinherited

Gradient of test function averaged over the element. Used in volumetric locking correction calculation.

Definition at line 59 of file ADStressDivergenceTensors.h.

◆ _base_name

template<ComputeStage compute_stage>
const std::string ADStressDivergenceTensors< compute_stage >::_base_name
protectedinherited

Definition at line 49 of file ADStressDivergenceTensors.h.

◆ _component

template<ComputeStage compute_stage>
const unsigned int ADStressDivergenceTensors< compute_stage >::_component
protectedinherited

◆ _disp_var

template<ComputeStage compute_stage>
std::vector<unsigned int> ADStressDivergenceTensors< compute_stage >::_disp_var
protectedinherited

◆ _ndisp

template<ComputeStage compute_stage>
const unsigned int ADStressDivergenceTensors< compute_stage >::_ndisp
protectedinherited

Coupled displacement variables.

Definition at line 55 of file ADStressDivergenceTensors.h.

Referenced by ADStressDivergenceTensors< compute_stage >::ADStressDivergenceTensors().

◆ _volumetric_locking_correction

template<ComputeStage compute_stage>
const bool ADStressDivergenceTensors< compute_stage >::_volumetric_locking_correction
protectedinherited

Flag for volumetric locking correction.

Definition at line 62 of file ADStressDivergenceTensors.h.

Referenced by ADStressDivergenceTensors< compute_stage >::ADStressDivergenceTensors().

◆ usingKernelMembers

template<ComputeStage compute_stage>
ADStressDivergenceTensors< compute_stage >::usingKernelMembers
protectedinherited

Definition at line 64 of file ADStressDivergenceTensors.h.

◆ usingStressDivergenceTensorsMembers

template<ComputeStage compute_stage>
ADStressDivergenceRSphericalTensors< compute_stage >::usingStressDivergenceTensorsMembers
protected

Definition at line 38 of file ADStressDivergenceRSphericalTensors.h.


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