OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_truss_mp.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!|| stat_truss_mp ../engine/source/output/sta/stat_truss_mp.F
25!||--- called by ------------------------------------------------------
26!|| genstat ../engine/source/output/sta/genstat.F
27!||--- calls -----------------------------------------------------
28!|| my_orders ../common_source/tools/sort/my_orders.c
29!||--- uses -----------------------------------------------------
30!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
31!|| element_mod ../common_source/modules/elements/element_mod.f90
32!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
33!||====================================================================
34 SUBROUTINE stat_truss_mp(ITAB ,IPART ,IXT ,IPARTT ,IPART_STATE,
35 . NODTAG ,STAT_INDXT,IPARG ,ELBUF_TAB,IDEL )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE elbufdef_mod
40 USE my_alloc_mod
41 use element_mod , only : nixt
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,*),IXT(NIXT,*),IPARTT(*),
59 . ipart_state(*),nodtag(*),stat_indxt(*),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 WORK(70000)
68 INTEGER,DIMENSION(:,:),ALLOCATABLE :: CLEF
69 INTEGER,DIMENSION(:),ALLOCATABLE :: NP
70C
71 TYPE(g_bufel_) ,POINTER :: GBUF
72C-----------------------------------------------
73 CALL my_alloc(np,5*numelt)
74 CALL my_alloc(clef,2,numelt)
75C-----------------------------------------------
76C TRUSS
77C-----------------------------------------------
78 jj = 0
79 ii = 0
80 IF (numelt /= 0) THEN
81c
82 DO ng=1,ngroup
83 ity = iparg(5,ng)
84 IF (ity == 4) 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=ipartt(n)
94 IF (ipart_state(iprt) /= 0) THEN
95c
96 np(jj+1) = ixt(nixt,n)
97 np(jj+2) = itab(ixt(2,n))
98 np(jj+3) = itab(ixt(3,n))
99 np(jj+4) = iprt
100 np(jj+5) = iabs(nint(gbuf%OFF(i)))
101c
102 ii = ii + 1
103c
104 jj = jj + 5
105c
106 stat_numelt =stat_numelt+1
107 clef(1,stat_numelt)=iprt
108 clef(2,stat_numelt)=ixt(nixt,n)
109c
110 nodtag(ixt(2,n))=1
111 nodtag(ixt(3,n))=1
112 ENDIF ! IF (IPART_STATE(IPRT) /= 0)
113 ENDDO ! DO I=LFT,LLT
114 ENDIF ! IF (ITY == 4)
115 ENDDO ! DO NG=1,NGROUP
116 ENDIF ! IF (NUMELT /= 0)
117C----
118 DO n=1,stat_numelt
119 stat_indxt(n)=n
120 ENDDO
121 CALL my_orders(0,work,clef,stat_indxt,stat_numelt,2)
122C----
123 iprt0=0
124 DO n=1,stat_numelt
125 k=stat_indxt(n)
126 jj=5*(k-1)
127 iprt=np(jj+4)
128 ioff=np(jj+5)
129 IF (idel==0 .OR. (idel==1 .AND. ioff >= 1)) THEN
130 IF (iprt /= iprt0) THEN
131 WRITE(iugeo,'(A,I10)')'/TRUSS/',ipart(4,iprt)
132 WRITE(iugeo,'(A)')
133 . '#TRUSS_ID NOD1 NOD2'
134 iprt0=iprt
135 ENDIF
136 WRITE(iugeo,'(3I10)') np(jj+1),np(jj+2),np(jj+3)
137 ENDIF !IF (IDEL)
138 ENDDO ! DO N=1,STAT_NUMELT
139C----
140C-----------------------------------------------
141 DEALLOCATE(np)
142 DEALLOCATE(clef)
143C-----------------------------------------------
144 RETURN
145 END
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82
subroutine stat_truss_mp(itab, ipart, ixt, ipartt, ipart_state, nodtag, stat_indxt, iparg, elbuf_tab, idel)