OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
preread_rbody_set.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!|| preread_rbody_set ../starter/source/model/sets/preread_rbody_set.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
29!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
30!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
31!|| usr2sys ../starter/source/system/sysfus.F
32!||--- uses -----------------------------------------------------
33!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE preread_rbody_set(LSUBMODEL,ITABM1,RBY_MSN)
38C-------------------------------------
39C PRE LECTURE STRUCTURE RIGIDES POUR /SETS
40C-----------------------------------------------
41C M o d u l e s
42C-----------------------------------------------
43 USE message_mod
44 USE submodel_mod
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "com04_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 INTEGER ITABM1(*),RBY_MSN(2,*)
59C-----------------------------------------------
60 TYPE(SUBMODEL_DATA),INTENT(IN)::LSUBMODEL(*)
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER NRB,NOD,ID,NODSYS
65 CHARACTER(LEN=NCHARTITLE) :: TITR
66 CHARACTER(LEN=NCHARKEY) :: KEY
67 LOGICAL IS_AVAILABLE
68 DATA mess/'RIGID BODY DEFINITION '/
69 CHARACTER MESS*40
70C-----------------------------------------------
71C E x t e r n a l F u n c t i o n s
72C-----------------------------------------------
73 INTEGER USR2SYS
74 EXTERNAL usr2sys
75C-----------------------------------------------
76!
77C--------------------------------------------------
78C START BROWSING MODEL RBODY
79C--------------------------------------------------
80 is_available = .false.
81 CALL hm_option_start('/RBODY')
82!
83 DO nrb=1,nrbody
84C--------------------------------------------------
85C EXTRACT DATA OF /RBODY/... LINE
86C--------------------------------------------------
87 CALL hm_option_read_key(lsubmodel,
88 . option_id = id,
89 . option_titr = titr,
90 . keyword2 = key)
91!
92 rby_msn(1,nrb) = id
93!
94 IF(key/='') cycle ! /RBODY/LAGMUL
95!
96 CALL hm_get_intv('node_ID',nod,is_available,lsubmodel)
97!
98 nodsys = usr2sys(nod,itabm1,mess,id)
99C +++
100! print*,'MIRC RBODY NODE',ITABM1(NODSYS)
101C ---
102 rby_msn(2,nrb) = nodsys
103 ENDDO ! DO N=1,NRBYKIN
104!---
105 RETURN
106 END
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
integer, parameter nchartitle
integer, parameter ncharkey
subroutine preread_rbody_set(lsubmodel, itabm1, rby_msn)