OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
init_th0.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!|| init_th0 ../engine/source/output/th/init_th0.F
25!||--- called by ------------------------------------------------------
26!|| radioss2 ../engine/source/engine/radioss2.F
27!||--- calls -----------------------------------------------------
28!|| init_th ../engine/source/output/th/init_th.F
29!||--- uses -----------------------------------------------------
30!|| cluster_mod ../engine/share/modules/cluster_mod.F
31!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
32!|| groupdef_mod ../common_source/modules/groupdef_mod.F
33!|| stack_mod ../engine/share/modules/stack_mod.F
34!|| th_mod ../engine/share/modules/th_mod.F
35!|| time_history_mod ../common_source/modules/output/time_history_mod.F
36!||====================================================================
37 SUBROUTINE init_th0( IPARG,ELBUF_TAB,IGEO,IXR,TH,
38 . WEIGHT)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE elbufdef_mod
43 USE cluster_mod
44 USE stack_mod
45 USE groupdef_mod
46 USE th_mod
48C-----------------------------------------------
49C I m p l i c i t T y p e s
50C-----------------------------------------------
51#include "implicit_f.inc"
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "com01_c.inc"
56#include "com04_c.inc"
57#include "com10_c.inc"
58#include "param_c.inc"
59#include "tabsiz_c.inc"
60C-----------------------------------------------
61C D u m m y A r g u m e n t s
62C-----------------------------------------------
63 INTEGER MBUFFER, NPARTL
64 INTEGER IPARG(NPARG,*),IGEO(NPROPGI,*),IXR(NIXR,*)
65 INTEGER, DIMENSION(NUMNOD), INTENT(in) :: WEIGHT
66C REAL
67 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP) :: ELBUF_TAB
68 TYPE (TH_), INTENT(IN),TARGET :: TH
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 LOGICAL :: BOOL
73 INTEGER :: ID,LOCAL_ID
74 INTEGER, POINTER :: ITHGR,ITHB
75 INTEGER, DIMENSION(10) :: ALREADY_DONE
76 INTEGER :: SITHBUF,SITHGRP
77
78C=======================================================================
79
80C-------------------------------------------------------
81C TH GROUP
82C-------------------------------------------------------
83 already_done(1:10) = 0
84
85 DO id=1,9
86 IF(nthgrp01(id)/=0) THEN
87 IF(id==1) THEN
88 ithgr => th%ITHGRPA(1)
89 ithb=> th%ITHBUFA(1)
90 sithbuf = th%SITHBUFA
91 ENDIF
92 IF(id==2) THEN
93 ithgr => th%ITHGRPB(1)
94 ithb=> th%ITHBUFB(1)
95 sithbuf = th%SITHBUFB
96 ENDIF
97 IF(id==3) THEN
98 ithgr => th%ITHGRPC(1)
99 ithb =>th%ITHBUFC(1)
100 sithbuf = th%SITHBUFC
101 ENDIF
102 IF(id==4) THEN
103 ithgr => th%ITHGRPD(1)
104 ithb => th%ITHBUFD(1)
105 sithbuf = th%SITHBUFD
106 ENDIF
107 IF(id==5) THEN
108 ithgr => th%ITHGRPE(1)
109 ithb => th%ITHBUFE(1)
110 sithbuf = th%SITHBUFE
111 ENDIF
112 IF(id==6) THEN
113 ithgr => th%ITHGRPF(1)
114 ithb => th%ITHBUFF(1)
115 sithbuf = th%SITHBUFF
116 ENDIF
117 IF(id==7) THEN
118 ithgr => th%ITHGRPG(1)
119 ithb => th%ITHBUFG(1)
120 sithbuf = th%SITHBUFG
121 ENDIF
122 IF(id==8) THEN
123 ithgr => th%ITHGRPH(1)
124 ithb => th%ITHBUFH(1)
125 sithbuf = th%SITHBUFH
126 ENDIF
127 IF(id==9) THEN
128 ithgr => th%ITHGRPI(1)
129 ithb => th%ITHBUFI(1)
130 sithbuf = th%SITHBUFI
131 ENDIF
132 already_done(id) = 1
133 CALL init_th(iparg,ithb,elbuf_tab,igeo,ixr,
134 . ithgr,nthgrp1(id),id,weight,sithbuf)
135 ENDIF
136 ENDDO
137
138 id = 10
139 already_done(id) = 1
140 CALL init_th(iparg,th%ITHBUF,elbuf_tab,igeo,ixr,
141 . th%ITHGRP,nthgrp,id,weight,th%SITHBUF)
142
143 DO id=1,9
144 bool=.false.
145 IF(abfile(id)/=0) THEN
146 IF(id==2.OR.id==4.OR.id==5.OR.id==6.OR.id==7.OR.id==8.OR.id==9) THEN
147 local_id = 1
148 IF(already_done(local_id)==0) THEN
149 ithgr => th%ITHGRPA(1)
150 ithb=> th%ITHBUFA(1)
151 bool=.true.
152 ENDIF
153
154 ELSEIF(id==3) THEN
155 local_id = 2
156 IF(already_done(local_id)==0) THEN
157 ithgr => th%ITHGRPB(1)
158 ithb=> th%ITHBUFB(1)
159 bool=.true.
160 ENDIF
161 ENDIF
162 ENDIF
163 IF(bool.EQV..true.) THEN
164 already_done(local_id)=1
165 CALL init_th(iparg,ithb,elbuf_tab,igeo,ixr,
166 . ithgr,nthgrp1(id),id,weight,th%SITHBUF)
167 ENDIF
168 ENDDO
169
170
171 RETURN
172 END SUBROUTINE init_th0
subroutine init_th0(iparg, elbuf_tab, igeo, ixr, th, weight)
Definition init_th0.F:39
subroutine init_th(iparg, ithbuf, elbuf_tab, igeo, ixr, ithgrp, nthgrp2, id, weight, sithbuf)
Definition init_th.F:48