OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
n2edge3l.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!|| n2edge3l ../engine/source/interfaces/int24/n2edge3l.f
25!||--- called by ------------------------------------------------------
26!|| intersecsh ../engine/source/interfaces/int24/i24dst3.F
27!||====================================================================
28 SUBROUTINE n2edge3l(
29 1 XXI ,YYI ,ZZI ,
30 2 XXJ ,YYJ ,ZZJ ,
31 3 NX ,NY ,NZ ,
32 4 XI ,YI ,ZI ,BBB )
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-----------------------------------------------
40C REAL
41 my_real , INTENT(IN) ::
42 1 xxi ,yyi ,zzi ,
43 2 xxj ,yyj ,zzj ,
44 3 nx ,ny ,nz ,
45 4 xi ,yi ,zi
46 my_real , INTENT(OUT) :: bbb
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER I
51 my_real
52 . XMIJ(3),NIJ(3),DI(3),AA,NORM
53C-----------------------------------------------
54 xmij(1)=xxj-xxi
55 xmij(2)=yyj-yyi
56 xmij(3)=zzj-zzi
57 nij(1)= ny*xmij(3) - nz*xmij(2)
58 nij(2)= nz*xmij(1) - nx*xmij(3)
59 nij(3)= nx*xmij(2) - ny*xmij(1)
60 aa = nij(1)*nij(1)+nij(2)*nij(2)+nij(3)*nij(3)
61 norm=max(em20,sqrt(aa))
62 di(1)=half*(xxi+xxj)-xi
63 di(2)=half*(yyi+yyj)-yi
64 di(3)=half*(zzi+zzj)-zi
65 bbb = (di(1)*nij(1)+di(2)*nij(2)+di(3)*nij(3))/norm
66 IF (abs(bbb)<em3) then
67 xmij(1)=xxj-xi
68 xmij(2)=yyj-yi
69 xmij(3)=zzj-zi
70 aa = di(1)*xmij(1)+di(2)*xmij(2)+di(3)*xmij(3)
71 IF (aa>abs(bbb)) bbb = aa
72 END IF
73C
74 RETURN
75 END
76
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21
subroutine n2edge3l(xxi, yyi, zzi, xxj, yyj, zzj, nx, ny, nz, xi, yi, zi, bbb)
Definition n2edge3l.F:33