OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
q4coor2.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!|| q4coor2 ../engine/source/elements/solid_2d/quad4/q4coor2.F
25!||--- called by ------------------------------------------------------
26!|| q4forc2 ../engine/source/elements/solid_2d/quad4/q4forc2.F
27!||====================================================================
28 SUBROUTINE q4coor2(
29 1 X, NCP, Y1, Y2,
30 2 Y3, Y4, Z1, Z2,
31 3 Z3, Z4, NC1, NC2,
32 4 NC3, NC4, NGL, MAT,
33 5 NGEO, VD2, VIS, V,
34 6 VY1, VY2, VY3, VY4,
35 7 VZ1, VZ2, VZ3, VZ4,
36 8 YAVG, AY, EXX, NEL,
37 9 JHBE)
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C G l o b a l P a r a m e t e r s
44C-----------------------------------------------
45#include "mvsiz_p.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER, INTENT(IN) :: NEL
50 INTEGER, INTENT(IN) :: JHBE
51 INTEGER NC1(*), NC2(*), NC3(*), NC4(*), MAT(*), NGL(*), NGEO(*),
52 . NCP(7,*)
53C REAL
54 my_real
55 . X(3,*),Y1(*),Y2(*),Y3(*),Y4(*),Z1(*),Z2(*),Z3(*),Z4(*),VD2(*),
56 . VY1(*),VY2(*),VY3(*),VY4(*),
57 . VZ1(*),VZ2(*),VZ3(*),VZ4(*),
58 . v(3,*),yavg(*),exx(*),ay(*),vis(*)
59C-----------------------------------------------
60C C o m m o n B l o c k s
61C-----------------------------------------------
62#include "com01_c.inc"
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I,II,IV
67 my_real
68 . VYG(MVSIZ)
69C-----------------------------------------------
70 DO I=1,nel
71 ngeo(i)=ncp(6,i)
72 ngl(i)=ncp(7,i)
73 mat(i)=ncp(1,i)
74 nc1(i)=ncp(2,i)
75 nc2(i)=ncp(3,i)
76 nc3(i)=ncp(4,i)
77 nc4(i)=ncp(5,i)
78 END DO
79C
80C----------------------------
81C COORDONNEES NODALES
82C----------------------------
83 DO i=1,nel
84 y1(i)=x(2,nc1(i))
85 z1(i)=x(3,nc1(i))
86 y2(i)=x(2,nc2(i))
87 z2(i)=x(3,nc2(i))
88 y3(i)=x(2,nc3(i))
89 z3(i)=x(3,nc3(i))
90 y4(i)=x(2,nc4(i))
91 z4(i)=x(3,nc4(i))
92 END DO
93C
94 DO i=1,nel
95 vy1(i)=v(2,nc1(i))
96 vz1(i)=v(3,nc1(i))
97 vy2(i)=v(2,nc2(i))
98 vz2(i)=v(3,nc2(i))
99 vy3(i)=v(2,nc3(i))
100 vz3(i)=v(3,nc3(i))
101 vy4(i)=v(2,nc4(i))
102 vz4(i)=v(3,nc4(i))
103 END DO
104C-----Exx ia calculated anyway in global system
105 IF(n2d==1) THEN
106 DO i=1,nel
107 yavg(i) = y1(i)+y2(i)+y3(i)+y4(i)
108 vyg(i) = vy1(i)+vy2(i)+vy3(i)+vy4(i)
109 ENDDO
110C-----JHBE=17 -> petrov G, constant Exx, JHBE=22-> Bubnov
111 DO i=1,nel
112 ay(i) =one/max(em20,yavg(i))
113 exx(i) = vyg(i)*ay(i)
114 ENDDO
115 ENDIF
116 DO i=1,nel
117 vd2(i)=zero
118 vis(i)=zero
119 ENDDO
120C
121 RETURN
122 END
subroutine q4coor2(x, ncp, y1, y2, y3, y4, z1, z2, z3, z4, nc1, nc2, nc3, nc4, ngl, mat, ngeo, vd2, vis, v, vy1, vy2, vy3, vy4, vz1, vz2, vz3, vz4, yavg, ay, exx, nel, jhbe)
Definition q4coor2.F:38
#define max(a, b)
Definition macros.h:21