OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sconnect_off.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!|| sconnect_off ../engine/source/elements/solid/sconnect/sconnect_off.f
25!||--- called by ------------------------------------------------------
26!|| suser43 ../engine/source/elements/solid/sconnect/suser43.F
27!||--- uses -----------------------------------------------------
28!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.f90
29!||====================================================================
30 SUBROUTINE sconnect_off(ELBUF_STR,OFFG ,NEL ,NPG ,NGL ,
31 . ISOLID ,TIME )
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
106 END
#define my_real
Definition cppsort.cpp:32
subroutine sconnect_off(elbuf_str, offg, nel, npg, ngl, isolid, time)