OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_prop0.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_read_prop0 ../starter/source/properties/void/hm_read_prop0.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_properties ../starter/source/properties/hm_read_properties.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
29!|| hm_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.F
30!||--- uses -----------------------------------------------------
31!|| elbuftag_mod ../starter/share/modules1/elbuftag_mod.F
32!|| message_mod ../starter/share/message_module/message_mod.F
33!|| submodel_mod ../starter/share/modules1/submodel_mod.F
34!||====================================================================
35 SUBROUTINE hm_read_prop0(GEO ,IGEO ,IG ,IGTYP, UNITAB,LSUBMODEL)
36C-----------------------------------------------
37C ROUTINE DESCRIPTION :
38C ===================
39C READ PROPERTY TYPE0 WITH HM READER
40C-----------------------------------------------
41C DUMMY ARGUMENTS DESCRIPTION:
42C ===================
43C
44C NAME DESCRIPTION
45C
46C IGEO PROPERTY ARRAY(INTEGER)
47C GEO PROPERTY ARRAY(REAL)
48C UNITAB UNITS ARRAY
49C IG PROPERTY ID(INTEGER)
50C SUB_INDEX SUBMODEL INDEX(INTEGER)
51C LSUBMODEL SUBMODEL STRUCTURE
52C-----------------------------------------------
53C============================================================================
54C M o d u l e s
55C-----------------------------------------------
56 USE unitab_mod
57 USE elbuftag_mod
58 USE message_mod
59 USE submodel_mod
60C-----------------------------------------------
61C I m p l i c i t T y p e s
62C-----------------------------------------------
63#include "implicit_f.inc"
64C-----------------------------------------------
65C C o m m o n B l o c k s
66C-----------------------------------------------
67#include "units_c.inc"
68C-----------------------------------------------
69C D u m m y A r g u m e n t s
70C-----------------------------------------------
71C INPUT ARGUMENTS
72 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
73 INTEGER,INTENT(IN)::IG
74 INTEGER,INTENT(IN)::IGTYP
75c INTEGER,INTENT(IN)::SUB_INDEX
76 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
77C MODIFIED ARGUMENT
78 INTEGER,INTENT(INOUT)::IGEO(*)
79 my_real,
80 . INTENT(INOUT)::geo(*)
81C-----------------------------------------------
82C L o c a l V a r i a b l e s
83C-----------------------------------------------
84 INTEGER I, J, IP, K, N, IHBE, ISMSTR, ISORTH, ISHEAR
86 . pun
87 LOGICAL IS_AVAILABLE, IS_ENCRYPTED
88C-----------------------------------------------
89C E x t e r n a l F u n c t i o n s
90C-----------------------------------------------
91 DATA pun/0.1/
92C=======================================================================
93 is_encrypted = .false.
94 is_available = .false.
95 ihbe=0
96 ismstr=0
97 isorth= 0
98C
99 geo(3)=ismstr
100 IF(ismstr==3.AND.igtyp/=6.AND.igtyp/=14)THEN
101 geo(5)=ep06
102 ENDIF
103C double stockage temporaire - supprimer GEO(12,I)=IGTYP apres tests
104 igeo( 1)=ig
105 igeo(10)=ihbe
106 igeo(11)=igtyp
107 geo(12) =igtyp+pun
108 geo(171)=ihbe
109c
110C--------------------------------------------------
111C EXTRACT DATA (IS OPTION CRYPTED)
112C--------------------------------------------------
113 CALL hm_option_is_encrypted(is_encrypted)
114C--------------------------------------------------
115C EXTRACT DATAS (REAL VALUES)
116C--------------------------------------------------
117 CALL hm_get_floatv('THICK',geo(1),is_available,lsubmodel,unitab)
118C
119 WRITE(iout,1010)ig
120 IF(.NOT. is_encrypted)THEN
121 WRITE(iout,1011)ig,geo(1)
122 ELSE
123 WRITE(iout,1099)ig
124 ENDIF
125C
126 ishear = geo(37)
127 IF(ishear==0)THEN
128 geo(37)=0
129 ELSEIF(ishear==1)THEN
130 geo(37)=1
131 ELSEIF(ishear==2)THEN
132 geo(37)=0
133 ENDIF
134C
135 igeo(1) =ig
136 igeo(11)=igtyp
137 igeo(17)=isorth
138 IF(geo(39)/=zero.AND.igeo( 9)== 0) igeo( 9)=nint(geo(39))
139 IF(geo(171)/=zero.AND.igeo(10)== 0) igeo(10)=nint(geo(171))
140C
141 1010 FORMAT(
142 & 5x,'DUMMY PROPERTY SET'/,
143 & 5x,'PROPERTY SET NUMBER . . . . . . . . . .=',i10//)
144 1011 FORMAT(
145 & 5x,'DUMMY PROPERTY SET'/,
146 & 5x,'PROPERTY SET NUMBER . . . . . . . . . .=',i10/,
147 & 5x,'THICKNESS . . . . . . . . . . . . . . .=',1pg20.13//)
148 1099 FORMAT(
149 & 5x,'dummy property set'/,
150 & 5X,'property set number . . . . . . . . . .=',I10/,
151 & 5X,'confidential data'//)
152C
153 RETURN
154 END
155
156
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_option_is_encrypted(is_encrypted)
subroutine hm_read_prop0(geo, igeo, ig, igtyp, unitab, lsubmodel)