OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_rbe3.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| hm_preread_rbe3 ../starter/source/constraints/general/rbe3/hm_preread_rbe3.F
25
!||--- called by ------------------------------------------------------
26
!|| lectur ../starter/source/starter/lectur.F
27
!||--- calls -----------------------------------------------------
28
!|| hm_get_int_array_index ../starter/source/devtools/hm_reader/hm_get_int_array_index.F
29
!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
30
!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
31
!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
32
!|| hm_sz_r2r ../starter/source/coupling/rad2rad/routines_r2r.F
33
!||--- uses -----------------------------------------------------
34
!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
35
!|| message_mod ../starter/share/message_module/message_mod.F
36
!|| r2r_mod ../starter/share/modules1/r2r_mod.F
37
!|| submodel_mod ../starter/share/modules1/submodel_mod.F
38
!||====================================================================
39
SUBROUTINE
hm_preread_rbe3
(LNUM ,LREAL, IGRNOD, GRNOD_UID,LSUBMODEL)
40
C-------------------------------------
41
C READING STRUCTURE RIGIDES
42
C-----------------------------------------------
43
C M o d u l e s
44
C-----------------------------------------------
45
USE
unitab_mod
46
USE
r2r_mod
47
USE
message_mod
48
USE
groupdef_mod
49
USE
submodel_mod
50
USE
hm_option_read_mod
51
USE
names_and_titles_mod
,
ONLY
:
nchartitle
,
ncharkey
52
C-----------------------------------------------
53
C I m p l i c i t T y p e s
54
C-----------------------------------------------
55
#include "implicit_f.inc"
56
C-----------------------------------------------
57
C C o m m o n B l o c k s
58
C-----------------------------------------------
59
#include "com04_c.inc"
60
#include "param_c.inc"
61
#include "r2r_c.inc"
62
C-----------------------------------------------
63
C D u m m y A r g u m e n t s
64
C-----------------------------------------------
65
INTEGER
:: LNUM,LREAL
66
TYPE
(GROUP_) ,
DIMENSION(NGRNOD)
:: IGRNOD
67
INTEGER
:: GRNOD_UID
68
TYPE
(
submodel_data
),
INTENT(IN)
::LSUBMODEL(*)
69
C-----------------------------------------------
70
C L o c a l V a r i a b l e s
71
C-----------------------------------------------
72
INTEGER
:: I, NSLT,NM,INGU,IGS,J,NN,NRB,UID,ID
73
LOGICAL
:: IS_AVAILABLE
74
CHARACTER(LEN=NCHARTITLE)
:: TITR
75
C=======================================================================
76
is_available = .false.
77
CALL
hm_option_start
(
'/RBE3'
)
78
lnum = 0
79
lreal = 0
80
nrb = 0
81
IF
(nrbe3 == 0)
RETURN
82
DO
i=1,nrbe3
83
nrb=nrb+1
84
C----------Multidomaines --> on ignore les rbe3 non tages---------
85
IF
(nsubdom > 0)
THEN
86
IF
(
tagrb3
(nrb) == 0)
CALL
hm_sz_r2r
(
tagrb3
,nrb,lsubmodel)
87
END IF
88
C--------------------------------------------------
89
C EXTRACT DATAS OF /RBE3/... LINE
90
C--------------------------------------------------
91
CALL
hm_option_read_key
(lsubmodel,option_id = id,unit_id = uid,option_titr = titr)
92
CALL
hm_get_intv
('nset
',NSLT,IS_AVAILABLE,LSUBMODEL)
93
NM = 0
94
DO J=1,NSLT
95
CALL HM_GET_INT_ARRAY_INDEX('
independentnodesets
',INGU,J,IS_AVAILABLE,LSUBMODEL)
96
IF(INGU == 0) THEN
97
NN = 0
98
IGS = 0
99
ELSE
100
CALL C_HASH_FIND(GRNOD_UID,INGU,IGS)
101
IF(IGS == 0) THEN
102
NN = 0
103
ELSE
104
NN = IGRNOD(IGS)%NENTITY
105
ENDIF
106
ENDIF
107
NM = NM + NN
108
ENDDO
109
LREAL = LREAL + NM
110
LNUM = LNUM +NRBE3L
111
ENDDO
112
RETURN
113
END SUBROUTINE HM_PREREAD_RBE3
hm_get_intv
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
Definition
hm_get_intv.F:528
hm_option_start
subroutine hm_option_start(entity_type)
Definition
hm_option_start.F:253
hm_preread_rbe3
subroutine hm_preread_rbe3(lnum, lreal, igrnod, grnod_uid, lsubmodel)
Definition
hm_preread_rbe3.F:40
hm_option_read_mod::hm_option_read_key
Definition
hm_option_read_mod.F:414
groupdef_mod
Definition
groupdef_mod.F:668
hm_option_read_mod
Definition
hm_option_read_mod.F:412
message_mod
Definition
message_mod.F:1257
names_and_titles_mod
Definition
names_and_titles_mod.F:1002
names_and_titles_mod::nchartitle
integer, parameter nchartitle
Definition
names_and_titles_mod.F:1008
names_and_titles_mod::ncharkey
integer, parameter ncharkey
Definition
names_and_titles_mod.F:1005
r2r_mod
Definition
r2r_mod.F:125
r2r_mod::tagrb3
integer, dimension(:), allocatable tagrb3
Definition
r2r_mod.F:138
submodel_mod
Definition
submodel_mod.F:717
unitab_mod
Definition
unitab_mod.F:517
hm_sz_r2r
subroutine hm_sz_r2r(tag, val, lsubmodel)
Definition
routines_r2r.F:299
submodel_mod::submodel_data
Definition
submodel_mod.F:728
starter
source
constraints
general
rbe3
hm_preread_rbe3.F
Generated by
1.15.0