https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
14
18template <typename R2>
20{
21public:
23
25
26protected:
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
DualNumber< Real, DNDerivativeType, true > ADReal
ADStressDivergenceTensorsTempl< RankTwoTensor > ADStressDivergenceTensors
ADStressDivergenceTensorsTempl< SymmetricRankTwoTensor > ADSymmetricStressDivergenceTensors
ADStressDivergenceTensors is the automatic differentiation version of StressDivergenceTensors.
const unsigned int _ndisp
Number of coupled displacement variables.
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 unsigned int _component
An integer corresponding to the direction this kernel acts in.
std::vector< ADReal > _avg_grad_test
Gradient of test function averaged over the element. Used in volumetric locking correction calculatio...
const std::string _base_name
Base name of the material system that this kernel applies to.
const bool _out_of_plane_strain_coupled
Whether out-of-plane strain is coupeld.
const bool _volumetric_locking_correction
Flag for volumetric locking correction.
const ADMaterialProperty< R2 > & _stress
The stress tensor that the divergence operator operates on.
const InputParameters & parameters() const
VariableValueTempl< true > ADVariableValue