added math_spherical33 to calculate hydrostatic part of a 2nd order tensor
This commit is contained in:
parent
2e1362ea77
commit
1d1672ebfc
|
@ -107,6 +107,7 @@ module math
|
|||
math_symmetric33, &
|
||||
math_symmetric66, &
|
||||
math_skew33, &
|
||||
math_spherical33, &
|
||||
math_deviatoric33, &
|
||||
math_equivStrain33, &
|
||||
math_equivStress33, &
|
||||
|
@ -894,6 +895,21 @@ pure function math_skew33(m)
|
|||
|
||||
end function math_skew33
|
||||
|
||||
!--------------------------------------------------------------------------------------------------
|
||||
!> @brief hydrostatic part of a 33 matrix
|
||||
!--------------------------------------------------------------------------------------------------
|
||||
pure function math_spherical33(m)
|
||||
|
||||
implicit none
|
||||
real(pReal), dimension(3,3) :: math_spherical33
|
||||
real(pReal), dimension(3,3), intent(in) :: m
|
||||
real(pReal) :: hydrostatic
|
||||
|
||||
hydrostatic = (m(1,1) + m(2,2) + m(3,3)) / 3.0_pReal
|
||||
math_spherical33 = math_I3 * hydrostatic
|
||||
|
||||
end function math_spherical33
|
||||
|
||||
|
||||
!--------------------------------------------------------------------------------------------------
|
||||
!> @brief deviatoric part of a 33 matrix
|
||||
|
|
Loading…
Reference in New Issue