OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
outp_mt.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!|| outp_mt ../engine/source/output/sty/outp_mt.F
25!||--- called by ------------------------------------------------------
26!|| genoutp ../engine/source/output/sty/genoutp.F
27!||--- calls -----------------------------------------------------
28!|| fretitl2 ../engine/source/input/freform.f
29!|| spmd_glob_dsum9 ../engine/source/mpi/interfaces/spmd_th.F
30!||====================================================================
31 SUBROUTINE outp_mt(PM,NPART,PARTSAV,IPART,IPM)
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35C
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "units_c.inc"
44#include "param_c.inc"
45#include "task_c.inc"
46#include "scr16_c.inc"
47#include "scr17_c.inc"
48#include "com01_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER IPM(NPROPMI,*)
53 my_real PM(NPROPM,*),PARTSAV(NPSAV,*)
54 INTEGER NPART,IPART(LIPART1,*)
55 INTEGER LEN
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I,J,USRMID,K,I1,M
60 my_real MAS,XM,YM,ZM,IE,KE,PARTSAV2(NPSAV,NPART)
61 CHARACTER*100 CARD
62C
63 DO M=1,NPSAV
64 DO I=1,NPART
65 PARTSAV2(M,I) = PARTSAV(M,I)
66 ENDDO
67 END DO
68C pre traitement SPMD : gather de PARTSAV et mise a zero sur procs remote
69 IF(NSPMD > 1) THEN
70 CALL SPMD_GLOB_DSUM9(PARTSAV2,NPSAV*NPART)
71 IF(ISPMD/=0) THEN
72 RETURN
73 ENDIF
74 ENDIF
75 IE=ZERO
76 KE=ZERO
77 MAS=ZERO
78 XM=ZERO
79 YM=ZERO
80 ZM=ZERO
81 I1=IPART(1,1)
82 DO K = 1,NPART+1
83 IF(K<=NPART)THEN
84 I=IPART(1,K)
85 ELSE
86 I=0
87 ENDIF
88 IF(I1==0)THEN
89 I1=I
90 ELSEIF(I1/=I)THEN
91 CALL FRETITL2(CARD,IPM(NPROPMI-LTITR+1,I1),40)
92 WRITE(IUGEO,'(A,I10)')'/MATER /',I1
93 USRMID = IPM(1,I1)
94 IF(USRMID==0) CARD=' '
95 IF (OUTYY_FMT==2) THEN
96 WRITE(IUGEO,'(A)')CARD(1:80)
97 ELSE
98 WRITE(IUGEO,'(A)')CARD
99 END IF
100 IF (OUTYY_FMT==2) THEN
101 WRITE(IUGEO,'(A)') '#FORMAT: (I8,1P3E16.9/8X,1P3E16.9) '
102 WRITE(IUGEO,'(2A)')'# USRMID INTERNAL_ENERGY KINETIC_ENERGY',
103 . ' MASS'
104 WRITE(IUGEO,'(2A)')'# X_MOMENTUM Y_MOMENTUM',
105 . ' Z_MOMENTUM'
106 WRITE(IUGEO,'(I8,1P3E16.9/8X,1P3E16.9)') USRMID,
107 . IE,KE,MAS,XM,YM,ZM
108 ELSE
109 WRITE(IUGEO,'(A)') '#FORMAT: (I10,1P3E20.13/8X,1P3E20.13) '
110 WRITE(IUGEO,'(2A)')'# USRMID INTERNAL_ENERGY KINETIC_ENERGY',
111 . ' MASS'
112 WRITE(IUGEO,'(2A)')'# X_MOMENTUM Y_MOMENTUM',
113 . ' Z_MOMENTUM'
114 WRITE(IUGEO,'(I10,1P3E20.13/8X,1P3E20.13)') USRMID,
115 . IE,KE,MAS,XM,YM,ZM
116 ENDIF
117 IE=ZERO
118 KE=ZERO
119 MAS=ZERO
120 XM=ZERO
121 YM=ZERO
122 ZM=ZERO
123 I1=I
124 ENDIF
125 IF(I>0)THEN
126 IE=IE+PARTSAV2(1,K)
127 KE=KE+PARTSAV2(2,K)
128 MAS=MAS+PARTSAV2(6,K)
129 XM=XM+PARTSAV2(3,K)
130 YM=YM+PARTSAV2(4,K)
131 ZM=ZM+PARTSAV2(5,K)
132 ENDIF
133 ENDDO
134C
135 RETURN
136 END
subroutine freform(irunn, irfl, irfe, h3d_data, flag_cst_ams, dynain_data, sensors, dt, output, glob_therm)
Definition freform.F:88
subroutine outp_mt(pm, npart, partsav, ipart, ipm)
Definition outp_mt.F:32
subroutine fretitl2(titr, iasc, l)
Definition freform.F:804