OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_truss_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_truss_mp (itab, ipart, ixt, ipartt, ipart_state, nodtag, stat_indxt, iparg, elbuf_tab, idel)

Function/Subroutine Documentation

◆ stat_truss_mp()

subroutine stat_truss_mp ( integer, dimension(*) itab,
integer, dimension(lipart1,*) ipart,
integer, dimension(nixt,*) ixt,
integer, dimension(*) ipartt,
integer, dimension(*) ipart_state,
integer, dimension(*) nodtag,
integer, dimension(*) stat_indxt,
integer, dimension(nparg,*) iparg,
type (elbuf_struct_), dimension(ngroup), target elbuf_tab,
integer idel )

Definition at line 33 of file stat_truss_mp.F.

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