OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_sphglo.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_sphglo ../starter/source/general_controls/computation/hm_read_sphglo.F
25!||--- called by ------------------------------------------------------
26!|| contrl ../starter/source/starter/contrl.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv_without_uid ../starter/source/devtools/hm_reader/hm_get_floatv_without_uid.F
29!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
30!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
31!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
32!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
33!||--- uses -----------------------------------------------------
34!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_read_sphglo(LSUBMODEL)
38C-----------------------------------------------
39C ROUTINE DESCRIPTION :
40C ===================
41C READ /SPHGLO USING HM_READER
42C-----------------------------------------------
43C DUMMY ARGUMENTS DESCRIPTION:
44C ===================
45C NAME DESCRIPTION
46C LSUBMODEL SUBMODEL STRUCTURE
47C-----------------------------------------------
48C M o d u l e s
49C-----------------------------------------------
51 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 "sphcom.inc"
60#include "scr03_c.inc"
61C-----------------------------------------------
62C D u m m y A r g u m e n t s
63C-----------------------------------------------
64C INPUT ARGUMENTS
65 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
66C OUTPUT ARGUMENTS
67C-----------------------------------------------
68C L o c a l V a r i a b l e s
69C-----------------------------------------------
70 INTEGER I,NB_SPHGLO,SUB_ID,BID
71 LOGICAL IS_AVAILABLE
72C============================================================================
73 is_available = .false.
74C----------------------------------------------
75C global parameters for SPH.
76 spasort=fourth
77C
78 IF (invers < 130) THEN
79 IF(lvoisph==0) lvoisph=120
80 IF(kvoisph==0) kvoisph=120
81 ELSE
82 IF(lvoisph==0) lvoisph=120
83 IF(kvoisph==0) kvoisph=240
84 ENDIF
85 itsol2sph=1
86C
87 CALL hm_option_count('/SPHGLO', nb_sphglo)
88 CALL hm_option_start('/SPHGLO')
89 DO i=1,nb_sphglo
90 CALL hm_option_read_key(lsubmodel, submodel_id = sub_id)
91 IF(sub_id == 0) THEN
92 CALL hm_get_floatv_without_uid('ALPHA2',spasort,is_available)
93 CALL hm_get_intv('ALE_MAXSPH',bid,is_available,lsubmodel)
94 CALL hm_get_intv('ALE_KVOISPH',lvoisph,is_available,lsubmodel)
95 CALL hm_get_intv('ALE_Form',kvoisph,is_available,lsubmodel)
96 CALL hm_get_intv('SPHGLO_Isol2sph',itsol2sph,is_available,lsubmodel)
97C SPASORT=MIN(HALF,SPASORT)
98 IF(spasort==zero) spasort=fourth
99 IF(kvoisph<120)kvoisph=120
100 IF(lvoisph==0)lvoisph=kvoisph
101 IF(itsol2sph==0) itsol2sph=1
102 IF(kvoisph<lvoisph)kvoisph=lvoisph
103 EXIT
104 ENDIF
105 ENDDO
106 spatrue=spasort
107C
108C--------------------------------------------------------------
109 RETURN
110 END
subroutine hm_get_floatv_without_uid(name, rval, is_available)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_start(entity_type)
subroutine hm_read_sphglo(lsubmodel)