OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_beam_mp.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "scr16_c.inc"
#include "scr17_c.inc"
#include "units_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine stat_beam_mp (itab, ipart, ixp, ipartp, ipart_state, nodtag, stat_indxp, iparg, elbuf_tab, idel)

Function/Subroutine Documentation

◆ stat_beam_mp()

subroutine stat_beam_mp ( integer, dimension(*) itab,
integer, dimension(lipart1,*) ipart,
integer, dimension(nixp,*) ixp,
integer, dimension(*) ipartp,
integer, dimension(*) ipart_state,
integer, dimension(*) nodtag,
integer, dimension(*) stat_indxp,
integer, dimension(nparg,*) iparg,
type (elbuf_struct_), dimension(ngroup), target elbuf_tab,
integer idel )

Definition at line 34 of file stat_beam_mp.F.

36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE elbufdef_mod
40 USE my_alloc_mod
41 use element_mod , only : nixp
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "com01_c.inc"
50#include "com04_c.inc"
51#include "param_c.inc"
52#include "scr16_c.inc"
53#include "scr17_c.inc"
54#include "units_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 INTEGER ITAB(*),IPART(LIPART1,*),IXP(NIXP,*),IPARTP(*),
59 . IPART_STATE(*),NODTAG(*),STAT_INDXP(*),IPARG(NPARG,*)
60 INTEGER IDEL
61 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I,N,JJ,IPRT0,IPRT,K,II
66 INTEGER NG,NEL,NFT,LFT,LLT,ITY,IOFF
67 INTEGER,DIMENSION(:),ALLOCATABLE :: NP
68 INTEGER,DIMENSION(:,:),ALLOCATABLE :: CLEF
69 INTEGER WORK(70000)
70C
71 TYPE(G_BUFEL_) ,POINTER :: GBUF
72C-----------------------------------------------
73C BEAM
74C-----------------------------------------------
75 CALL my_alloc(np,6*numelp)
76 CALL my_alloc(clef,2,numelp)
77C-----------------------------------------------
78 jj = 0
79 ii = 0
80 IF (numelp /= 0) THEN
81c
82 DO ng=1,ngroup
83 ity = iparg(5,ng)
84 IF (ity == 5) THEN
85 nel = iparg(2,ng)
86 nft = iparg(3,ng)
87 gbuf => elbuf_tab(ng)%GBUF
88 lft=1
89 llt=nel
90c
91 DO i=lft,llt
92 n = i + nft
93 iprt=ipartp(n)
94 IF (ipart_state(iprt) /= 0) THEN
95c
96 np(jj+1) = ixp(nixp,n)
97 np(jj+2) = itab(ixp(2,n))
98 np(jj+3) = itab(ixp(3,n))
99 np(jj+4) = itab(ixp(4,n))
100 np(jj+5) = iprt
101 np(jj+6) = iabs(nint(gbuf%OFF(i)))
102c
103 ii = ii + 1
104c
105 jj = jj + 6
106c
107 stat_numelp =stat_numelp+1
108 clef(1,stat_numelp)=iprt
109 clef(2,stat_numelp)=ixp(nixp,n)
110c
111 nodtag(ixp(2,n))=1
112 nodtag(ixp(3,n))=1
113 nodtag(ixp(4,n))=1
114 ENDIF ! IF (IPART_STATE(IPRT) /= 0)
115 ENDDO ! DO I=LFT,LLT
116 ENDIF ! IF (ITY == 5)
117 ENDDO ! DO NG=1,NGROUP
118 ENDIF ! IF (NUMELP /= 0)
119C----
120 DO n=1,stat_numelp
121 stat_indxp(n)=n
122 ENDDO
123 CALL my_orders(0,work,clef,stat_indxp,stat_numelp,2)
124C----
125 iprt0=0
126 DO n=1,stat_numelp
127 k=stat_indxp(n)
128 jj=6*(k-1)
129 iprt=np(jj+5)
130 ioff=np(jj+6)
131 IF (idel==0 .OR. (idel==1 .AND. ioff >= 1)) THEN
132 IF (iprt /= iprt0) THEN
133 WRITE(iugeo,'(A,I10)')'/BEAM/',ipart(4,iprt)
134 WRITE(iugeo,'(A)')
135 . '#BEAM_ID NOD1 NOD2 NOD3'
136 iprt0=iprt
137 ENDIF
138 WRITE(iugeo,'(4I10)') np(jj+1),np(jj+2),np(jj+3),np(jj+4)
139 ENDIF !IF (IDEL)
140 ENDDO ! DO N=1,STAT_NUMELP
141C----
142C-----------------------------------------------
143 DEALLOCATE(np)
144 DEALLOCATE(clef)
145C-----------------------------------------------
146 RETURN
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82