OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i1chk2.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/.
23C
24!||====================================================================
25!|| i1chk2 ../starter/source/interfaces/inter2d1/i1chk2.F
26!||--- called by ------------------------------------------------------
27!|| inint2 ../starter/source/interfaces/inter2d1/inint2.F
28!||--- calls -----------------------------------------------------
29!|| inori2 ../starter/source/interfaces/inter2d1/inori2.F
30!|| inrch2 ../starter/source/interfaces/inter2d1/inrch2.F
31!|| local_index ../starter/source/interfaces/interf1/local_index.F
32!||--- uses -----------------------------------------------------
33!||====================================================================
34 SUBROUTINE i1chk2(X,IRECT,IXQ,NRT,NINT,NSN,NSV,NOINT,ID,TITR)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER NRT, NINT, NSN, NOINT
47 INTEGER IRECT(4,*), IXQ(*), NSV(*)
48 my_real x(3,*)
49 INTEGER ID
50 CHARACTER(LEN=NCHARTITLE)::TITR
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I, II, NEL, IG, IL
55 my_real ym1, ym2, zm1, zm2, ye(4) ,ze(4)
56C-----------------------------------------------
57C S o u r c e L i n e s
58C-----------------------------------------------
59C
60 ! LOOP OVER FLUID SEGMENTS (SECND)
61 DO i=1,nrt
62 ii=i
63 !SEARCH FOR QUAD CONNECTED TO CURRENT FLUID SEGMENT
64 CALL inrch2(x , irect, ixq, ii , nel,
65 . nint , ym1 , ym2, zm1,
66 . zm2 , ye , ze , id , titr)
67
68 !CHECK SEGMENT CONNECTIVITY, REVERSE IT IF NEEDED
69 CALL inori2(irect, ii , nel, nint,
70 . noint, ym1 , ym2, zm1, zm2 ,
71 . ye , ze )
72 ENDDO
73C-----------------------------------------------
74C IRECT <- REPLACE INTERNAL IDENTIFIER 'IG' WITH LOCAL ID 'IL' FROM FLUID NODES : NSV(IL)=IG
75C-----------------------------------------------
76 ! LOOP OVER FLUID SEGMENTS (SECND)
77 DO i=1,nrt
78
79 ig=irect(1,i)
80 ! NSV(IL)=IG , IL \in [1:NSN]
81 CALL local_index(il,ig,nsv,nsn) !NSV:list of fluid nodes (ordered), !NSN:number of fluid nodes
82 irect(1,i)=il
83
84 ig=irect(2,i) !also for other segment node.
85 ! NSV(IL)=IG , IL \in [1:NSN]
86 CALL local_index(il,ig,nsv,nsn)
87 irect(2,i)=il
88
89 ENDDO
90C-----------------------------------------------
91 RETURN
92 END
#define my_real
Definition cppsort.cpp:32
subroutine i1chk2(x, irect, ixq, nrt, nint, nsn, nsv, noint, id, titr)
Definition i1chk2.F:35
subroutine inori2(irect, isg, nel, nint, noint, ym1, ym2, zm1, zm2, ye, ze)
Definition inori2.F:34
subroutine inrch2(x, irect, ico, isg, nel, nint, ym1, ym2, zm1, zm2, ye, ze, id, titr)
Definition inrch2.F:37
subroutine local_index(il, ig, nodes, n)
Definition local_index.F:37
integer, parameter nchartitle