OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fvinjt8_1.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!|| fvinjt8_1 ../engine/source/airbag/fvinjt8_1.F
25!||--- called by ------------------------------------------------------
26!|| fv_up_switch ../engine/source/airbag/fv_up_switch.F
27!|| fvbag1 ../engine/source/airbag/fvbag1.F
28!||====================================================================
29 SUBROUTINE fvinjt8_1(NJET , IBAGJET , RBAGJET ,
30 2 IGEO, GEO, PM,
31 3 IVOLU, RVOLU, DMOUT, DHOUT)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com08_c.inc"
40#include "param_c.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER NJET, IBAGJET(NIBJET,*), IGEO(NPROPGI,*), IVOLU(*)
45C REAL
47 . dmout, dhout, rbagjet(nrbjet,*),
48 . geo(npropg,*), pm(npropm,*), rvolu(*)
49C---+----1----+----2----+----3----+----4----+----5----+----6----+----7--
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER IJ, IK, KK, I_INJ, I_TYPINJ, NGASES, I_GAS
54 my_real
55 . r_igc1, rmwi, rmwg, rnm, rnmi, rnmg, mw, gmtot, gmi, dgmout, dgeout
56C----------------------------------------------------------------------------
57 r_igc1=pm(27,ivolu(66))
58 rmwi = rvolu(10)
59C--------------------------
60C NOMBRE TOTAL DE MOLES
61C--------------------------
62 gmi = rvolu(11)
63 rnm = gmi*rmwi
64 DO ij=1,njet
65 i_inj = iabs(ibagjet(13,ij))
66 i_typinj = igeo(22,i_inj)
67 ngases = igeo(23,i_inj)
68 DO ik=1,ngases
69 IF (i_typinj==1) THEN
70 i_gas = igeo(100+(ik-1)*3+1,i_inj)
71 ELSE IF (i_typinj==2) THEN
72 i_gas = igeo(100+(ik-1)*2+1,i_inj)
73 END IF
74 mw = pm(20,i_gas)
75 rmwg = r_igc1/mw
76 kk=20+(ik-1)*4
77 gmtot= rbagjet(kk+1,ij)
78 rnmg = gmtot*rmwg
79 rnm = rnm+rnmg
80 ENDDO
81 ENDDO
82 rvolu(14)=rnm
83C-------------------------------
84C MASSE et ENTHALPY par GAZ
85C-------------------------------
86 rnmi=gmi*rmwi
87 dgmout=dmout*rnmi/rnm
88 dgeout=dhout*rnmi/rnm
89C DGEIN =DGMIN*RVOLU(63)
90 rvolu(22)=dgeout
91 rvolu(24)=dgmout
92C RVOLU(64)=DGMIN
93C RVOLU(65)=DGEIN
94 rvolu(11)=rvolu(11)+dgmout*dt1
95C
96 DO ij=1,njet
97 i_inj = iabs(ibagjet(13,ij))
98 i_typinj = igeo(22,i_inj)
99 ngases = igeo(23,i_inj)
100 rbagjet( 9,ij)=zero
101 rbagjet(10,ij)=zero
102 DO ik=1,ngases
103 IF (i_typinj==1) THEN
104 i_gas = igeo(100+(ik-1)*3+1,i_inj)
105 ELSE IF (i_typinj==2) THEN
106 i_gas = igeo(100+(ik-1)*2+1,i_inj)
107 END IF
108 mw = pm(20,i_gas)
109 rmwg = r_igc1/mw
110 kk=20+(ik-1)*4
111 gmtot= rbagjet(kk+1,ij)
112 rnmg =gmtot*rmwg
113 dgmout=dmout*rnmg/rnm
114 dgeout=dhout*rnmg/rnm
115 rbagjet(kk+1,ij)=gmtot+dgmout*dt1
116 rbagjet(kk+3,ij)=dgmout
117 rbagjet(kk+4,ij)=dgeout
118 rbagjet( 8,ij)=rbagjet( 8,ij)+dgmout*dt1
119 rbagjet( 9,ij)=rbagjet( 9,ij)+dgmout
120 rbagjet(10,ij)=rbagjet(10,ij)+dgeout
121 ENDDO
122 ENDDO
123 RETURN
124 END
#define my_real
Definition cppsort.cpp:32
subroutine fvinjt8_1(njet, ibagjet, rbagjet, igeo, geo, pm, ivolu, rvolu, dmout, dhout)
Definition fvinjt8_1.F:32