OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_ebcs_iniv.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_ebcs_iniv ../starter/source/boundary_conditions/ebcs/hm_read_ebcs_iniv.F
25!||--- called by ------------------------------------------------------
26!|| read_ebcs ../starter/source/boundary_conditions/ebcs/read_ebcs.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_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.F
32!|| ngr2usr ../starter/source/system/nintrr.F
33!||--- uses -----------------------------------------------------
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_read_ebcs_iniv( IGRSURF, MULTI_FVM, UNITAB, ID, TITR, LSUBMODEL, EBCS)
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE unitab_mod
42 USE message_mod
43 USE multi_fvm_mod
44 USE groupdef_mod
45 USE submodel_mod
46 USE ebcs_mod
48C-----------------------------------------------
49C I m p l i c i t T y p e s
50C-----------------------------------------------
51#include "implicit_f.inc"
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "units_c.inc"
56#include "com04_c.inc"
57C-----------------------------------------------
58C D u m m y A r g u m e n t s
59C-----------------------------------------------
60 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
61 INTEGER ID
62 TYPE (MULTI_FVM_STRUCT), INTENT(INOUT) :: MULTI_FVM
63 TYPE (SURF_) ,TARGET, DIMENSION(NSURF) :: IGRSURF
64 CHARACTER(LEN=nchartitle), INTENT(IN) :: TITR
65 TYPE(submodel_data) LSUBMODEL(NSUBMOD)
66 TYPE(t_ebcs_iniv), INTENT(INOUT) :: EBCS
67C-----------------------------------------------
68C L o c a l V a r i a b l e s
69C-----------------------------------------------
70 INTEGER ISU,SURF,NGR2USR,NSEG
71 my_real c,rho,lcar
72 EXTERNAL ngr2usr
73 INTEGER, DIMENSION(:), POINTER :: INGR2USR
74 LOGICAL IS_ENCRYPTED, IS_AVAILABLE
75C-----------------------------------------------
76C S o u r c e L i n e s
77C-----------------------------------------------
78
79 ebcs%title = trim(titr)
80
81 CALL hm_option_is_encrypted(is_encrypted)
82 CALL hm_get_intv('entityid', surf ,is_available,lsubmodel)
83
84 isu=0
85 ingr2usr => igrsurf(1:nsurf)%ID
86 IF (surf/=0) isu=ngr2usr(surf,ingr2usr,nsurf)
87 nseg = 0
88 IF (isu/=0) nseg=igrsurf(isu)%NSEG
89 IF (surf==0)THEN
90 ierr=ierr+1
91 WRITE(istdo,'(6X,A)')' ** A SURFACE SHOULD BE INPUT'
92 WRITE(iout, '(6X,A)')' ** A SURFACE SHOULD BE INPUT'
93 ELSEIF(isu==0)THEN
94 ierr=ierr+1
95 WRITE(istdo,*)' ** ERROR SURFACE NOT FOUND, ID=',surf
96 WRITE(iout,*) ' ** ERROR SURFACE NOT FOUND, ID=',surf
97 ELSEIF(nseg==0)THEN
98 ierr=ierr+1
99 WRITE(istdo,*)' ** ERROR EMPTY SURFACE, ID=',surf
100 WRITE(iout,*) ' ** ERROR EMPTY SURFACE, ID=',surf
101 ELSE
102 WRITE(iout,1007)id,trim(titr)
103 CALL hm_get_floatv('rad_ebcs_rho', rho ,is_available,lsubmodel,unitab)
104 CALL hm_get_floatv('rad_ebcs_c', c ,is_available,lsubmodel,unitab)
105 CALL hm_get_floatv('rad_ebcs_lc', lcar ,is_available,lsubmodel,unitab)
106 WRITE(iout,1104)surf,nseg,rho,c,lcar
107 ENDIF
108
109 ebcs%title = titr
110 ebcs%c = c
111 ebcs%rho = rho
112 ebcs%lcar = lcar
113
114 IF (multi_fvm%IS_USED) THEN
115 CALL ancmsg(msgid = 1602, msgtype = msgerror, anmode = aninfo,
116 . i1 = id, c1 = trim(titr), c2 = "NOT COMPATIBLE WITH LAW 151")
117 ENDIF
118
119C-----------
120 RETURN
121C-----------
122 1007 FORMAT( //'INITIAL VELOCITY EBCS NUMBER . . . . . :',i8,1x,a)
123 1104 FORMAT(
124 . ' ON SURFACE . . . . . . . . . . . . . . . ',i8,/,
125 . ' NUMBER OF SEGMENTS FOUND. . . . . . . . . ',i8,/,
126 . ' DENSITY . . . . . . . . . . . . . . . . . ',e16.6,/,
127 . ' SOUND SPEED . . . . . . . . . . . . . . . ',e16.6,/,
128 . ' CHARACTERISTIC LENGTH . . . . . . . . . . ',e16.6,/)
129
130 END
#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_is_encrypted(is_encrypted)
subroutine hm_read_ebcs_iniv(igrsurf, multi_fvm, unitab, id, titr, lsubmodel, ebcs)
integer, parameter nchartitle
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