OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r2r_clean_inter.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine r2r_clean_inter (ipari2, intbuf_tab, ipartc, ipartg, iparts, isolnod)

Function/Subroutine Documentation

◆ r2r_clean_inter()

subroutine r2r_clean_inter ( integer, dimension(npari,*) ipari2,
type(intbuf_struct_), dimension(*) intbuf_tab,
integer, dimension(*) ipartc,
integer, dimension(*) ipartg,
integer, dimension(*) iparts,
integer, dimension(*) isolnod )

Definition at line 33 of file r2r_clean_inter.F.

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
integer, dimension(:), allocatable tagno
Definition r2r_mod.F:132
subroutine r2r_check_seg(eltag, face, ipartc, ipartg, iparts, isolnod)