OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
idege8.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!|| idege8 ../engine/source/elements/solid/solide/idege8.F
25!||--- called by ------------------------------------------------------
26!|| sdlen_dege ../engine/source/elements/solid/solide/sdlen_dege.F
27!|| sdlen_sms ../engine/source/elements/solid/solidez/sdlen_sms.F
28!||====================================================================
29 SUBROUTINE idege8(X1,X2,X3,X4,Y1,Y2,Y3,Y4,Z1,Z2,Z3,Z4,AMAX,FAC,IT)
30C-----------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C D u m m y A r g u m e n t s
36C-----------------------------------------------
38 . x1, x2, x3, x4, y1, y2, y3, y4,
39 . z1, z2, z3, z4,amax,fac
40C-----------------------------------------------
41C L o c a l V a r i a b l e s
42C-----------------------------------------------
43 INTEGER IDE,IT
45 . x12,y12,z12,x23,y23,z23,x34,y34,z34,x41,y41,z41,a,
46 . rx,ry,rz,sx,sy,sz,nx,ny,nz
47C-----------------------------------------------
48 rx = x2+x3-x1-x4
49 ry = y2+y3-y1-y4
50 rz = z2+z3-z1-z4
51 sx = x3+x4-x1-x2
52 sy = y3+y4-y1-y2
53 sz = z3+z4-z1-z2
54 nx = ry * sz - rz * sy
55 ny = rz * sx - rx * sz
56 nz = rx * sy - ry * sx
57C--------A: (2*AREA)^2-----
58 a = nx*nx+ny*ny+nz*nz
59 ide = 0
60 x12 = x2 - x1
61 y12 = y2 - y1
62 z12 = z2 - z1
63 IF (x12==zero.AND.y12==zero.AND.z12==zero) THEN
64 ide = 1
65 GOTO 10
66 ENDIF
67C
68 x23 = x2 - x3
69 y23 = y2 - y3
70 z23 = z2 - z3
71 IF (x23==zero.AND.y23==zero.AND.z23==zero) THEN
72 ide = 1
73 GOTO 10
74 ENDIF
75C
76 x34 = x4 - x3
77 y34 = y4 - y3
78 z34 = z4 - z3
79 IF (x34==zero.AND.y34==zero.AND.z34==zero) THEN
80 ide = 1
81 GOTO 10
82 ENDIF
83C
84 x41 = x4 - x1
85 y41 = y4 - y1
86 z41 = z4 - z1
87 IF (x41==zero.AND.y41==zero.AND.z41==zero) THEN
88 ide = 1
89 GOTO 10
90 ENDIF
91C
92 10 CONTINUE
93C
94 IF (a > amax )THEN
95 it=ide
96 amax = a
97 END IF
98 RETURN
99 END
#define my_real
Definition cppsort.cpp:32
subroutine idege8(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, amax, fac, it)
Definition idege8.F:30