OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mstrain_rate.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| mstrain_rate ../engine/source/materials/mat_share/mstrain_rate.F
25!||--- called by ------------------------------------------------------
26!|| m2law ../engine/source/materials/mat/mat002/m2law.F
27!|| mulaw ../engine/source/materials/mat_share/mulaw.F90
28!|| sigeps44 ../engine/source/materials/mat/mat044/sigeps44.F
29!|| sigeps93 ../engine/source/materials/mat/mat093/sigeps93.F
30!||====================================================================
31 SUBROUTINE mstrain_rate(NEL ,ISRATE ,ASRATE ,EPSD ,IDEV ,
32 . EP1 ,EP2 ,EP3 ,EP4 ,EP5 ,EP6)
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C D u m m y A r g u m e n t s
39C-----------------------------------------------
40 INTEGER NEL,ISRATE,IDEV
41 my_real asrate
42 my_real, DIMENSION(NEL), INTENT(IN) :: ep1, ep2, ep3, ep4, ep5, ep6
43 my_real, DIMENSION(NEL), INTENT(INOUT) :: epsd
44C---------------------------------------------------
45C L o c a l V a r i a b l e s
46C---------------------------------------------------
47 INTEGER I
48 my_real :: e1, e2, e3, e4, e5, e6, dav, epsp
49 my_real :: epsdot(nel)
50c-----------------------------------------------------------------------
51c COMPUTE EQUIVALENT STRAIN RATE
52c IDEV = 0 => total strain rate
53c IDEV = 1 => deviatoric strain rate
54C=======================================================================
55 IF (israte >= 0) THEN ! calculate strain rate
56 IF (idev == 0) THEN ! total strain rate
57 DO i=1,nel
58 e1 = ep1(i)
59 e2 = ep2(i)
60 e3 = ep3(i)
61 e4 = half*ep4(i)
62 e5 = half*ep5(i)
63 e6 = half*ep6(i)
64 epsp = e1**2 + e2**2 + e3**2 + two*(e4**2 + e5**2 + e6**2)
65 epsdot(i) = sqrt(epsp)
66 ENDDO
67 ELSE ! deviatoric strain rate
68 DO i=1,nel
69 dav = (ep1(i)+ep2(i)+ep3(i))*third
70 e1 = ep1(i) - dav
71 e2 = ep2(i) - dav
72 e3 = ep3(i) - dav
73 e4 = half*ep4(i)
74 e5 = half*ep5(i)
75 e6 = half*ep6(i)
76 epsp = half*(e1**2 + e2**2 + e3**2) + e4**2 + e5**2 + e6**2
77 epsdot(i) = sqrt(three*epsp)/three_half
78 ENDDO
79 ENDIF
80 ENDIF
81c
82 IF (israte == 0) THEN
83 epsd(:) = epsdot(:)
84 ELSEIF (israte > 0) THEN
85 epsd(:) = asrate*epsdot(:) + (one - asrate)*epsd(:)
86 ENDIF
87c-----------
88 RETURN
89 END
#define my_real
Definition cppsort.cpp:32
subroutine mstrain_rate(nel, israte, asrate, epsd, idev, ep1, ep2, ep3, ep4, ep5, ep6)