https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADComputeAxisymmetricRZFiniteStrain.C
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
11#include "Assembly.h"
12#include "FEProblem.h"
13#include "MooseMesh.h"
14
16
19{
22 "Compute a strain increment for finite strains under axisymmetric assumptions.");
23 return params;
24}
25
27 const InputParameters & parameters)
28 : ADCompute2DFiniteStrain(parameters), _disp_old_0(coupledValueOld("displacements", 0))
29{
30}
31
32void
34{
36
38 mooseError("The coordinate system must be set to RZ for Axisymmetric geometries.");
39
41 paramError("out_of_plane_direction",
42 "The out-of-plane direction for axisymmetric systems is currently restricted to z");
43}
44
47{
48 if (!MooseUtils::absoluteFuzzyEqual(_q_point[_qp](0), 0.0))
49 return (*_disp[0])[_qp] / _q_point[_qp](0);
50 else
51 return 0.0;
52}
53
54Real
56{
57 if (!MooseUtils::absoluteFuzzyEqual(_q_point[_qp](0), 0.0))
58 return _disp_old_0[_qp] / _q_point[_qp](0);
59 else
60 return 0.0;
61}
registerMooseObject("SolidMechanicsApp", ADComputeAxisymmetricRZFiniteStrain)
DualNumber< Real, DNDerivativeType, true > ADReal
ADCompute2DFiniteStrain defines a strain increment and a rotation increment for finite strains in 2D ...
const unsigned int _out_of_plane_direction
static InputParameters validParams()
ADComputeAxisymmetricRZFiniteStrain defines a strain increment and rotation increment for finite stra...
ADReal computeOutOfPlaneGradDisp() override
Computes the current out-of-plane component of the displacement gradient; as a virtual function,...
Real computeOutOfPlaneGradDispOld() override
Computes the old out-of-plane component of the displacement gradient; as a virtual function,...
const VariableValue & _disp_old_0
the old value of the first component of the displacements vector
ADComputeAxisymmetricRZFiniteStrain(const InputParameters &parameters)
std::vector< const ADVariableValue * > _disp
Displacement variables.
Moose::CoordinateSystemType getBlockCoordSystem()
void addClassDescription(const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _q_point
void paramError(const std::string &param, Args... args) const
void mooseError(Args &&... args) const