OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
elegror_seatbelt.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!|| elegror_seatbelt ../starter/source/groups/elegror_seatbelt.F
25!||--- called by ------------------------------------------------------
26!|| lecsec42 ../starter/source/tools/sect/hm_read_sect.F
27!||--- uses -----------------------------------------------------
28!|| message_mod ../starter/share/message_module/message_mod.F
29!||====================================================================
30 INTEGER FUNCTION elegror_seatbelt(IGU,IGRELE,NGRELE,IBUF,NIB,
31 . SIBUF,NFRAM,TAGELEMS,ISTYP,SEATBELT_SHELL_TO_SPRING)
32C-----------------------------------------------
33C ROUTINE DESCRIPTION :
34C ===================
35C FUNCTION TO COUNT & FOUND SPRING ELEMENTS CREATED FROM 2D SEATBELT FOR SECTION
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE message_mod
40 USE groupdef_mod
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com04_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER,INTENT(IN)::igu,nib,ngrele,nfram,sibuf,
53 . tagelems(numelc),istyp
54 INTEGER,INTENT(INOUT)::ibuf(nib,sibuf)
55 INTEGER,INTENT(IN)::seatbelt_shell_to_spring(numelc,2)
56 TYPE (group_) ,DIMENSION(NGRELE) ,INTENT(IN)::igrele
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER i,j,k,ig,L,ie,iadv
61C-----------------------------------------------
63 IF(igu /= 0)THEN
64C
65 ig=0
66 DO i=1,ngrele
67 IF(igrele(i)%ID==igu)ig=i
68 ENDDO
69C
70 IF(ig /= 0)THEN
71 IF (nfram > 0 .OR. istyp >= 1) THEN
72 DO l=1,igrele(ig)%NENTITY
73 ie=igrele(ig)%ENTITY(l)
74 IF ( tagelems(ie) /= 0 ) THEN
75 IF(seatbelt_shell_to_spring(ie,1) /= 0)
77 IF(seatbelt_shell_to_spring(ie,2) /= 0)
79 ENDIF
80 ENDDO
81 ELSE
82 DO j=1,igrele(ig)%NENTITY
83 ie=igrele(ig)%ENTITY(j)
84 IF(seatbelt_shell_to_spring(ie,1) /= 0)
86 IF(seatbelt_shell_to_spring(ie,2) /= 0)
88 ENDDO
89 ENDIF
90
91 j = 0
92 IF (nfram > 0 .OR. istyp >= 1) THEN
93 DO i=1,igrele(ig)%NENTITY
94 IF (tagelems(igrele(ig)%ENTITY(i)) == 1 ) THEN
95 ie=igrele(ig)%ENTITY(i)
96 IF(seatbelt_shell_to_spring(ie,1) /= 0) THEN
97 j = j + 1
98 ibuf(1,j) = seatbelt_shell_to_spring(ie,1)
99 ENDIF
100 IF(seatbelt_shell_to_spring(ie,2) /= 0) THEN
101 j = j + 1
102 ibuf(1,j) = seatbelt_shell_to_spring(ie,2)
103 ENDIF
104 ENDIF
105 ENDDO
106 ELSE
107 DO i=1,igrele(ig)%NENTITY
108 ie=igrele(ig)%ENTITY(i)
109 IF(seatbelt_shell_to_spring(ie,1) /= 0) THEN
110 j = j + 1
111 ibuf(1,j) = seatbelt_shell_to_spring(ie,1)
112 ENDIF
113 IF(seatbelt_shell_to_spring(ie,2) /= 0) THEN
114 j = j + 1
115 ibuf(1,j) = seatbelt_shell_to_spring(ie,2)
116 ENDIF
117 ENDDO
118 ENDIF
119 ENDIF
120 ENDIF
121C
122 RETURN
123 END
integer function elegror_seatbelt(igu, igrele, ngrele, ibuf, nib, sibuf, nfram, tagelems, istyp, seatbelt_shell_to_spring)