OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r2r_clean_inter.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!|| r2r_clean_inter ../starter/source/coupling/rad2rad/r2r_clean_inter.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| r2r_check_seg ../starter/source/coupling/rad2rad/routines_r2r.F
29!||--- uses -----------------------------------------------------
30!|| r2r_mod ../starter/share/modules1/r2r_mod.F
31!|| restmod ../starter/share/modules1/restart_mod.F
32!||====================================================================
33 SUBROUTINE r2r_clean_inter(IPARI2,INTBUF_TAB,IPARTC,IPARTG,IPARTS,ISOLNOD)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE restmod
38 USE r2r_mod
39 USE intbufdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com04_c.inc"
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER IPARI2(NPARI,*),IPARTC(*),IPARTG(*),IPARTS(*),ISOLNOD(*)
53 TYPE(intbuf_struct_) INTBUF_TAB(*)
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER NI,J,NTYP,CUR_ID,NSN,NRTM,NRTS
58 INTEGER ELTAG,FACE(4)
59C-----------------------------------------------
60
61 DO ni=1,ninter
62 ntyp = ipari2(7,ni)
63 IF ((ntyp==7).OR.(ntyp==18).OR.(ntyp==10).OR.(ntyp==24)) THEN
64 nsn =ipari2(5,ni)
65 nrts =ipari2(3,ni)
66 nrtm =ipari2(4,ni)
67C------------------------> check of secondary nodes <----------C
68 DO j=1,nsn
69 cur_id = intbuf_tab(ni)%NSV(j)
70 IF ((tagno(cur_id+npart)==2).AND.(tagno(cur_id+npart+numnod)==-1)) THEN
71 intbuf_tab(ni)%STFNS(j) = zero
72 ENDIF
73 ENDDO
74
75C------------------------> check of main elements <--------------C
76 DO j=1,nrtm
77 face(1) = intbuf_tab(ni)%IRECTM(4*(j-1)+1)
78 face(2) = intbuf_tab(ni)%IRECTM(4*(j-1)+2)
79 face(3) = intbuf_tab(ni)%IRECTM(4*(j-1)+3)
80 face(4) = intbuf_tab(ni)%IRECTM(4*(j-1)+4)
81 IF (face(4)==0) face(4)=face(3)
82 CALL r2r_check_seg(eltag,face,ipartc,ipartg,iparts,isolnod)
83 IF (eltag==0) intbuf_tab(ni)%STFM(j) = zero
84 ENDDO
85
86 ENDIF
87 END DO
88
89C-----------
90
91 RETURN
92 END SUBROUTINE r2r_clean_inter
integer, dimension(:), allocatable tagno
Definition r2r_mod.F:132
subroutine r2r_clean_inter(ipari2, intbuf_tab, ipartc, ipartg, iparts, isolnod)
subroutine r2r_check_seg(eltag, face, ipartc, ipartg, iparts, isolnod)