OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_rbe3.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!|| 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)
40C-------------------------------------
41C READING STRUCTURE RIGIDES
42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
45 USE unitab_mod
46 USE r2r_mod
47 USE message_mod
48 USE groupdef_mod
49 USE submodel_mod
52C-----------------------------------------------
53C I m p l i c i t T y p e s
54C-----------------------------------------------
55#include "implicit_f.inc"
56C-----------------------------------------------
57C C o m m o n B l o c k s
58C-----------------------------------------------
59#include "com04_c.inc"
60#include "param_c.inc"
61#include "r2r_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 INTEGER :: LNUM,LREAL
66 TYPE (GROUP_) , DIMENSION(NGRNOD) :: IGRNOD
67 INTEGER :: GRNOD_UID
68 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER :: I, NSLT,NM,INGU,IGS,J,NN,NRB,UID,ID
73 LOGICAL :: IS_AVAILABLE
74 CHARACTER(LEN=NCHARTITLE) :: TITR
75C=======================================================================
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
84C----------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
88C--------------------------------------------------
89C EXTRACT DATAS OF /RBE3/... LINE
90C--------------------------------------------------
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
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
subroutine hm_preread_rbe3(lnum, lreal, igrnod, grnod_uid, lsubmodel)
integer, parameter nchartitle
integer, parameter ncharkey
integer, dimension(:), allocatable tagrb3
Definition r2r_mod.F:138
subroutine hm_sz_r2r(tag, val, lsubmodel)