OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
gloa24.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!|| gloa24 ../engine/source/materials/mat/mat024/gloa24.F
25!||--- called by ------------------------------------------------------
26!|| conc24 ../engine/source/materials/mat/mat024/conc24.F
27!||====================================================================
28 SUBROUTINE gloa24(NEL,STRAIN,DT1,ARM1,ARM2,ARM3,
29 . D1,D2,D3,D4,D5,D6,
30 . R11,R12,R13,R21,R22,
31 . R23,R31,R32,R33,
32 . DEPS1,DEPS2,DEPS3,DEPS4,DEPS5,DEPS6)
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
41 my_real DT1
42 my_real, DIMENSION(NEL,6), INTENT(IN) :: STRAIN
43 my_real, DIMENSION(NEL) , INTENT(IN) :: D1,D2,D3,D4,D5,D6,
44 . r11,r12,r13,r21,r22,r23,r31,r32,r33
45 my_real, DIMENSION(NEL) , INTENT(INOUT) :: arm1,arm2,arm3
46 my_real, DIMENSION(NEL) , INTENT(OUT) :: deps1,deps2,deps3,deps4,deps5,deps6
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER I
51 my_real, DIMENSION(NEL) :: H1, H2, H3,H4, H5, H6,
52 . A11, A12, A13, A21, A22, A23, A31,A32, A33
53C=======================================================================
54 DO i=1,nel
55 deps1(i)=d1(i)*dt1
56 deps2(i)=d2(i)*dt1
57 deps3(i)=d3(i)*dt1
58 deps4(i)=half*d4(i)*dt1
59 deps5(i)=half*d5(i)*dt1
60 deps6(i)=half*d6(i)*dt1
61 a11(i)=deps1(i)*r11(i)+deps4(i)*r21(i)+deps6(i)*r31(i)
62 a12(i)=deps1(i)*r12(i)+deps4(i)*r22(i)+deps6(i)*r32(i)
63 a13(i)=deps1(i)*r13(i)+deps4(i)*r23(i)+deps6(i)*r33(i)
64 a21(i)=deps4(i)*r11(i)+deps2(i)*r21(i)+deps5(i)*r31(i)
65 a22(i)=deps4(i)*r12(i)+deps2(i)*r22(i)+deps5(i)*r32(i)
66 a23(i)=deps4(i)*r13(i)+deps2(i)*r23(i)+deps5(i)*r33(i)
67 a31(i)=deps6(i)*r11(i)+deps5(i)*r21(i)+deps3(i)*r31(i)
68 a32(i)=deps6(i)*r12(i)+deps5(i)*r22(i)+deps3(i)*r32(i)
69 a33(i)=deps6(i)*r13(i)+deps5(i)*r23(i)+deps3(i)*r33(i)
70 ENDDO
71 DO i=1,nel
72 deps1(i)=r11(i)*a11(i)+r21(i)*a21(i)+r31(i)*a31(i)
73 deps2(i)=r12(i)*a12(i)+r22(i)*a22(i)+r32(i)*a32(i)
74 deps3(i)=r13(i)*a13(i)+r23(i)*a23(i)+r33(i)*a33(i)
75 deps4(i)=r11(i)*a12(i)+r21(i)*a22(i)+r31(i)*a32(i)
76 deps5(i)=r12(i)*a13(i)+r22(i)*a23(i)+r32(i)*a33(i)
77 deps6(i)=r11(i)*a13(i)+r21(i)*a23(i)+r31(i)*a33(i)
78 deps4(i)=two*deps4(i)
79 deps5(i)=two*deps5(i)
80 deps6(i)=two*deps6(i)
81 ENDDO
82C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
83 DO i=1,nel
84 h1(i)=strain(i,1)
85 h2(i)=strain(i,2)
86 h3(i)=strain(i,3)
87 h4(i)=half*strain(i,4)
88 h5(i)=half*strain(i,5)
89 h6(i)=half*strain(i,6)
90 a11(i)=h1(i)*r11(i)+h4(i)*r21(i)+h6(i)*r31(i)
91 a12(i)=h1(i)*r12(i)+h4(i)*r22(i)+h6(i)*r32(i)
92 a13(i)=h1(i)*r13(i)+h4(i)*r23(i)+h6(i)*r33(i)
93 a21(i)=h4(i)*r11(i)+h2(i)*r21(i)+h5(i)*r31(i)
94 a22(i)=h4(i)*r12(i)+h2(i)*r22(i)+h5(i)*r32(i)
95 a23(i)=h4(i)*r13(i)+h2(i)*r23(i)+h5(i)*r33(i)
96 a31(i)=h6(i)*r11(i)+h5(i)*r21(i)+h3(i)*r31(i)
97 a32(i)=h6(i)*r12(i)+h5(i)*r22(i)+h3(i)*r32(i)
98 a33(i)=h6(i)*r13(i)+h5(i)*r23(i)+h3(i)*r33(i)
99 ENDDO
100 DO i=1,nel
101 h1(i)=r11(i)*a11(i)+r21(i)*a21(i)+r31(i)*a31(i)
102 h2(i)=r12(i)*a12(i)+r22(i)*a22(i)+r32(i)*a32(i)
103 h3(i)=r13(i)*a13(i)+r23(i)*a23(i)+r33(i)*a33(i)
104 arm1(i)=arm1(i) * max(zero,1.-h2(i)-h3(i))
105 arm2(i)=arm2(i) * max(zero,1.-h1(i)-h3(i))
106 arm3(i)=arm3(i) * max(zero,1.-h1(i)-h2(i))
107 ENDDO
108C
109 RETURN
110 END
subroutine gloa24(nel, strain, dt1, arm1, arm2, arm3, d1, d2, d3, d4, d5, d6, r11, r12, r13, r21, r22, r23, r31, r32, r33, deps1, deps2, deps3, deps4, deps5, deps6)
Definition gloa24.F:33
#define max(a, b)
Definition macros.h:21