OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_impvel0.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_impvel0 ../starter/source/constraints/general/impvel/hm_preread_impvel0.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_string ../starter/source/devtools/hm_reader/hm_get_string.F
29!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.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!||--- 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 hm_preread_impvel0(IMPOSE_DR,UNITAB,LSUBMODEL)
38C============================================================================
39C M o d u l e s
40C-----------------------------------------------
41 USE message_mod
42 USE submodel_mod
44 USE unitab_mod
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER ,INTENT(OUT):: IMPOSE_DR
54 TYPE(unit_type_) ,INTENT(IN) ::UNITAB
55 TYPE(submodel_data), DIMENSION(*) ,INTENT(IN) ::LSUBMODEL
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER :: I,OPTID,UID,NIMDISP
60 CHARACTER(LEN=2) :: XX,YY,ZZ
61 CHARACTER(LEN=NCHARFIELD) :: XYZ
62 CHARACTER(LEN=NCHARKEY) :: KEY
63 CHARACTER(LEN=NCHARTITLE) :: TITR
64 LOGICAL :: IS_AVAILABLE
65C-----------------------------------------------
66C D a t a
67C-----------------------------------------------
68 DATA xx /'XX'/
69 DATA yy /'YY'/
70 DATA zz /'ZZ'/
71C======================================================================|
72 is_available = .false.
73c
74 impose_dr = 0
75c--------------------------------------------------
76c
77 CALL hm_option_count('/IMPDISP',nimdisp)
78c
79c--------------------------------------------------
80c
81 CALL hm_option_start('/IMPDISP')
82c
83c--------------------------------------------------
84 DO i=1,nimdisp
85c
86 CALL hm_option_read_key(lsubmodel,
87 . option_id = optid,
88 . unit_id = uid,
89 . option_titr = titr,
90 . keyword2 = key)
91c
92c--------------------------------------------------
93c CHECK IF ROTATIONAL DISPLACEMENT IS IMPOSED
94c--------------------------------------------------
95 IF (key(1:4) == 'FGEO') cycle ! skip /IMPDISP/FGEO
96
97 CALL hm_get_string('rad_dir',xyz,ncharfield,is_available)
98c
99 IF (xyz(1:2) == xx .OR. xyz(1:2) == yy .OR. xyz(1:2) == zz) THEN
100 impose_dr = 1
101 ENDIF
102c
103 ENDDO ! DO I=1,NIMDISP
104c-----------
105 RETURN
106 END
subroutine hm_get_string(name, sval, size, is_available)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_start(entity_type)
subroutine hm_preread_impvel0(impose_dr, unitab, lsubmodel)
integer, parameter nchartitle
integer, parameter ncharkey
integer, parameter ncharfield