https://mooseframework.inl.gov
Loading...
Searching...
No Matches
RankTwoScalarTools.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// MOOSE includes
13#include "MooseEnum.h"
14#include "MooseTypes.h"
15#include "libmesh/point.h"
16#include "RankTwoTensor.h"
17#include "MooseError.h"
18#include "MooseUtils.h"
19
21{
22/*
23 * Return the scalar_type MooseEnum
24 */
26
30
48
55
57{
60};
61
62/*
63 * Extracts the value of the tensor component at the specified indices
64 */
65template <typename T>
66T
67component(const RankTwoTensorTempl<T> & r2tensor, unsigned int i, unsigned int j)
68{
69 return r2tensor(i, j);
70}
71
72/*
73 * Extracts the value of the tensor component at the specified indices and
74 * updates the unit direction vector.
75 */
76template <typename T>
77T
78component(const RankTwoTensorTempl<T> & r2tensor, unsigned int i, unsigned int j, Point & direction)
79{
80 direction.zero();
81 if (i == j)
82 direction(i) = 1.0;
83 else
84 {
85 direction(i) = std::sqrt(0.5);
86 direction(j) = std::sqrt(0.5);
87 }
88
89 return r2tensor(i, j);
90}
91
92/*
93 * The von Mises Stress is calculated in the deviatoric stress space:
94 * \sigma_{vm} = \sqrt{\frac{3}{2}S_{ij}S_{ij}}
95 * This scalar quanitity is often used to determine the onset of plasticity by
96 * comparing the von Mises stress to the yield stress in J2 plasticity models.
97 */
98template <typename T>
99T
101{
102 RankTwoTensorTempl<T> dev_stress = stress.deviatoric();
103 const T dev_stress_squared = dev_stress.doubleContraction(dev_stress);
104
105 // The derivative of sqrt is infinite at zero, which a hydrostatic or vanishing stress reaches,
106 // so return zero with zero derivatives there
107 using std::sqrt;
108 return dev_stress_squared == 0.0 ? 0.0 : sqrt(1.5 * dev_stress_squared);
109}
110
111/*
112 * The effective strain increment (or equivalent von Mises strain) is calculated as
113 * \epsilon_{eff} = \sqrt{\frac{2}{3}\epsilon_{ij} \epsilon_{ij}}
114 */
115template <typename T>
116T
118{
119 const T strain_squared = strain.doubleContraction(strain);
120
121 // The derivative of sqrt is infinite at zero, which a vanishing strain increment reaches, so
122 // return zero with zero derivatives there
123 using std::sqrt;
124 return strain_squared == 0.0 ? 0.0 : sqrt(2.0 / 3.0 * strain_squared);
125}
126
127/*
128 * The hydrostatic scalar of a tensor is computed as the sum of the diagonal
129 * terms divided by 3.
130 */
131template <typename T>
132T
134{
135 return r2tensor.trace() / 3.0;
136}
137
138/*
139 * Computes the L2 normal of a rank two tensor
140 */
141template <typename T>
142T
144{
145 return r2tensor.L2norm();
146}
147
148/*
149 * The volumentric strain is the change in volume over the original volume. In
150 * this method the squared and cubic terms are included so that the calculation
151 * is valid for both small and finite strains.
152 * Since the strains are logarithmic strains, which are by definition log(L/L0),
153 * exp(log_strain) = L/L0
154 * The ratio of the volume change of a strained cube to the original volume
155 * (delta V / V) is thus:
156 * exp(log_strain_11) * exp(log_strain_22) * exp(log_strain_33) - 1
157 *
158 * Since eng_strain = exp(log_strain) - 1, the equivalent calculation using
159 * engineering strains would be:
160 * (1 + eng_strain_11) * (1 + eng_strain_22) + (1 + eng_strain_33) - 1
161 * If strains are small, the resulting terms that involve squared and cubed
162 * strains are negligible, resulting in the following approximate form:
163 * strain_11 + strain_22 + strain_33
164 * There is not currently an option to compute this small-strain form of the
165 * volumetric strain, but at small strains, it is approximately equal to the
166 * finite strain form that is computed.
167 *
168 * @param strain Total logarithmic strain
169 * @return volumetric strain (delta V / V)
170 */
171template <typename T>
172T
174{
175 using std::exp;
176 return exp(strain(0, 0)) * exp(strain(1, 1)) * exp(strain(2, 2)) - 1.0;
177}
178
179/*
180 * The first invariant of a tensor is the sum of the diagonal component; defined
181 * in L. Malvern, Introduction to the Mechanics of a Continuous Mediam (1969) pg 89.
182 */
183template <typename T>
184T
186{
187 return r2tensor.trace();
188}
189
190/*
191 * The second invariant is calculated using the formula from K. Hjelmstad,
192 * Fundamentals of Structural Mechanics (1997) pg. 24.
193 * Note that the Hjelmstad version of the second invariant is the negative of
194 * the second invariant given in L. Malvern, Introduction to the Mechanics of a
195 * Continuous Medium (1969) pg 89.
196 */
197template <typename T>
198T
200{
201 T val = 0.0;
202 for (unsigned int i = 0; i < 2; ++i)
203 for (unsigned int j = i + 1; j < 3; ++j)
204 {
205 val += r2tensor(i, i) * r2tensor(j, j);
206 val -= (r2tensor(i, j) * r2tensor(i, j) + r2tensor(j, i) * r2tensor(j, i)) * 0.5;
207 }
208
209 return val;
210}
211
212/*
213 * The third invariant of a rank 2 tensor is the determinate of the tensor; defined
214 * in L. Malvern, Introduction to the Mechanics of a Continuous Mediam (1969) pg 89.
215 */
216template <typename T>
217T
219{
220 T val = 0.0;
221 val = r2tensor(0, 0) * r2tensor(1, 1) * r2tensor(2, 2) -
222 r2tensor(0, 0) * r2tensor(1, 2) * r2tensor(2, 1) +
223 r2tensor(0, 1) * r2tensor(1, 2) * r2tensor(2, 0) -
224 r2tensor(0, 1) * r2tensor(1, 0) * r2tensor(2, 2) +
225 r2tensor(0, 2) * r2tensor(1, 0) * r2tensor(2, 1) -
226 r2tensor(0, 2) * r2tensor(1, 1) * r2tensor(2, 0);
227
228 return val;
229}
230
231/*
232 * This method is called by the *Principal methods to calculate the eigenvalues
233 * and eigenvectors of a symmetric tensor and return the desired value based on
234 * vector position.
235 * param r2tensor The RankTwoTensor from which to extract eigenvalues/vectors
236 * param index The index of the principal value
237 * param direction The eigenvector corresponding to the computed eigenvalue
238 */
239template <typename T>
240T
242 unsigned int index,
243 libMesh::TypeVector<T> & eigenvec)
244{
245 std::vector<T> eigenval(LIBMESH_DIM);
246 RankTwoTensorTempl<T> eigvecs;
247 r2tensor.symmetricEigenvaluesEigenvectors(eigenval, eigvecs);
248
249 T val = eigenval[index];
250 eigenvec = eigvecs.column(index);
251
252 return val;
253}
254
255/*
256 * The max Principal method returns the largest principal value for a symmetric
257 * tensor, using the calcEigenValues method.
258 * param r2tensor RankTwoTensor from which to extract the principal value
259 * param direction Direction corresponding to the principal value
260 */
261template <typename T>
262T
264{
265 return calcEigenValuesEigenVectors(r2tensor, (LIBMESH_DIM - 1), direction);
266}
267
268/*
269 * The mid Principal method calculates the second largest principal value for a
270 * tensor.
271 * param r2tensor RankTwoTensor from which to extract the principal value
272 * param direction Direction corresponding to the principal value
273 */
274template <typename T>
275T
277{
278 return calcEigenValuesEigenVectors(r2tensor, 1, direction);
279}
280
281/*
282 * The min Principal stress returns the smallest principal value from a symmetric
283 * tensor.
284 * param r2tensor RankTwoTensor from which to extract the principal value
285 * param direction Direction corresponding to the principal value
286 */
287template <typename T>
288T
290{
291 return calcEigenValuesEigenVectors(r2tensor, 0, direction);
292}
293
294/*
295 * The axial stress is the scalar component of the stress tensor in an user-defined
296 * direction; the axis direction is specified by inputing two points.
297 * axial-stress = axis^T_i * \sigma_{ij} * axis_j
298 * @param point1 The starting point of the rotation axis for a cylinderical system
299 * @param point2 The end point of the rotation axis
300 * @param direction The direction vector in which the scalar stress value is calculated.
301 */
302template <typename T>
303T
305 const Point & point1,
306 const Point & point2,
307 Point & direction)
308{
309 Point axis = point2 - point1;
310 axis /= axis.norm();
311
312 // Calculate the stress in the direction of the axis specifed by the user
313 T axial_stress = axis * (stress * axis);
314
315 direction = axis;
316
317 return axial_stress;
318}
319
320/*
321 * This method is a helper method for the hoopStress and radialStress methods to
322 * calculate the unit position vector which is normal to the user supplied axis
323 * of rotation; the rotation axis direction is specified by inputing two points.
324 * @param point1 The starting point of the rotation axis for a cylinderical system
325 * @param point2 The end point of the rotation axis
326 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
327 * @param normalPosition The vector from the current point that is normal to the rotation axis
328 */
329void normalPositionVector(const Point & point1,
330 const Point & point2,
331 const Point & curr_point,
332 Point & normalPosition);
333
334/*
335 * The hoop stress is calculated as
336 * hoop-stress = z^T_i * \sigma_{ij} * z_j
337 * where z is defined as the cross of the user-defined (via input points) axis
338 * of rotation and the normal from the current position to the axis of rotation.
339 * @param point1 The starting point of the rotation axis for a cylinderical system
340 * @param point2 The end point of the rotation axis
341 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
342 * @param direction The direction vector in which the scalar stress value is calculated.
343 */
344template <typename T>
345T
347 const Point & point1,
348 const Point & point2,
349 const Point & curr_point,
350 Point & direction)
351{
352 // Calculate the cross of the normal to the axis of rotation from the current
353 // location and the axis of rotation
354 Point xp;
355 normalPositionVector(point1, point2, curr_point, xp);
356 Point axis_rotation = point2 - point1;
357 Point yp = axis_rotation / axis_rotation.norm();
358 Point zp = xp.cross(yp);
359
360 // Calculate the scalar value of the hoop stress
361 T hoop_stress = zp * (stress * zp);
362
363 direction = zp;
364
365 return hoop_stress;
366}
367
368/* The radial stress is calculated as
369 * radial_stress = normal^T_i * \sigma_{ij} * normal_j
370 * where normal is the position vector of the current point that is normal to
371 * the user-defined axis of rotation; the axis direction is specified with two points.
372 * @param point1 The starting point of the rotation axis for a cylinderical system
373 * @param point2 The end point of the rotation axis
374 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
375 * @param direction The direction vector in which the scalar stress value is calculated.
376 */
377template <typename T>
378T
380 const Point & point1,
381 const Point & point2,
382 const Point & curr_point,
383 Point & direction)
384{
385 Point radial_norm;
386 normalPositionVector(point1, point2, curr_point, radial_norm);
387
388 // Compute the scalar stress component in the direction of the normal vector from the
389 // user-defined axis of rotation.
390 T radial_stress = radial_norm * (stress * radial_norm);
391
392 direction = radial_norm;
393
394 return radial_stress;
395}
396
397/* The radial stress is calculated as
398 * radial_stress = radial^T_i * \sigma_{ij} * radial_j
399 * where normal is the position vector of the current point that is normal to
400 * the user-defined axis of rotation;
401 * @param center The center point of the spherical system
402 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
403 * @param direction The direction vector in which the scalar stress value is calculated.
404 */
405template <typename T>
406T
408 const Point & center,
409 const Point & curr_point,
410 Point & direction)
411{
412 Point radial = curr_point - center;
413 radial /= radial.norm();
414
415 // Compute the scalar stress component in the radial direction
416 T radial_stress = radial * (stress * radial);
417
418 direction = radial;
419
420 return radial_stress;
421}
422
423/* The hoop stress is calculated as
424 * hoop_stress = tangential^T_i * \sigma_{ij} * tangential_j
425 * where tangential is tangential direction at the current point in the spherical system;
426 * @param center The center point of the spherical system
427 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
428 * @param direction The direction vector in which the scalar stress value is calculated.
429 */
430template <typename T>
431T
433 const Point & center,
434 const Point & curr_point,
435 Point & direction)
436{
437 Point radial = curr_point - center;
438 Real r = radial.norm();
439 radial /= r;
440
441 // Given normal vector N=(n1,n2,n3) and current point C(c1,c2,c3), the tangential plane is then
442 // defined as n1(x-c1) + n2(y-c2) + n3(z-c3)=0. Let us assume n1!=0, the arbitrary point P on this
443 // plane can be taken as P(x,c2+r,c3+r) where r is the radius. The x can be solved as x =
444 // -r(n2+n3)/n1 + c1. The tangential vector PC is given as P-C.
445
446 Point tangential;
447
448 if (!MooseUtils::absoluteFuzzyEqual(radial(0), 0.0))
449 {
450 Real x = curr_point(0) - (radial(1) + radial(2)) * r / radial(0);
451 tangential = Point(x, curr_point(1) + r, curr_point(2) + r) - curr_point;
452 }
453 else if (!MooseUtils::absoluteFuzzyEqual(radial(1), 0.0))
454 {
455 Real y = curr_point(1) - (radial(0) + radial(2)) * r / radial(1);
456 tangential = Point(curr_point(0) + r, y, curr_point(2) + r) - curr_point;
457 }
458 else if (!MooseUtils::absoluteFuzzyEqual(radial(1), 0.0))
459 {
460 Real z = curr_point(2) - (radial(0) + radial(1)) * r / radial(2);
461 tangential = Point(curr_point(0) + r, curr_point(1) + r, z) - curr_point;
462 }
463 else
464 mooseError("In Hoop stress calculation for spherical geometry, the current (quadracture) point "
465 "is likely to be at the center. ");
466
467 tangential /= tangential.norm();
468
469 // Compute the scalar stress component in the hoop direction
470 T hoop_stress = 0.0;
471 for (unsigned int i = 0; i < 3; ++i)
472 for (unsigned int j = 0; j < 3; ++j)
473 hoop_stress += tangential(j) * stress(j, i) * tangential(i);
474
475 direction = tangential;
476
477 return hoop_stress;
478}
479
480/*
481 * This method calculates the scalar value of the supplied rank-2 tensor in the
482 * direction specified by the user.
483 */
484template <typename T>
485T
486directionValueTensor(const RankTwoTensorTempl<T> & r2tensor, const Point & direction)
487{
488 T tensor_value_in_direction = direction * (r2tensor * direction);
489
490 return tensor_value_in_direction;
491}
492
493/*
494 * Triaxiality is the ratio of the hydrostatic stress to the von Mises stress.
495 */
496template <typename T>
497T
499{
500 return hydrostatic(stress) / vonMisesStress(stress);
501}
502
503/*
504 * maxShear is the maximum shear stress defined as the maximum principal
505 * stress minus the minimum principal stress.
506 */
507template <typename T>
508T
510{
512 return (maxPrincipal(stress, dummy) - minPrincipal(stress, dummy)) / 2.;
513}
514/*
515 * stressIntensity is defined as two times the maximum shear stress.
516 */
517template <typename T>
518T
520{
521 return 2. * maxShear(stress);
522}
523
524/*
525 * Return scalar quantity of a rank two tensor based on the user specified scalar_type
526 * @param point1 The starting point of the rotation axis for a cylinderical system
527 * @param point2 The end point of the rotation axis
528 * @param curr_point The point corresponding to the stress (pass in & _q_point[_qp])
529 * @param direction The direction vector in which the scalar stress value is calculated
530 * point1 and point2 are required only for the cases of axialStress, hoopStress and radialStress
531 * curr_point is required only for the cases of hoopStress and radialStress
532 * direction is required only for directionValueTensor
533 * for all other cases, these parameters will take the default values
534 */
535template <typename T>
536T
538 const MooseEnum & scalar_type,
539 const Point & point1,
540 const Point & point2,
541 const Point & curr_point,
542 Point & direction)
543{
544 switch (scalar_type)
545 {
546 case 0:
547 return vonMisesStress(tensor);
548 case 1:
549 mooseError("To compute an effective inelastic strain use "
550 "RankTwoScalarTools::effectiveStrain()");
551 case 2:
552 return hydrostatic(tensor);
553 case 3:
554 return L2norm(tensor);
555 case 4:
556 return maxPrincipal(tensor, direction);
557 case 5:
558 return midPrincipal(tensor, direction);
559 case 6:
560 return minPrincipal(tensor, direction);
561 case 7:
562 return volumetricStrain(tensor);
563 case 8:
564 return firstInvariant(tensor);
565 case 9:
566 return secondInvariant(tensor);
567 case 10:
568 return thirdInvariant(tensor);
569 case 11:
570 return axialStress(tensor, point1, point2, direction);
571 case 12:
572 return hoopStress(tensor, point1, point2, curr_point, direction);
573 case 13:
574 return radialStress(tensor, point1, point2, curr_point, direction);
575 case 14:
576 return triaxialityStress(tensor);
577 case 15:
578 return directionValueTensor(tensor, direction);
579 case 16:
580 return maxShear(tensor);
581 case 17:
582 return stressIntensity(tensor);
583 default:
584 mooseError("RankTwoScalarTools Error: invalid scalar type");
585 }
586}
587
588template <typename T>
589T
591 const CylindricalComponent & scalar_type,
592 const Point & point1,
593 const Point & point2,
594 const Point & curr_point,
595 Point & direction)
596{
597 switch (scalar_type)
598 {
600 return axialStress(tensor, point1, point2, direction);
602 return hoopStress(tensor, point1, point2, curr_point, direction);
604 return radialStress(tensor, point1, point2, curr_point, direction);
605 default:
606 mooseError("RankTwoCylindricalComponent Error: scalar type invalid");
607 }
608}
609
610template <typename T>
611T
613 const SphericalComponent & scalar_type,
614 const Point & center,
615 const Point & curr_point,
616 Point & direction)
617{
618 switch (scalar_type)
619 {
621 return hoopStress(tensor, center, curr_point, direction);
623 return radialStress(tensor, center, curr_point, direction);
624 default:
625 mooseError("RankTwoSphericalComponent Error: scalar type invalid");
626 }
627}
628
629template <typename T>
630T
632 const InvariantType & scalar_type,
633 libMesh::TypeVector<T> & direction)
634{
635 switch (scalar_type)
636 {
638 return maxPrincipal(tensor, direction);
640 return midPrincipal(tensor, direction);
642 return minPrincipal(tensor, direction);
643 default:
644 mooseError("RankTwoInvariant Error: valid invariant");
645 }
646}
647
648template <typename T>
649T
650getDirectionalComponent(const RankTwoTensorTempl<T> & tensor, const Point & direction)
651{
652 return directionValueTensor(tensor, direction);
653}
654
655template <typename T>
656T
657getInvariant(const RankTwoTensorTempl<T> & tensor, const InvariantType & scalar_type)
658{
659 switch (scalar_type)
660 {
662 return vonMisesStress(tensor);
664 mooseError("To compute an effective inelastic strain use "
665 "RankTwoScalarTools::effectiveStrain()");
667 return hydrostatic(tensor);
669 return L2norm(tensor);
671 return volumetricStrain(tensor);
673 return firstInvariant(tensor);
675 return secondInvariant(tensor);
677 return thirdInvariant(tensor);
679 return triaxialityStress(tensor);
681 return maxShear(tensor);
683 return stressIntensity(tensor);
684 default:
685 mooseError("RankTwoCartesianComponent Error: Pass valid invariant - " +
686 invariantOptions().getRawNames());
687 }
688}
689
690void setRotationMatrix(const RealVectorValue & outwardnormal,
691 const RealVectorValue & axialVector,
692 RankTwoTensor & rotationMatrix,
693 const bool transpose);
694
695template <bool is_ad>
696void
698 GenericDenseVector<is_ad> & voigt_vector)
699{
700 voigt_vector(0) = tensor(0, 0);
701 voigt_vector(1) = tensor(1, 1);
702 voigt_vector(2) = tensor(2, 2);
703 voigt_vector(3) = tensor(0, 1);
704 voigt_vector(4) = tensor(1, 2);
705 voigt_vector(5) = tensor(0, 2);
706}
707
708template <bool is_ad>
709void
712{
713 tensor(0, 0) = voigt_vector(0);
714 tensor(1, 1) = voigt_vector(1);
715 tensor(2, 2) = voigt_vector(2);
716 tensor(0, 1) = tensor(1, 0) = voigt_vector(3);
717 tensor(1, 2) = tensor(2, 1) = voigt_vector(4);
718 tensor(0, 2) = tensor(2, 0) = voigt_vector(5);
719}
720}
const std::vector< double > y
const std::vector< double > x
const double T
void mooseError(Args &&... args)
Moose::GenericType< DenseVector< Real >, is_ad > GenericDenseVector
Moose::GenericType< RankTwoTensor, is_ad > GenericRankTwoTensor
Point center
T doubleContraction(const RankTwoTensorTempl< T > &a) const
libMesh::VectorValue< T > column(const unsigned int i) const
RankTwoTensorTempl< T > deviatoric() const
void symmetricEigenvaluesEigenvectors(std::vector< T > &eigvals, RankTwoTensorTempl< T > &eigvecs) const
MooseEnum scalarOptions()
This enum is left for legacy calls.
T getSphericalComponent(const RankTwoTensorTempl< T > &tensor, const SphericalComponent &scalar_type, const Point &center, const Point &curr_point, Point &direction)
T axialStress(const RankTwoTensorTempl< T > &stress, const Point &point1, const Point &point2, Point &direction)
T secondInvariant(const RankTwoTensorTempl< T > &r2tensor)
MooseEnum cylindricalOptions()
T effectiveStrain(const RankTwoTensorTempl< T > &strain)
T getInvariant(const RankTwoTensorTempl< T > &tensor, const InvariantType &scalar_type)
T midPrincipal(const RankTwoTensorTempl< T > &r2tensor, libMesh::TypeVector< T > &direction)
T minPrincipal(const RankTwoTensorTempl< T > &r2tensor, libMesh::TypeVector< T > &direction)
T getCylindricalComponent(const RankTwoTensorTempl< T > &tensor, const CylindricalComponent &scalar_type, const Point &point1, const Point &point2, const Point &curr_point, Point &direction)
T triaxialityStress(const RankTwoTensorTempl< T > &stress)
T maxShear(const RankTwoTensorTempl< T > &stress)
T radialStress(const RankTwoTensorTempl< T > &stress, const Point &point1, const Point &point2, const Point &curr_point, Point &direction)
T stressIntensity(const RankTwoTensorTempl< T > &stress)
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)
void RankTwoTensorToVoigtVector(const GenericRankTwoTensor< is_ad > &tensor, GenericDenseVector< is_ad > &voigt_vector)
T getQuantity(const RankTwoTensorTempl< T > &tensor, const MooseEnum &scalar_type, const Point &point1, const Point &point2, const Point &curr_point, Point &direction)
T vonMisesStress(const RankTwoTensorTempl< T > &stress)
T hoopStress(const RankTwoTensorTempl< T > &stress, const Point &point1, const Point &point2, const Point &curr_point, Point &direction)
T getDirectionalComponent(const RankTwoTensorTempl< T > &tensor, const Point &direction)
T thirdInvariant(const RankTwoTensorTempl< T > &r2tensor)
T getPrincipalComponent(const RankTwoTensorTempl< T > &tensor, const InvariantType &scalar_type, libMesh::TypeVector< T > &direction)
T firstInvariant(const RankTwoTensorTempl< T > &r2tensor)
void setRotationMatrix(const RealVectorValue &outwardnormal, const RealVectorValue &axialVector, RankTwoTensor &rotationMatrix, const bool transpose)
T directionValueTensor(const RankTwoTensorTempl< T > &r2tensor, const Point &direction)
void VoigtVectorToRankTwoTensor(const GenericDenseVector< is_ad > &voigt_vector, GenericRankTwoTensor< is_ad > &tensor)
void normalPositionVector(const Point &point1, const Point &point2, const Point &curr_point, Point &normalPosition)
T calcEigenValuesEigenVectors(const RankTwoTensorTempl< T > &r2tensor, unsigned int index, libMesh::TypeVector< T > &eigenvec)
T hydrostatic(const RankTwoTensorTempl< T > &r2tensor)
T volumetricStrain(const RankTwoTensorTempl< T > &strain)
T maxPrincipal(const RankTwoTensorTempl< T > &r2tensor, libMesh::TypeVector< T > &direction)