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