OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_upwind.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_upwind ../starter/source/general_controls/computation/hm_read_upwind.F
25!||--- called by ------------------------------------------------------
26!|| contrl ../starter/source/starter/contrl.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
30!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
31!|| hm_option_next ../starter/source/devtools/hm_reader/hm_option_next.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!|| message_mod ../starter/share/message_module/message_mod.F
36!|| submodel_mod ../starter/share/modules1/submodel_mod.F
37!||====================================================================
38 SUBROUTINE hm_read_upwind(JUPW, ETA1, ETA2, ETA3, LSUBMODEL, UNITAB)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE unitab_mod
44 USE submodel_mod
45 USE message_mod
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER, INTENT(INOUT) :: JUPW
57 my_real, INTENT(INOUT) :: eta1, eta2, eta3
58 TYPE(submodel_data), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
59 TYPE(unit_type_), INTENT(IN) :: UNITAB
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER :: NUPWIND
64 LOGICAL :: IS_AVAILABLE
65
66 jupw = 0
67 eta1 = one
68 eta2 = one
69 eta3 = one
70
71 CALL hm_option_count('/UPWIND', nupwind)
72
73 IF (nupwind > 0) THEN
74 CALL hm_option_start('/UPWIND')
75 CALL hm_option_next()
76 jupw = 1
77 CALL hm_get_floatv('ENG_UPWIND_eta1', eta1, is_available, lsubmodel, unitab)
78 CALL hm_get_floatv('ENG_UPWIND_eta2', eta2, is_available, lsubmodel, unitab)
79 CALL hm_get_floatv('ENG_UPWIND_eta3', eta3, is_available, lsubmodel, unitab)
80 IF (eta1 == zero) eta1 = one
81 IF (eta2 == zero) eta2 = one
82 IF (eta3 == zero) eta3 = one
83
84 IF (eta3 /= one) THEN
85 CALL ancmsg(msgid = 1628, msgtype = msgwarning, anmode = aninfo)
86 ENDIF
87 ENDIF
88 END SUBROUTINE hm_read_upwind
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_next()
subroutine hm_option_start(entity_type)
subroutine hm_read_upwind(jupw, eta1, eta2, eta3, lsubmodel, unitab)
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889