OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sconnect_off.F File Reference
#include "implicit_f.inc"
#include "units_c.inc"
#include "scr17_c.inc"
#include "comlock.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine sconnect_off (elbuf_str, offg, nel, npg, ngl, isolid, time)

Function/Subroutine Documentation

◆ sconnect_off()

subroutine sconnect_off ( type (elbuf_struct_), target elbuf_str,
dimension(nel) offg,
integer nel,
integer npg,
integer, dimension(nel) ngl,
integer isolid,
time )

Definition at line 30 of file sconnect_off.F.

32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE elbufdef_mod
36C-------------------------------------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "units_c.inc"
44#include "scr17_c.inc"
45#include "comlock.inc"
46C----------------------------------------------------------
47C D u m m y A r g u m e n t s
48C----------------------------------------------------------
49 INTEGER NEL,NPG,ISOLID
50 INTEGER NGL(NEL)
51 my_real time
52 my_real ,DIMENSION(NEL) :: offg
53 TYPE (ELBUF_STRUCT_), TARGET :: ELBUF_STR
54C-----------------------------------------------
55C L O C A L V A R I A B L E S
56C-----------------------------------------------
57 INTEGER I,IPG,IEL,NINDX,NDEL
58 INTEGER ,DIMENSION(NEL) :: INDX
59 my_real ,DIMENSION(NEL) :: countpg
60 my_real ,DIMENSION(:) ,POINTER :: offl
61C=======================================================================
62 DO iel=1,nel
63 IF (offg(iel) < em01) offg(iel) = zero
64 IF (offg(iel) < one) offg(iel) = offg(iel)*four_over_5
65 ENDDO
66c
67 countpg(1:nel) = zero
68 DO ipg = 1,npg
69 offl => elbuf_str%BUFLY(1)%LBUF(ipg,1,1)%OFF(1:nel)
70 DO iel=1,nel
71 IF (offg(iel)==zero .AND. offl(iel)/=offg(iel))
72 . offl(iel)=offg(iel)
73 countpg(iel) = countpg(iel) + offl(iel)
74 ENDDO ! IEL=1,NEL
75 ENDDO
76c
77 nindx = 0
78 DO iel=1,nel
79 IF (offg(iel) == one) THEN
80 ndel = npg - countpg(iel)
81 IF (ndel >= isolid) THEN
82 nindx = nindx+1
83 indx(nindx) = iel
84 offg(iel) = four_over_5
85 idel7nok = 1
86 ENDIF
87 ENDIF
88 ENDDO ! IEL=1,NEL
89c----------------------------------------
90c Print out
91c----------------------------------------
92 IF (nindx > 0) THEN
93 DO i=1,nindx
94 iel = indx(i)
95#include "lockon.inc"
96 WRITE(iout ,1000) ngl(iel)
97 WRITE(istdo,1100) ngl(iel),time
98#include "lockoff.inc"
99 END DO
100 ENDIF
101c-------------------------------
102 1000 FORMAT(5x,' DELETE CONNECTION SOLID ELEMENT ',i10)
103 1100 FORMAT(5x,' DELETE CONNECTION SOLID ELEMENT ',i10,' AT TIME ',1pe16.9)
104c-----------
105 RETURN
#define my_real
Definition cppsort.cpp:32