OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_beam_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_beam_mp ../engine/source/output/sta/stat_beam_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!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
32!||====================================================================
33 SUBROUTINE stat_beam_mp(ITAB ,IPART ,IXP ,IPARTP ,IPART_STATE,
34 . NODTAG ,STAT_INDXP,IPARG ,ELBUF_TAB,IDEL )
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,*),IXP(NIXP,*),IPARTP(*),
57 . ipart_state(*),nodtag(*),stat_indxp(*),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,DIMENSION(:),ALLOCATABLE :: NP
66 INTEGER,DIMENSION(:,:),ALLOCATABLE :: CLEF
67 INTEGER WORK(70000)
68C
69 TYPE(g_bufel_) ,POINTER :: GBUF
70C-----------------------------------------------
71C BEAM
72C-----------------------------------------------
73 CALL my_alloc(np,6*numelp)
74 CALL my_alloc(clef,2,numelp)
75C-----------------------------------------------
76 jj = 0
77 ii = 0
78 IF (numelp /= 0) THEN
79c
80 DO ng=1,ngroup
81 ity = iparg(5,ng)
82 IF (ity == 5) 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=ipartp(n)
92 IF (ipart_state(iprt) /= 0) THEN
93c
94 np(jj+1) = ixp(nixp,n)
95 np(jj+2) = itab(ixp(2,n))
96 np(jj+3) = itab(ixp(3,n))
97 np(jj+4) = itab(ixp(4,n))
98 np(jj+5) = iprt
99 np(jj+6) = iabs(nint(gbuf%OFF(i)))
100c
101 ii = ii + 1
102c
103 jj = jj + 6
104c
105 stat_numelp =stat_numelp+1
106 clef(1,stat_numelp)=iprt
107 clef(2,stat_numelp)=ixp(nixp,n)
108c
109 nodtag(ixp(2,n))=1
110 nodtag(ixp(3,n))=1
111 nodtag(ixp(4,n))=1
112 ENDIF ! IF (IPART_STATE(IPRT) /= 0)
113 ENDDO ! DO I=LFT,LLT
114 ENDIF ! IF (ITY == 5)
115 ENDDO ! DO NG=1,NGROUP
116 ENDIF ! IF (NUMELP /= 0)
117C----
118 DO n=1,stat_numelp
119 stat_indxp(n)=n
120 ENDDO
121 CALL my_orders(0,work,clef,stat_indxp,stat_numelp,2)
122C----
123 iprt0=0
124 DO n=1,stat_numelp
125 k=stat_indxp(n)
126 jj=6*(k-1)
127 iprt=np(jj+5)
128 ioff=np(jj+6)
129 IF (idel==0 .OR. (idel==1 .AND. ioff >= 1)) THEN
130 IF (iprt /= iprt0) THEN
131 WRITE(iugeo,'(A,I10)')'/BEAM/',ipart(4,iprt)
132 WRITE(iugeo,'(A)')
133 . '#BEAM_ID NOD1 NOD2 NOD3'
134 iprt0=iprt
135 ENDIF
136 WRITE(iugeo,'(4I10)') np(jj+1),np(jj+2),np(jj+3),np(jj+4)
137 ENDIF !IF (IDEL)
138 ENDDO ! DO N=1,STAT_NUMELP
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_beam_mp(itab, ipart, ixp, ipartp, ipart_state, nodtag, stat_indxp, iparg, elbuf_tab, idel)