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

Go to the source code of this file.

Functions/Subroutines

integer function elegror_seatbelt (igu, igrele, ngrele, ibuf, nib, sibuf, nfram, tagelems, istyp, seatbelt_shell_to_spring)

Function/Subroutine Documentation

◆ elegror_seatbelt()

integer function elegror_seatbelt ( integer, intent(in) igu,
type (group_), dimension(ngrele), intent(in) igrele,
integer, intent(in) ngrele,
integer, dimension(nib,sibuf), intent(inout) ibuf,
integer, intent(in) nib,
integer, intent(in) sibuf,
integer, intent(in) nfram,
integer, dimension(numelc), intent(in) tagelems,
integer, intent(in) istyp,
integer, dimension(numelc,2), intent(in) seatbelt_shell_to_spring )

Definition at line 30 of file elegror_seatbelt.F.

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
integer function elegror_seatbelt(igu, igrele, ngrele, ibuf, nib, sibuf, nfram, tagelems, istyp, seatbelt_shell_to_spring)