* fichier : crebe12.dgibi ************************************************************************ ************************************************************************ *-------------------------------------------- * GIBIANE file for the HDR test E12.3.2 * * in 2D * * We make 100 iterations on the coarse mesh * * and compare the overpressure in the room * * R1904 with earlier computed values * * CREBCOM combustion model is used * *-------------------------------------------- *-------------------------------------------- * Here we construct the mesh for the * * HDR test E12.3.2 * *-------------------------------------------- 'TRAC' 'X' ; *------------------------------------------- * Given a line and a mesh, this procedure * computes a new line which containes the * points of the mesh closest to the points * of the given line *------------------------------------------- 'DEBPROC' LIGPROC ; ******* inputs 'ARGUMENT' LIGG*'MAILLAGE' MAI1*'MAILLAGE' ; MAI2 = 'CHANGER' MAI1 'POI1' ; * First element of the line 'REPETER' BL1 (NPOI '-' 1) ; 'SI' ('NEG' P1P P2P) ; NPOI = (NPOI '-' &BL1) '+' 1 ; 'QUITTER' BL1 ; 'FINSI' ; 'FIN' BL1 ; LIGRES = 'MANUEL' 'SEG2' P1P P2P ; * The other element of the line 'REPETER' BL1 (NPOI '-' 2) ; P1P = P2P ; 'SI' ('NEG' P1P P2P) ; LIGRES = LIGRES 'ET' ('MANUEL' 'SEG2' P1P P2P) ; 'FINSI' ; 'FIN' BL1 ; 'RESPRO' LIGRES ; 'FINPROC' ; *-------------------------------------------------------- *---refinement of the mesh (10 or 16) RAF = 10 ; *-- Length of the thirst and second room L1 = 7.32D0 ; *-- Height of the first window H1 = 0.5D0 ; *-- Height of the first and second room H2 = 4.0D0 ; *--------------------------------- * Number of cells in each region *--------------------------------- N1 = RAF ; *---- number of points in window1 ** It is BETTER to have NY1 even! NY1 = 'ENTIER' (RAF '/' 4) ; *--------------------------------- DX = L1 '/' N1 ; *---- cell size in window DX1 = H1 '/' NY1 ; *---- number of points in the outer window NY2 = 'ENTIER' ((H2 '-' H1) '/' DX) ; ***---- wall thickness DW = H1 ; *----------------------------------------- * First and Second Room (R1904 and R1905) *----------------------------------------- LB = L1 '-' (7.5 '*' H1) ; A1 = 0.0 0.0 ; A12 = LB 0.0 ; A13 = LB (H1 '/' 2) ; A14 = 0.0 (H1 '/' 2) ; *------------------------------------ * "Lower-left" domain *------------------------------------- NY1M = NY1 '/' 2 ; A1A12 = A1 'DROIT' A12 'DINI' DX1 'DFIN' (DW '/' NY1) ; A12A13 = A12 'DROIT' NY1M A13 ; A13A14 = A13 'DROIT' A14 'DINI' (DW '/' NY1) 'DFIN' DX1 ; A14A1 = A14 'DROIT' NY1M A1 ; DOM1L = 'DALLER' A1A12 A12A13 A13A14 A14A1 'PLAN' ; *-------------------------------------- * "Lower-right" domain *-------------------------------------- LB1 = L1 '-' (2.5 '*' H1) ; AI1 = LB1 0.0 ; A2 = L1 0.0 ; AI3 = L1 (H1 '/' 2) ; AI4 = LB1 (H1 '/' 2) ; *------------------------------------ DENF = (DW '/' NY1) ; AI1A2 = AI1 'DROIT' A2 'DINI' DENF 'DFIN' DENF ; A2AI3 = A2 'DROIT' NY1M AI3 ; AI3AI4 = AI3 'DROIT' AI4 'DINI' DENF 'DFIN' DENF ; AI4AI1 = AI4 'DROIT' NY1M AI1 ; DOM1R = 'DALLER' AI1A2 A2AI3 AI3AI4 AI4AI1 'PLAN' ; DOM1 = DOM1L 'ET' DOM1R ; 'ELIMINATION' DOM1 1.0D-6 ; *---------------------------------------------------- * Line for postreatment *---------------------------------------------------- *** NNN is the number of points in the disc NNN = NY1 '*' 4 ; xcel = LB '+' (H1 '/' 2) ; ycel = H1 '/' 2 ; ACEL = xcel ycel ; LIGB = A13 'DROIT' NY1M ACEL ; *------------------ xmm = LB '+' (2.5 '*' H1) ; 'REPETER' BL1 NNN ; ACEL0 = ACEL ; xcel = xcel '+' DX1 ; dop = 18.0625 '*' H1 '*' H1 ; dop = dop '-' ((xcel-xmm) '*' (xcel-xmm)) ; dop = dop '**' 0.5 ; ycel = dop '-' (3.25 '*' H1) ; ACEL = xcel ycel ; LIGB = LIGB 'ET' (ACEL0 'DROIT' 1 ACEL) ; 'FIN' BL1 ; LIGB = LIGB 'ET' (ACEL 'DROIT' AI4 'DINI' DX1 'DFIN' DX1 ) ; *-------------------------------------------- LIGBG = ('INVERSE' A13A14) 'ET' LIGB 'ET' ('INVERSE' AI3AI4) ; *------------------------------------- * "HIGH" domain *------------------------------------- A3 = L1 H1 ; A4 = 0.0 H1 ; A5 = L1 H2 ; A6 = 0.0 H2 ; AI5 = LB H2 ; *--------------------------------- AI3A5 = AI3 'DROIT' A5 'DINI' DX1 'DFIN' DX1 ; A5AI5 = A5 'DROIT' AI5 'DINI' DX1 'DFIN' DX1 ; AI5A6 = AI5 'DROIT' A6 'DINI' DX1 'DFIN' DX1 ; LIGH = A5AI5 'ET' AI5A6 ; A6A14 = A6 'DROIT' A14 'DINI' DX1 'DFIN' DX1 ; *--------------------------- DOM2 = 'DALLER' LIGBG AI3A5 LIGH A6A14 'PLAN' ; *--------------------------------------------- * The Channel (junction between rooms) *--------------------------------------------- A2A21 = A2 'DROIT' NY1 A21 ; A21A31 = A21 'DROIT' NY1 A31 ; A31A3 = A31 'DROIT' NY1 A3 ; A3A2 = A3 'DROIT' NY1 A2 ; *------------------------- DOMC = 'DALLER' A2A21 A21A31 A31A3 A3A2 'PLAN' ; *-------------------------------------------- * Third room (R1801) *-------------------------------------------- *---- Length of the third room L3 = 5.0D0 ; *--- length before the window LB = 1.8D0 ; *--- width of window LW = 0.668D0 ; *--- length after the window LA = L3 '-' LB '-' LW ; *---------------------------------------- * Low Domain *---------------------------------------- H3 = (9.5 '-' H2) '-' H1 ; MH3 = (-1.0D0) '*' H3 ; A70 = (L1 '+' DW) MH3 ; A71 = (L1 '+' LB '+' DW) MH3 ; A72 = (L1 '+' LB '+' DW) 0.0 ; *---------------------------- DW1 = LW '/' NY1 ; A70A71 = A70 'DROIT' A71 'DINI' (DW '/' NY1) 'DFIN' DW1 ; A71A72 = A71 'DROIT' A72 'DINI' DX1 'DFIN' DX1 ; A72A21 = A72 'DROIT' A21 'DINI' DW1 'DFIN' (DW '/' NY1) ; A21A70 = A21 'DROIT' A70 'DINI' DX1 'DFIN' DX1 ; *------------------------------ DOM3A = 'DALLER' A70A71 A71A72 A72A21 A21A70 'PLAN' ; *------------------------------ *-------------------------- A71A7W = A71 'DROIT' NY1 A7W ; A7WA7U = A7W 'DROIT' A7U 'DINI' DX1 'DFIN' DX1 ; A7UA72 = A7U 'DROIT' NY1 A72 ; A72A71 = 'INVERSE' (A71A72) ; *------------------------- DOM3B = 'DALLER' A71A7W A7WA7U A7UA72 A72A71 'PLAN' ; *------------------------- *------------------------- A7WA81 = A7W 'DROIT' A81 'DINI' DW1 'DFIN' DX1 ; A81A82 = A81 'DROIT' A82 'DINI' DX1 'DFIN' DX1 ; A82A7U = A82 'DROIT' A7U 'DINI' DX1 'DFIN' DW1 ; A7UA7W = 'INVERSE' (A7WA7U) ; *------------------------- DOM3C = 'DALLER' A7WA81 A81A82 A82A7U A7UA7W 'PLAN' ; *------------------------- DOM3 = DOM3A 'ET' DOM3B 'ET' DOM3C ; 'ELIMINATION' DOM3 1.0D-6 ; *----------------------------------------- * Middle domain *----------------------------------------- ***--- first layer A21A72 = A21 'DROIT' A72 'DINI' (DW '/' NY1) 'DFIN' DW1 ; A72A73 = A72 'DROIT' NY1 A73 ; A73A31 = A73 'DROIT' A31 'DINI' DW1 'DFIN' (DW '/' NY1) ; A31A21 = A31 'DROIT' NY1 A21 ; *----------------------------- DOM4A = 'DALLER' A21A72 A72A73 A73A31 A31A21 'PLAN' ; *------------------------------------------- *--------------- A72A7U = A72 'DROIT' NY1 A7U ; A7UA7M = A7U 'DROIT' NY1 A7M ; A7MA73 = A7M 'DROIT' NY1 A73 ; A73A72 = 'INVERSE' (A72A73) ; *--------------------- DOM4B = 'DALLER' A72A7U A7UA7M A7MA73 A73A72 'PLAN' ; *--------------------------- *--------------------------- A7UA82 = A7U 'DROIT' A82 'DINI' DW1 'DFIN' DX1 ; A82A83 = A82 'DROIT' NY1 A83 ; A83A7M = A83 'DROIT' A7M 'DINI' DX1 'DFIN' DW1 ; A7MA7U = 'INVERSE' (A7UA7M) ; *--------------------------- DOM4C = 'DALLER' A7UA82 A82A83 A83A7M A7MA7U 'PLAN' ; *--------------------------- DOM4 = DOM4A 'ET' DOM4B 'ET' DOM4C ; 'ELIMINATION' DOM4 1.0D-6 ; *----------------------------------------- * High domain *----------------------------------------- *--------------------------- A31A73 = 'INVERSE' (A73A31) ; A73A74 = A73 'DROIT' A74 'DINI' DX1 'DFIN' DW1 ; A74A32 = A74 'DROIT' A32 'DINI' DW1 'DFIN' (DW '/' NY1) ; A32A31 = A32 'DROIT' A31 'DINI' DW1 'DFIN' DX1 ; *--------------------------- DOM5A = 'DALLER' A31A73 A73A74 A74A32 A32A31 'PLAN' ; *--------------------------- *--------------------------- A73A7M = 'INVERSE' (A7MA73) ; A7MA7H = A7M 'DROIT' A7H 'DINI' DX1 'DFIN' DW1 ; A7HA74 = A7H 'DROIT' NY1 A74 ; A74A73 = 'INVERSE' (A73A74) ; *--------------------------- DOM5B = 'DALLER' A73A7M A7MA7H A7HA74 A74A73 'PLAN' ; *--------------------------- *--------------------------- A7MA83 = A7M 'DROIT' A83 'DINI' DW1 'DFIN' DX1 ; A83A84 = A83 'DROIT' A84 'DINI' DX1 'DFIN' DW1 ; A84A7H = A84 'DROIT' A7H 'DINI' DX1 'DFIN' DW1 ; A7HA7M = 'INVERSE' (A7MA7H) ; *----------------------------- DOM5C = 'DALLER' A7MA83 A83A84 A84A7H A7HA7M 'PLAN' ; *------------------------------------- DOM5 = DOM5A 'ET' DOM5B 'ET' DOM5C ; 'ELIMINATION' DOM5 1.0D-6 ; ****----------*****----------------------******------- * Upper vent *---**********-----**********************------******* *--------------------------- A74A7H = A74 'DROIT' NY1 A7H ; A7HA7F = A7H 'DROIT' NY1 A7F ; A7FA75 = A7F 'DROIT' NY1 A75 ; A75A74 = A75 'DROIT' NY1 A74 ; *--------------------------- DOMW = 'DALLER' A74A7H A7HA7F A7FA75 A75A74 'PLAN' ; FRONTH = A7FA75 ; *----------------------------------* * Ignition Zone * *----------------------------------* ** height at which we ignite HIGN = H2 '/' 2.0D0 ; *------------------------- PP1 = 0.0 HIGN ; gg = (-1.0D0) '*' DX '*' 0.6 ; **-------------------------------- PPP = DX1 0.0 ; PPP = (2.0 '*' DX) 0.0 ; XXX1 = 'COORDONNEE' 1 PA1 ; XXX2 = 'COORDONNEE' 1 PA2 ; YYY2 = 'COORDONNEE' 2 PO2 ; YYY3 = 'COORDONNEE' 2 PO31 ; PO4 = XXX1 YYY2 ; PO7 = XXX1 YYY3 ; *----------------------------- * Just eight cells *----------------------------- PO1PO2 = PO1 'DROIT' 1 PO2 ; PO2PO31 = PO2 'DROIT' 1 PO31 ; PO4PO7 = PO4 'DROIT' 1 PO7 ; PO5PO51 = PO5 'DROIT' 1 PO51 ; **------------------------------ 'SI' (RAF 'EGA' 10) ; NZD = 1 ; KEF = -1.0D0 ; 'SINON' ; KEF = -2.0D0 ; NZD = 2 ; 'FINSI' ; DIG1 = 'TRANSLATION' PO1PO2 NZD ((KEF '*' XXX1) 0.0) ; DIG5 = 'TRANSLATION' PO2PO31 NZD ((KEF '*' XXX1) 0.0) ; DIG6 = 'TRANSLATION' PO4PO7 1 ((XXX2-XXX1) 0.0) ; DIG7 = 'TRANSLATION' PO5PO51 1 (XXX1 0.0) ; 'SI' (RAF '>' 10) ; YO31 = 'COORDONNEE' 2 PO31 ; YO2 = 'COORDONNEE' 2 PO1 ; DIFY = YO31 '-' YO2 ; VECUP = (0.0 DIFY) ; 'FINSI' ; *----------------------------- 'SI' (RAF '>' 10) ; DOMI = DIG1 'ET' DIG5 'ET' DIG6 'ET' DIG7 ; 'SINON' ; DOMI = DIG1 'ET' DIG5 ; 'FINSI' ; 'ELIMINATION' DOMI 1.0D-6; * 'TRACER' DOMI ; *---------------------------------------------------- * Total Domain *---------------------------------------------------- DOMTOT = DOM1 'ET' DOM2 'ET' DOM3 'ET' DOM4 'ET' DOM5 'ET' DOMC 'ET' DOMW 'ET' DOMI ; 'ELIMINATION' DOMTOT 1D-6 ; *------------------------------------- * Total Domain without ignition region *------------------------------------- *---------------------------------- * The fird room (R1801) *---------------------------------- DTHIRD = DOM3 'ET' DOM4 'ET' DOM5 'ET' DOMC 'ET' DOMW ; 'ELIMINATION' DTHIRD 1.0D-6 ; *---------------------------------------- * First and second room (R1904 and R1905) *---------------------------------------- DSEC = DOM1 'ET' DOM2 ; *------------------------------- * Lignes de postreatment *------------------------------- A3A31 = 'INVERSE' A31A3 ; A31A73 = 'INVERSE' A73A31 ; A73A7M = 'INVERSE' A7MA73 ; A7MA83 = 'INVERSE' A83A7M ; LIGT = A3A31 'ET' A31A73 'ET' A73A7M 'ET' A7MA83 ; 'ELIMINATION' LIGT 1.0D-6 ; dis1 = (DX1 '/' 2) '-' (DW '/' 2.0) ; LIGC = LIGA 'ET' LIGB2 ; 'ELIMINATION' LIGC 1.0D-6; LIG1 = LIGC ; * 'TRACER' (DOMTOT 'ET' LIG1) ; *------------------------------- * Points for capturing variables *------------------------------- *--------- inside the first two rooms dish = (H2 '/' 2) '-' (DX1 '/' 2) ; disl = (H1 '/' 2) '+' (DX1 '/' 2) ; PCEL1 = (L1 '/' 6) dish ; PCEL2 = (L1 '/' 6) disl ; PCEL3 = (L1 '/' 2) dish ; PCEL4 = (L1 '/' 2) disl ; PCEL5 = (L1 '-' (L1 '/' 6)) dish ; PCEL6 = (L1 '-' (L1 '/' 6)) disl ; *-------- inside the third room dis1 = L1 '+' (2.0 '*' DW) ; PCEL7 = dis1 (2.0 '*' DW) ; dis2 = (LB '+' (LW '/' 2) '+' (DX1 '/' 2.0)) '+' L1 '+' DW ; PCEL8 = dis2 (DW '-' 5.0) ; PCEL9 = dis2 (4.5 '-' DW) ; * 'TRACER' (DOMTOT 'ET' PCEL1 'ET' PCEL2 'ET' PCEL3 'ET' PCEL4 * 'ET' PCEL5 'ET' PCEL6 'ET' PCEL7 'ET' PCEL8 'ET' PCEL9) ; * * 'TRACER' (('CONTOUR' DREST) * 'ET' PCEL1 'ET' PCEL2 'ET' PCEL3 'ET' PCEL4 * 'ET' PCEL5 'ET' PCEL6 'ET' PCEL7 'ET' PCEL8 'ET' PCEL9) ; *---------------------------------- * Creating the models *---------------------------------- MDNS = 'EULER' ; *--------------------------------- MDOMI = 'MODELISER' DOMI MDNS ; MDREST = 'MODELISER' DREST MDNS ; MFRONTH = 'MODELISER' FRONTH MDNS ; MDOMTOT = 'MODELISER' DOMTOT MDNS ; MDTHIRD = 'MODELISER' DTHIRD MDNS ; MDSEC = 'MODELISER' DSEC MDNS ; *---------------------------------- *---------------------------------- QDOMI = $DOMI . 'QUAF' ; QDREST = $DREST . 'QUAF' ; QFRONTH = $FRONTH . 'QUAF' ; QDOMTOT = $DOMTOT . 'QUAF' ; QDTHIRD = $DTHIRD . 'QUAF' ; QDSEC = $DSEC . 'QUAF' ; *---------------------------------- 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QDOMI ; 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QDREST ; 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QFRONTH ; 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QDTHIRD ; 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QDSEC ; *------------------------------- * 'TRACER' (DOMTOT 'ET' LIN1) ; *---------------------------------- * Ligne at the "coridor" *---------------------------------- VECL = ((-0.5 '*' DX1) (0.5 '*' DX1)) ; VECL = ((-0.5 '*' DX1) (-0.5 '*' DX1)) ; LIG2 = PL2 'DROIT' (NY1 '-' 1) PL3 ; 'SI' (RAF 'EGA' 10) ; LIN2 = LIG2 ; 'SINON' ; 'FINSI' ; * 'TRACER' (DOMTOT 'ET' LIG2) ; * 'TRACER' (DOMTOT 'ET' LIN2) ; *-------------------------------- MDLIN2 = 'MODELISER' LIN2 MDNS ; QDLIN2 = $DLIN2 . 'QUAF' ; 'ELIMINATION' QDOMTOT (1.0D-6 '/' RAF) QDLIN2 ; *---------------------------------- * "Centralising the capteurs" *---------------------------------- * 'TRACER' (DOMTOT 'ET' PCE1 'ET' PCE2 'ET' PCE3 'ET' PCE4 * 'ET' PCE5 'ET' PCE6 'ET' PCE7 'ET' PCE8 'ET' PCE9) ; * 'TRACER' (DOMTOT 'ET' ('DOMA' MDOMI 'CENTRE')) ; *------------------------------------------- * Cells sizes: min, max and averaged *------------------------------------------- SIZE = VOLC '**' 0.5 ; *------- minimal SMIN = 'MINIMUM' SIZE ; *------- maximal SMAX = 'MAXIMUM' SIZE ; *------- averaged 1 'SCAL' 1.0 'NATU' 'DISCRET' ; SIZEAV = SIZEAV '/' numbel ; *------------------------------- * Saving the results *------------------------------- *'OPTION' 'SAUVER' ('CHAINE' '/serg/HDR12.3.2_dir/' * 'mail' RAF '.sauv') ; * 'SAUV' ; *----------------------------------------------- * Initial conditions '+' gas properties *----------------------------------------------- * 'OPTION' 'ECHO' 1 'DIME' 2 'ELEM' 'QUA4' * 'TRAC' 'X' ; * * RAF = 10 ; * * 'OPTION' 'REST' ('CHAINE' '/serg/HDR12.3.2_dir/mail' RAF '.sauv') ; * 'RESTITUER' ; GRAPH = FAUX ; *************************************************************** ***** PROCEDURE POUR CALCULER LES 'CP' ET 'CV' ***** *************************************************************** 'DEBPROC' CPCV TN*'FLOTTANT' PGAZ*'TABLE' ; * CPP = 'TABLE' ; CVV = 'TABLE' ; TT = TN ; T2 = TT '*' TT ; T3 = T2 '*' TT ; T4 = T3 '*' TT ; NOMCOM = 'EXTRAIRE' &BL1 (PGAZ . 'ESPEULE'); A0 = ('EXTRAIRE' 1 (PGAZ . NOMCOM . 'A')) ; A1 = ('EXTRAIRE' 2 (PGAZ . NOMCOM . 'A')) '/' 2.0 ; A2 = ('EXTRAIRE' 3 (PGAZ . NOMCOM . 'A')) '/' 3.0 ; A3 = ('EXTRAIRE' 4 (PGAZ . NOMCOM . 'A')) '/' 4.0 ; A4 = ('EXTRAIRE' 5 (PGAZ . NOMCOM . 'A')) '/' 5.0 ; CVV . NOMCOM = A0 '+' (A1*TT) '+' (A2 '*' T2) '+' (A3 '*' T3) '+' (A4 '*' T4) ; CPP . NOMCOM = (CVV . NOMCOM) '+' (PGAZ . NOMCOM . 'R') ; 'FIN' BL1 ; NOMCOM = PGAZ . 'ESPNEULE' ; A0 = ('EXTRAIRE' 1 (PGAZ . NOMCOM . 'A')) ; A1 = ('EXTRAIRE' 2 (PGAZ . NOMCOM . 'A')) '/' 2.0 ; A2 = ('EXTRAIRE' 3 (PGAZ . NOMCOM . 'A')) '/' 3.0 ; A3 = ('EXTRAIRE' 4 (PGAZ . NOMCOM . 'A')) '/' 4.0 ; A4 = ('EXTRAIRE' 5 (PGAZ . NOMCOM . 'A')) '/' 5.0 ; CVV . NOMCOM = A0 '+' (A1*TT) '+' (A2 '*' T2) '+' (A3 '*' T3) '+' (A4 '*' T4) ; CPP . NOMCOM = (CVV . NOMCOM) '+' (PGAZ . NOMCOM . 'R') ; 'FINPROC' CPP CVV ; *************************************************************** ***** PROCEDURE POUR CALCULER LES VARIABLES CONSERVATIVES ***** *************************************************************** 'DEBPROC' CONS RN*'CHPOINT' VN*'CHPOINT' PN*'CHPOINT' YN*'CHPOINT' $DM*'MMODEL' PGAZ*'TABLE' ; * NOMCOM = 'EXTRAIRE' &BL1 (PGAZ . 'ESPEULE'); YTOT = YTOT '+' YCEL ; RTOT = RTOT '+' ((PGAZ . NOMCOM . 'R') * YCEL) ; A0 = A0 '+' (('EXTRAIRE' 1 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A1 = A1 '+' (('EXTRAIRE' 2 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A2 = A2 '+' (('EXTRAIRE' 3 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A3 = A3 '+' (('EXTRAIRE' 4 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A4 = A4 '+' (('EXTRAIRE' 5 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; 'SI' ('EGA' &BL1 1) ; 'SINON' ; RYN = RYN 'ET' 'FINSI' ; 'FIN' BL1 ; NOMCOM = PGAZ . 'ESPNEULE' ; A0 = A0 '+' (('EXTRAIRE' 1 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A1 = A1 '+' (('EXTRAIRE' 2 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A2 = A2 '+' (('EXTRAIRE' 3 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A3 = A3 '+' (('EXTRAIRE' 4 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; A4 = A4 '+' (('EXTRAIRE' 5 (PGAZ . NOMCOM . 'A')) '*' YCEL) ; RTOT = RTOT '+' ((PGAZ . NOMCOM . 'R') '*' YCEL); TN = PN '/' (RN '*' RTOT) ; T2 = TN '*' TN ; T3 = T2 '*' TN ; T4 = T3 '*' TN ; T5 = T4 '*' TN ; ETHER = (A0 * TN) '+' ((A1 '/' 2.0) * T2) '+' ((A2 '/' 3.0) * T3) '+' ((A3 '/' 4.0) * T4) '+' ((A4 '/' 5.0) * T5) ; REN = (RN '*' ETHER) '+' ECIN ; 'FINPROC' GN REN RYN ; ************************************************************ ************************************************************ * * ***** Gas properties ***** * * ************************************************************ ************************************************************ PGAZ = 'TABLE' ; PGAZB = 'TABLE' ; * Polynomial degree of specific heats PGAZ . 'NORD' = 4 ; PGAZB . 'NORD' = 0 ; * Species explicitly treated in the Euler Equations PGAZB . 'ESPEULE' = PGAZ . 'ESPEULE' ; * Species non explicitly treated PGAZ . 'ESPNEULE' = 'N2 '; PGAZB . 'ESPNEULE' = PGAZ . 'ESPNEULE' ; * Gas species properties PGAZ . 'H2 ' = 'TABLE' ; PGAZ . 'H2O ' = 'TABLE' ; PGAZ . 'N2 ' = 'TABLE' ; PGAZ . 'O2 ' = 'TABLE' ; *---------------- PGAZB . 'H2 ' = 'TABLE' ; PGAZB . 'H2O ' = 'TABLE' ; PGAZB . 'N2 ' = 'TABLE' ; PGAZB . 'O2 ' = 'TABLE' ; * R (J/Kg/K) and molar masses mH2 = 2. '*' 1.00797E-3 ; mO2 = 2. '*' 15.9994E-3 ; mH2O = mh2 '+' (0.5 '*' mo2) ; mN2 = 2 '*' 14.0067E-3 ; RGAS = 8.31441 ; *------------------------------------- PGAZ . 'H2 ' . 'R' = RGAS '/' mh2 ; PGAZ . 'H2O ' . 'R' = RGAS '/' mh2o ; PGAZ . 'N2 ' . 'R' = RGAS '/' mn2 ; PGAZ . 'O2 ' . 'R' = RGAS '/' mo2 ; *------------------------------------- PGAZB . 'H2 ' . 'R' = RGAS '/' mh2 ; PGAZB . 'H2O ' . 'R' = RGAS '/' mh2o ; PGAZB . 'N2 ' . 'R' = RGAS '/' mn2 ; PGAZB . 'O2 ' . 'R' = RGAS '/' mo2 ; *------------------------------------- * Polynomials regressions coefficients -2.37281455E-07 1.84701105E-11 ; -1.82753232E-08 2.44485692E-12 ; 8.78233606E-09 -3.05514485E-13 ; 2.33636971E-08 -1.53304905E-12; *------------------------------------------------------- * Formation enthalpies at 0K (J/Kg)) * * h_i(0K) = h_i(T0) '-' \int_0^{T0} cp_i(x) dx * = h_i(T0) '-' (\int_0^{T0} cv_i(x) dx '+' R_i * T0) *------------------------------------------------------- PGAZ . 'H2 ' . 'H0K' = -4.195D6 ; PGAZ . 'H2O ' . 'H0K' = -1.395D7 ; PGAZ . 'N2 ' . 'H0K' = -2.953D5 ; PGAZ . 'O2 ' . 'H0K' = -2.634D5 ; *------------------------------------- PGAZB . 'H2 ' . 'H0K' = -4.195D6 ; PGAZB . 'H2O ' . 'H0K' = -1.395D7 ; PGAZB . 'N2 ' . 'H0K' = -2.953D5 ; PGAZB . 'O2 ' . 'H0K' = -2.634D5 ; *----------------------------------- *** Names of the passive scalars *----------------------------------- *----------------------------------------------- **************************************************** **************************************************** * Initial conditions * **************************************************** **************************************************** *** inside the domain tg = 337.0D0 ; pg = 100000.0D0 ; xh2o = 0.26D0 ; xh2 = 0.1D0 ; xo2 = 0.1344D0 ; xn2 = 1.0D0 - (xh2 + xo2 + xh2O) ; uxg = 0.0 ; uyg = 0.0 ; *------------------------- td = 337.0D0 ; uxd = 0.0D0 ; uyd = 0.0D0 ; pd = 100000.0D0 ; *---- values of K_0 K0IN = 0.41D0 ; K0IG = 0.41D0 ; K03 = 3.7D0 ; *-------------------------------------------- * After burning: AIBC (same pressure) *-------------------------------------------- tc = 1086.38864D0 ; xo2c = 0.0888421D0 ; xh2oc = 0.3789469D0 ; xn2c = 1.0D0 '-' (xh2c '+' xo2c '+' xh2oc) ; pc = pg ; *--------------------------------------------- CP1 CV1 = CPCV tg PGAZ ; *'-'*'-'*'-'*'-'*'-'*- PGAZB . 'CP' = 'TABLE' ; PGAZB . 'CP' . 'H2 ' = CP1 . 'H2' ; PGAZB . 'CP' . 'H2O ' = CP1 . 'H2O' ; PGAZB . 'CP' . 'O2 ' = CP1 . 'O2' ; PGAZB . 'CP' . 'N2 ' = CP1 . 'N2' ; *---------------------------------------- PGAZB . 'CV' = 'TABLE' ; PGAZB . 'CV' . 'H2 ' = CV1 . 'H2' ; PGAZB . 'CV' . 'H2O ' = CV1 . 'H2O' ; PGAZB . 'CV' . 'O2 ' = CV1 . 'O2' ; PGAZB . 'CV' . 'N2 ' = CV1 . 'N2' ; *--------------------------------------------- * Creating CHAMPOINTS *--------------------------------------------- *** Pressure ********************************* *** Temperature 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; **** Velocity *------------------------------------------------------- * Combustion is complete, i.e. \ksi = 1 after combustion *------------------------------------------------------- **** Molar fractions before combustion 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; XN = XH21 'ET' XH2O1 'ET' XO21 'ET' XN21 ; **** Mass Fractions 'NATURE' 'DISCRET') 'ET' 'NATURE' 'DISCRET') 'ET' 'NATURE' 'DISCRET') 'ET' 'NATURE' 'DISCRET') ; YH21 = (XH21 '*' mH2) '/' MTOT ; YO21 = (XO21 '*' mO2) '/' MTOT ; YN21 = (XN21 '*' mN2) '/' MTOT ; YH2O1 = (XH2O1 '*' mH2O) '/' MTOT ; aaa = 'MAXIMUM' (YH21) ; *---------------------------------------------- * Burned gas * First we find how much of the burned gas * produces using 1 mole of unburned gas *---------------------------------------------- O2MAG = CHUN '-' H2MAG ; XO22a = XO22a ; XH22a = XH22a ; XH22 = (XH22a '*' H2MAG) '+' (XH22b '*' O2MAG) ; XO22 = (XO22a '*' H2MAG) '+' (XO22b '*' O2MAG) ; XN22 = XN21 ; *--------------------------------------------------- * Verifying that mtot2 = mtot *--------------------------------------------------- MTOT2 = 'PSCAL' MMOL (XH22 '+' XO22 '+' XH2O2 '+' XN22) 'MESSAGE' 'problem1' ; 'FINSI' ; ***** xtot2 = mole of burned gas per mole of unburned gas xtot2 = 'PSCAL' (XH22 '+' XO22 '+' XH2O2 '+' XN22) ***** X now is the real molar fractions XH22 = XH22 '/' xtot2 ; XO22 = XO22 '/' xtot2 ; XH2O2 = XH2O2 '/' xtot2 ; XN22 = XN22 '/' xtot2 ; xtot3 = 'PSCAL' (XH22 '+' XO22 '+' XH2O2 '+' XN22) 'MESSAGE' 'problem2' ; 'FINSI' ; **** mtot2 = weight of 1 mole of burned gas MTOT2 = 'PSCAL' MMOL (XH22 '+' XO22 '+' XH2O2 '+' XN22) **** Mass fractions of burned gas after complete combustion YH22 = (XH22 '*' MH2) '/' MTOT2 ; YO22 = (XO22 '*' MO2) '/' MTOT2 ; YN22 = (XN22 '*' MN2) '/' MTOT2 ; YH2O2 = (XH2O2 '*' MH2O) '/' MTOT2 ; *--------------------------------------------- * Conservative variables *--------------------------------------------- RN = PINI '/' (RINI '*' TINI) ; YN = YH21 '+' YO21 '+' YH2O1 ; GN RETN RYN = CONS RN WINI PINI YN MDOMTOT PGAZ ; *-------------------------------------- * Passive scalars *-------------------------------------- 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') 'ET' 'NATU' 'DISCRET') ; *--------------------------------------- *------------------- ***** Verification *------------------- *----------------------- PCEL = 'MAXIMUM' PINI ; TCEL = 'MAXIMUM' TINI ; 'MESSAGE' 'problem3' ; 'LISTE' ('MAXIMUM' ((P '-' PINI) '/' PCEL) 'ABS') ; 'FINSI' ; 'MESSAGE' 'problem4' ; 'LISTE' ('MAXIMUM' ((T '-' TINI) '/' TCEL) 'ABS') ; 'FINSI' ; 'MESSAGE' 'problem5' ; 'LISTE' ('MAXIMUM' VN 'ABS') ; 'FINSI' ; 'MESSAGE' 'problem6' ; 'LISTE' ('MAXIMUM' (Y '-' YN) 'ABS') ; 'FINSI' ; *-------------------------------------- * Graphics *-------------------------------------- 'SI' GRAPH ; 'TRACER' CHM_TN MDOMTOT 'TRACER' CHM_RN MDOMTOT 'TRACER' CHM_PN MDOMTOT 'TRACER' CHM_VN MDOMTOT 'TRACER' CHM_H2 MDOMTOT 'TRACER' CHM_YIN MDOMTOT 'TRACER' CHM_YFI MDOMTOT 'TRACER' CHM_K0 MDOMTOT 'FINSI' ; *----------------------------------------------- * Parameters for the computation *----------------------------------------------- *** Upwind scheme METO = 'SS' ; **** Iterations NITER = 100 ; **** Final time (no restriction) TFINAL = 10000.1 ; **** Safety factor for the time step SAFFAC = 0.7 ; *** Second order ? LOGSO = VRAI ; LOGSO = FAUX ; *** EPS_CC '-' epsilon in CREBCOM criterion EPS_CC = 0.5 ; **** "explosive" initial conditions? LOGEXP = VRAI ; LOGEXP = FAUX ; *** Are there any Boundary conditions LOGBC = VRAI ; *------------------------------- * Time intervals for the output *------------------------------- *** Mesh size DELX = 'MAXIMUM' DELTAXN ; *------------------------------------- TABLIM = 'TABLE' ; pwin = (('MAXIMUM' RN) '*' 9.8) '*' 4.668 ; TABLIM . 'CHPOUT' = TABLIM . 'H' = 50.0D0 ; TABLIM . 'TNUL' = TABLIM . 'FREQ' = 1 ; *----- gravity ---------- 'UX' 0.0D0 'UY' (-9.8D0) ; *---------------------------------------------- * Table for evolution of the variables with time * at the fixed points *---------------------------------------------- TABC = 'TABLE' 'CAPTEUR' ; TABC . 'LPOINTS' = PCEL1 'ET' PCEL2 'ET' PCEL3 'ET' PCEL4 'ET' PCEL5 'ET' PCEL6 'ET' PCEL7 'ET' PCEL8 'ET' PCEL9 ; 'C7' 'C8' 'C9' ; TABC . 'FREQ' = 10 ; VOLGOR = DX1 '*' DX1 '*' bnb ; *----------------------------------------------- * In MDOM1 we 'burn' the gas; * In order to do so we shall apply the * operator 'FLAM' in MDOM1 with eps=0 * and DELTAT >> DELTATC *---------------------------------------------- YN = RYN '/' RN ; SN = RSN '/' RN ; DELTATC = 0.25 '*' ('MINIMUM' (DELTAXN '/' K0N)) ; **** Stocheom. coefficients *------------------------------------------- * This to activate in case of constant volume * combustion *------------------------------------------- 'SI' LOGEXP ; DELTARE DELTARY = 'FLAM' 'CREBCOM2' MDOMI PGAZ LMOT1 LCOEF RYN = RYN '+' DELTARY ; YN = RYN '/' RN ; RETN = RETN '+' DELTARE ; 'FINSI' ; *----------------------------------------------- * Names of the components *----------------------------------------------- LISTINCO = 'MOTS' 'RN' 'RUX' 'RUY' 'RETN' 'H2' 'O2' 'H2O' 'H2IN' 'H2FI' 'K0' ; ****** names of the primitive variables LISTINCP = 'MOTS' 'RN' 'UX' 'UY' 'PN' 'H2' 'O2' 'H2O' 'H2IN' 'H2FI' 'K0' ; *-------------------------------------------- GRADR CCC COEFSCAL = 'PENT' MDOMTOT 'CENTRE' 'EULESCAL' 'NOLIMITE' LMOT111 RN ; GRADV CCC COEFVECT = 'PENT' MDOMTOT 'CENTRE' 'EULEVECT' 'NOLIMITE' LMOT2 GN ; *-------------------------------------------- * Volumes of the rooms ; *-------------------------------------------- *------------------------------- *------------------------------------------- *---- 'LISTE' for the discharge at the coridor *---- 'LISTE' for the averaged velocity at the coridor *---- 'LISTE' for the discharge at the vent *---- 'LISTE' for the averaged velocity at the vent *-------------------------------------------- TPS = 0.0 ; *------------------------------------------ * Chemical time step *------------------------------------------ DT_CHEM = SAFFAC '*' DELTATC ; *------------------------------------------- **** Temporal loop *------------------------------------------- 'MESSAGE' ; 'MESSAGE' ('CHAINE' 'Methode = ' METO) ; 'MESSAGE' ('CHAINE' 'SAFFAC = ' SAFFAC) ; 'MESSAGE' ; *----------------------------------- *---------------------------------- TFINAL = 'EXTRAIRE' &BLG LISTT ; *---------------------------------- TNM1 = 'COPIER' TN ; 'TEMPS' 'ZERO' ; 'REPETER' BL1 NITER ; * **** Primitive variables * FREQC = TABC.'FREQ' ; 'SI' (((&BL1 '/' FREQC) '*' FREQC) 'EGA' &BL1) ; ******* The "coridor" ********************** 'SCAL' (DX1) 'NATU' 'DISCRET') ; *------- rashod discharge ---------------- GLXAV = GLXAV '/' H1 ; *---- redifining CHUN ------------------- 'SCAL' (DX1 '*' DX1) 'NATU' 'DISCRET') ; *------- averaged density ---------------- RLAV = RLAV '/' VOLGOR ; *------- averaged momentum --------------- GLXAV = GLXAV '/' VOLGOR ; *----------------------------------------- * UXL = GLXAV '/' RLAV ; CHVIT = GLX2 '*' ('INVERSE' RL2) ; UXL = 'MAXIMUM' CHVIT ; ******* The second room ********************** *---------------------------------------------------- * Computation of averaged pressure and temperature *---------------------------------------------------- *--- we average the conservative data RN2S = RN2S '/' VV2S ; *---------------------- RETN2S = RETN2S '/' VV2S ; *----------------------- *------------------- GNX2S = GNX2S '/' VV2S ; *------------------- GNY2S = GNY2S '/' VV2S ; *-------------------- *------------------- RYH2S = RYH2S '/' VV2S ; *------------------- RYO2S = RYO2S '/' VV2S ; *------------------- RYHO2S = RYHO2S '/' VV2S ; *-------------------------------------- *-------------------------------------- *-------------------------------------------- PN2S = 'MAXIMUM' PS ; TN2S = 'MAXIMUM' TS ; *------------------------------- *------------------------------------------------- ******** IN THE BIGGEST ROOM ******************** *--- we average the conservative data RN2S = RN2S '/' VV3S ; *---------------------- RETN2S = RETN2S '/' VV3S ; *----------------------- *------------------- GNX2S = GNX2S '/' VV3S ; *------------------- GNY2S = GNY2S '/' VV3S ; *-------------------- *------------------- RYH2S = RYH2S '/' VV3S ; *------------------- RYO2S = RYO2S '/' VV3S ; *------------------- RYHO2S = RYHO2S '/' VV3S ; *-------------------------------------- *-------------------------------------- *-------------------------------------------- PN2S = 'MAXIMUM' PS ; TN2S = 'MAXIMUM' TS ; *------------------------------------------------- 'FINSI' ; *-------------------------------------------------- *------------------------------------------- VN PN TN YN SN GAMMAN = 'PRIM' 'PERFTEMP' PGAZ RN GN RETN RYN RSN TNM1 ; *-------------------------------------------- * Boundary conditions *-------------------------------------------- *** find new CP and CV ******* * CP1 CV1 = CPCV tg PGAZ ; *------------------------------------------ 'SI' LOGBC ; 'SI' (&BLG 'EGA' 1) ; MDOMTOT MFRONTH PGAZB LISTINCO LISTINCP RN VN PN YN SHIN SHFI SHK0 (TABLIM . 'CHPOUT') 'OUTP' ; 'FINSI' ; *------------------------------------ MAILLIM = 'EXTRAIRE' RCHLIM 'MAILLAGE' ; MAIL111 = 'EXTRAIRE' RCHRES 'MAILLAGE' ; *------------------------------------ 1 'SCAL' 1.0 ; NUNI = UNI1 '*' (1.0 '/' NBB) ; **** computing average temperature at the boundary *** find new CP and CV ******* CPN CVN = CPCV TAV PGAZ ; *** Updating CP and CV for the boundary conditions PGAZB . 'CP' . 'H2 ' = CPN . 'H2' ; PGAZB . 'CP' . 'H2O ' = CPN . 'H2O' ; PGAZB . 'CP' . 'O2 ' = CPN . 'O2' ; PGAZB . 'CP' . 'N2 ' = CPN . 'N2' ; *---------------------------------------- PGAZB . 'CV' . 'H2 ' = CVN . 'H2' ; PGAZB . 'CV' . 'H2O ' = CVN . 'H2O' ; PGAZB . 'CV' . 'O2 ' = CVN . 'O2' ; PGAZB . 'CV' . 'N2 ' = CVN . 'N2' ; * 'FINSI' ; *-------------------------------- MDOMTOT MFRONTH PGAZB LISTINCO LISTINCP RN VN PN YN SHIN SHFI SHK0 (TABLIM . 'CHPOUT') 'OUTP' ; MAILLIM = 'EXTRAIRE' RCHLIM 'MAILLAGE' ; MAIL111 = 'EXTRAIRE' RCHRES 'MAILLAGE' ; *-------------------------------------------- * We compute the debit et vitesse *-------------------------------------------- 'SI' (((&BL1 '/' FREQC) '*' FREQC) 'EGA' &BL1) ; MAIL111 ; DEBUP = (DEBUP '/' LW) '*' (-1.0) ; *-------------------------------------------- 'SCAL' 1.0D0 'NATU' 'DISCRET') ; *------------------------ VITUP = GXUPS '/' RNUPS ; 'FINSI' ; *-------------------------------------------- 'FINSI' ; *------------------------------------ *-------------------------------- TNM1 = 'COPIER' TN ; 'SI' LOGSO ; GRADR ALR = 'PENT' MDOMTOT 'CENTRE' 'EULESCAL' 'LIMITEUR' GRADP ALP = 'PENT' MDOMTOT 'CENTRE' 'EULESCAL' 'LIMITEUR' GRADV ALV = 'PENT' MDOMTOT 'CENTRE' 'EULEVECT' 'LIMITEUR' GRADY ALY = 'PENT' MDOMTOT 'CENTRE' 'EULESCAL' 'LIMITEUR' GRADS ALS = 'PENT' MDOMTOT 'CENTRE' 'EULESCAL' 'LIMITEUR' MDOMTOT PGAZ RN GRADR ALR VN GRADV ALV PN GRADP ALP YN GRADY ALY SN GRADS ALS ; 'SINON' ; MDOMTOT PGAZ RN VN PN YN SN ; 'FINSI' ; *----------------------------------------------- 'SI' LOGBC ; MDOMTOT PGAZ LISTINCO ROF VITF PF YF SF MAILLIM ; RESIDU = RESIDU 'ET' RCHRES ; 'SINON' ; MDOMTOT PGAZ LISTINCO ROF VITF PF YF SF ; 'FINSI' ; *----------------------------------------------- DT_CON = SAFFAC '*' DELTAT ; * **** The time step linked to tps * * **** Total time step * * **** Increment of the variables (convection) * RESIDU = DTMIN '*' RESIDU ; TPS = TPS '+' DTMIN ; RN = RN '+' DRN ; GN = GN '+' DGN ; RETN = RETN '+' DRETN ; RYN = RYN '+' DRYN ; RSN = RSN '+' DRSN ; YN = RYN '/' RN ; SN = RSN '/' RN ; * **** Increment of the variables (chemical source) * DRETN DRYN = 'FLAM' 'CREBCOM2' MDOMTOT PGAZ LMOT1 LCOEF RN YN RYN = RYN '+' DRYN ; RETN = RETN '+' DRETN ; *--------------------------------------------------- * Rate of loosing energy due to boundary conditions *--------------------------------------------------- * 'SI' (TPS '>' 3.0) ; HH = TABLIM . 'H' ; * 'FINSI' ; *-------------------------------------------------- * Gravity forces *-------------------------------------------------- ROG = RN '*' (TABLIM . 'GRAV') LIMOT1 LIMOT2 LIMOT3 ; GN = GN '+' (DTMIN '*' ROG) ; ROGU = 'PSCAL' ROG VN LIMOT3 LIMOT2 ; RETN = RETN '+' (DTMIN '*' ROGU) ; *--------------------------------------------------- *--------------------------------------------- * Capturing variables at the capteurs *--------------------------------------------- 'SI' (((&BL1 '/' FREQC) '*' FREQC) 'EGA' &BL1) ; PTS = TABC . 'LPOINTS' ; ***** M1 is the number of capteurs LTPS = TABC . 'LTPS' ; **** N1 is the number of variables captured * On etudie uniquement la pression * peut evoluer par la suite !!! * Initialisation des tables 'SI' (NTPS EGA 0 ); 'REPETER' BOU1 M1; **** extract the names of the capteurs 'SINON' ; 'FINSI'; 'SI' (&BOU1 'EGA' 1); TABC.'RPOINTS' = PT2 ; 'SINON'; TABC.'RPOINTS' = TABC .'RPOINTS' 'ET' PT2; 'FINSI'; 'REPETER' BOU2 N1; 'FIN' BOU2; 'FIN' BOU1; 'FINSI'; *-------------------------------------------- 'REPETER' BOU1 M1 ; 'SINON' ; 'FINSI'; 'REPETER' BOU2 N1; *** captage de la pression 'SI' ('EGA' MOI 'PN'); * 'LISTE' X1 ; 'FINSI'; *** captage de temperature 'SI' ('EGA' MOI 'TN'); 'FINSI'; 'FIN' BOU2; 'FIN' BOU1; 'FINSI' ; *****---- creating listreel of time steps 'SI' (((&BL1 '/' FREQC) '*' FREQC) 'EGA' &BL1) ; 'FINSI' ; *--------------------------------------------- 'SI' (((&BL1 '/' 20) '*' 20) 'EGA' &BL1) ; 'MESSAGE' ('CHAINE' 'ITER =' &BL1 ' TPS =' TPS) ; 'FINSI' ; *------------------------------------------------------- 'SI' (TPS '>EG' TFINAL) ; 'QUITTER' BL1 ; 'FINSI' ; 'FIN' BL1 ; *------------------------------------ *----------------------------------- 'FIN' BLG ; 'TEMPS' ; ************************************************* * Posttreatment * ************************************************* OVPRES = (TABC . 'C1' . 'PN') '-' LISTP0 ; OVPRES ; *------------------------------------------------ 32.615 43.088 48.922 47.665 ; DIFFER = OVPRES '-' LPGOOD ; 'SI' (('MAXIMUM' DIFFER) <EG 1.D-3) ; 'MESSAGE' ; 'MESSAGE' 'OVERPRESSURE IS OK' ; 'MESSAGE' ; 'SINON' ; 'MESSAGE' ; 'MESSAGE' 'THERE IS A PROBLEM' ; 'MESSAGE' ; 'FINSI' ; 'FIN' ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales