OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_impflux.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_preread_impflux ../starter/source/constraints/thermic/hm_preread_impflux.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
29!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
30!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
31!|| ngr2usrn ../starter/source/system/nintrr.F
32!||--- uses -----------------------------------------------------
33!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_preread_impflux(IGRSURF,IGRNOD,IGRBRIC,UNITAB,LSUBMODEL,
38 . NIMPFLUX,NFXFLUX)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE unitab_mod
43 USE message_mod
44 USE groupdef_mod
45 USE submodel_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 "com04_c.inc"
56C-----------------------------------------------
57C D u m m y A r g u m e n t s
58C-----------------------------------------------
59 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
60 TYPE (GROUP_) , DIMENSION(NGRNOD) :: IGRNOD
61 TYPE (GROUP_) , DIMENSION(NGRBRIC) :: IGRBRIC
62 TYPE (SURF_) , DIMENSION(NSURF) :: IGRSURF
63 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER I,J,NLD,IGU,IGS,ISU,ISS,NN,ID,UID,
68 . ifu,isens,ncur,igbr,ibid
69 INTEGER FLAG_FMT,FLAG_FMT_TMP,IFIX_TMP
70 INTEGER ,INTENT(IN) :: NIMPFLUX
71 INTEGER ,INTENT(INOUT) :: NFXFLUX
72 CHARACTER(LEN=NCHARTITLE) :: TITR
73 LOGICAL IS_AVAILABLE
74C-----------------------------------------------
75C E x t e r n a l F u n c t i o n s
76C-----------------------------------------------
77 INTEGER NGR2USRN
79 . facx,facy,h,fac1,fac2
80C=======================================================================
81 is_available = .false.
82C--------------------------------------------------
83C START BROWSING MODEL THERMAL FLUX
84C--------------------------------------------------
85 CALL hm_option_start('/IMPFLUX')
86C--------------------------------------------------
87C BROWSING /IMPFLUX OPTIONS 1->NIMPFLUX
88C--------------------------------------------------
89 DO i=1,nimpflux
90 titr = ''
91C--------------------------------------------------
92C EXTRACT DATAS OF /IMPFLUX/... LINE
93C--------------------------------------------------
94 CALL hm_option_read_key(lsubmodel)
95C--------------------------------------------------
96C EXTRACT DATAS (INTEGER VALUES)
97C--------------------------------------------------
98 CALL hm_get_intv('entityid',isu,is_available,lsubmodel)
99 CALL hm_get_intv('grbrick_id',igbr,is_available,lsubmodel)
100C--------------------------------------------------
101C
102 IF (isu > 0) THEN
103 DO j=1,nsurf
104 IF (isu == igrsurf(j)%ID) THEN
105 iss = j
106 nfxflux = nfxflux + igrsurf(iss)%NSEG
107 EXIT
108 ENDIF
109 ENDDO
110 ENDIF
111 IF (igbr > 0) THEN
112 DO j=1,ngrbric
113 IF (igbr == igrbric(j)%ID) THEN
114 iss = j
115 nfxflux = nfxflux + igrbric(iss)%NENTITY
116 EXIT
117 ENDIF
118 ENDDO
119 ENDIF
120 ENDDO
121C
122C---
123 RETURN
124 END SUBROUTINE hm_preread_impflux
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
subroutine hm_preread_impflux(igrsurf, igrnod, igrbric, unitab, lsubmodel, nimpflux, nfxflux)
integer, parameter nchartitle