OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_ale_muscl.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_ale_muscl ../starter/source/general_controls/ale_cfd/hm_read_ale_muscl.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_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
31!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
32!|| hm_option_next ../starter/source/devtools/hm_reader/hm_option_next.F
33!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
34!||--- uses -----------------------------------------------------
35!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
36!|| message_mod ../starter/share/message_module/message_mod.F
37!|| submodel_mod ../starter/share/modules1/submodel_mod.F
38!||====================================================================
39 SUBROUTINE hm_read_ale_muscl(LSUBMODEL, UNITAB)
40C-----------------------------------------------
41C D e s c r i p t i o n
42C-----------------------------------------------
43C This subroutine is reading /ALE/MUSCL option in user input file
44C-----------------------------------------------
45C M o d u l e s
46C-----------------------------------------------
47 USE unitab_mod
49 USE submodel_mod
50 USE message_mod
51 USE alemuscl_mod , only : alemuscl_param
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 "scr05_c.inc"
60C-----------------------------------------------
61C D u m m y A r g u m e n t s
62C-----------------------------------------------
63 TYPE(submodel_data), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
64 TYPE(unit_type_), INTENT(IN) :: UNITAB
65C-----------------------------------------------
66C L o c a l V a r i a b l e s
67C-----------------------------------------------
68 INTEGER :: NALEMUSCL,IALEMUSCL
69 LOGICAL :: IS_AVAILABLE
70 my_real :: beta
71C-----------------------------------------------
72C S o u r c e L i n e s
73C-----------------------------------------------
74 CALL hm_option_count('/ALE/MUSCL', nalemuscl)
75
76 IF (nalemuscl > 0) THEN
77 CALL hm_option_start('/ALE/MUSCL')
78 CALL hm_option_next()
79 CALL hm_get_floatv('ALE_MUSCL_BETA', beta, is_available, lsubmodel, unitab)
80 CALL hm_get_intv('MAT_Iflag', ialemuscl, is_available, lsubmodel)
81
82 !---default BETA
83 IF (beta == zero) THEN
84 beta = two
85 ENDIF
86
87 !---default IALEMUSCL
88 IF (ialemuscl == 0) THEN
89 ialemuscl = 1
90 ELSEIF (ialemuscl == 1) THEN
91 ialemuscl = 2
92 ELSEIF (ialemuscl < -1 .OR. ialemuscl >= 2) THEN
93 ialemuscl = 1
94 ENDIF
95
96 !---MUSCL off / disabled
97 IF(ialemuscl == -1)THEN
98 ialemuscl = 0
99 beta = two
100 nalemuscl=0
101 ENDIF
102
103 alemuscl_param%IALEMUSCL = ialemuscl
104 alemuscl_param%Beta = beta
105
106 IF (iresp == 1) THEN
107 ! Not available in single precision
108 CALL ancmsg(msgid = 1563, anmode = aninfo, msgtype = msgerror)
109 ENDIF
110 ENDIF
111C-----------------------------------------------
112 END SUBROUTINE hm_read_ale_muscl
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_next()
subroutine hm_option_start(entity_type)
subroutine hm_read_ale_muscl(lsubmodel, unitab)
type(alemuscl_param_) alemuscl_param
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