OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
q4deri2.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!|| q4deri2 ../starter/source/elements/solid_2d/quad4/q4deri2.F
25!||--- called by ------------------------------------------------------
26!|| q4init2 ../starter/source/elements/solid_2d/quad4/q4init2.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!||--- uses -----------------------------------------------------
30!|| message_mod ../starter/share/message_module/message_mod.F
31!||====================================================================
32 SUBROUTINE q4deri2(VOL,KSI,ETA,WI,
33 2 Y12,Y34,Y13,Y24,Y14,Y23,
34 3 Z12,Z34,Z13,Z24,Z14,Z23,
35 4 Y1,Y2,Y3,Y4,YAVG,IHBE, NGL)
36 USE message_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "vect01_c.inc"
49#include "com01_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IHBE, NGL(*)
54 my_real
55 + VOL(*),KSI,ETA,WI,
56 + y12(*),y34(*),y13(*),y24(*),y14(*),y23(*),
57 + z12(*),z34(*),z13(*),z24(*),z14(*),z23(*),
58 + y1(*),y2(*),y3(*),y4(*),yavg(*)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER I
63 my_real
64 + DET(MVSIZ)
65 my_real
66 + qn1,qn2,qn3,qn4,yavg1
67C-----------------------------------------------
68C S o u r c e L i n e s
69C-----------------------------------------------
70 DO i=lft,llt
71C 8.*|J|
72 det(i) = (y34(i)*z12(i)-y12(i)*z34(i))*ksi +
73 + (y23(i)*z14(i)-y14(i)*z23(i))*eta +
74 + y13(i)*z24(i)-y24(i)*z13(i)
75C W*|J|
76 vol(i) = one_over_8*det(i)*wi
77 ENDDO
78C
79 IF(n2d==1) THEN
80 IF(ihbe==17) THEN
81 DO i=lft,llt
82 vol(i) = yavg(i)*vol(i)
83 ENDDO
84c ELSE
85c QN1 = (ONE - ETA)*(ONE - KSI)
86c QN2 = (ONE - ETA)*(KSI + ONE)
87c QN3 = (ETA + ONE)*(KSI + ONE)
88c QN4 = (ETA + ONE)*(ONE - KSI)
89c DO I=LFT,LLT
90c YAVG1 = FOURTH*(QN1*Y1(I)+QN2*Y2(I)+QN3*Y3(I)+QN4*Y4(I))
91c VOL(I) = YAVG1*VOL(I)
92c ENDDO
93 ENDIF
94 ENDIF
95C
96 DO i=lft,llt
97 IF(det(i)<=zero) THEN
98C WRITE(IOUT,1000) NGL(I)
99C CALL ARRET(2)
100 CALL ancmsg(msgid=228,
101 . msgtype=msgerror,
102 . anmode=aninfo,
103 . i1=ngl(i))
104 ENDIF
105 ENDDO
106C
107 RETURN
108 END
109
subroutine q4deri2(vol, ksi, eta, wi, y12, y34, y13, y24, y14, y23, z12, z34, z13, z24, z14, z23, y1, y2, y3, y4, yavg, ihbe, ngl)
Definition q4deri2.F:36
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889