https://mooseframework.inl.gov
ADStressDivergenceTensors.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "ADKernel.h"
13 #include "ADRankTwoTensorForward.h"
14 
18 template <typename R2>
20 {
21 public:
23 
25 
26 protected:
27  void initialSetup() override;
28 
29  ADReal computeQpResidual() override;
30  void precalculateResidual() override;
31 
33  const std::string _base_name;
34 
37 
39  const unsigned int _component;
40 
42  const unsigned int _ndisp;
43 
45  std::vector<unsigned int> _disp_var;
46 
48  std::vector<ADReal> _avg_grad_test;
49 
52 
55 
58 };
59 
std::vector< ADReal > _avg_grad_test
Gradient of test function averaged over the element. Used in volumetric locking correction calculatio...
const unsigned int _component
An integer corresponding to the direction this kernel acts in.
ADStressDivergenceTensorsTempl(const InputParameters &parameters)
const ADVariableValue *const _out_of_plane_strain
Pointer to the out-of-plane strain variable.
std::vector< unsigned int > _disp_var
Coupled displacement variable IDs.
const bool _out_of_plane_strain_coupled
Whether out-of-plane strain is coupeld.
const ADMaterialProperty< R2 > & _stress
The stress tensor that the divergence operator operates on.
ADStressDivergenceTensorsTempl< SymmetricRankTwoTensor > ADSymmetricStressDivergenceTensors
const unsigned int _ndisp
Number of coupled displacement variables.
const std::string _base_name
Base name of the material system that this kernel applies to.
const bool _volumetric_locking_correction
Flag for volumetric locking correction.
ADStressDivergenceTensorsTempl< RankTwoTensor > ADStressDivergenceTensors
const InputParameters & parameters() const
ADStressDivergenceTensors is the automatic differentiation version of StressDivergenceTensors.