*======================================================================= * * fichier : injN2.dgibi * * N2 injection inside a non adiabatic axisymetric cavity * Comparaison in average with an analytic solution * *======================================================================= * Analytical solution * * Mean pressure, temperature and density are computed according to the * injection at a constant mass flow rate and temperature of a non * condensable (nc) gas inside a non adiabatic cavity. At the * initial time t=0, the cavity is filled with the SAME nc gas. * * Hypothesis : Laplace coefficient Gama=cp/cv is constant * * 'DEBP' SOREF Ltps*'LISTREEL' QM*'FLOTTANT' Vr*'FLOTTANT' Sr*'FLOTTANT' Pnm*'FLOTTANT' tetai*'FLOTTANT' * * E/ : Ltps : List of time steps (in s) * E/ : QM : Mas flow rate at the injection (in kg/s) * E/ : Vr : Volume of the cavity (in m3) * E/ : Sr : Surface of the wall (in m2) * E/ : Pnm : Initial pressure (in Pa) * E/ : TETAI : Initial temperature (in C) * E/ : INCOND : Name of the nc gas * E/ : HEXT : External heat transfer coefficient (in W/m2/K) * E/ : TEXT : External temperature (in C) * E/ : COUL1 : Color of the evolutions * * /S : evp1 : EVOLUTION : Mean pressure evolution in time * /S : evt1 : EVOLUTION : Mean temperature evolution in time * /S : evrho1 : EVOLUTION : Mean nc qas density evolution in time * 'SI' ('EGA' INCOND 'AIR' ) ; Rinc = 287.1 ; 'SINO' ; 'SI' ('EGA' INCOND 'N2') ; Rinc = 296.9 ; 'SINO' ; 'FINS' ; 'FINS' ; * 'SI' (ntps '>' 1) ; 'SINO' ; 'LIST' ltps ; 'FINS' ; * * Initial conditions Rhonm = Pnm '/' Rinc '/' (tetai + 273.15) ; * A = Cp '/' Rinc '-' 1. ; 'REPE' BLOC (ntps '-' 1) ; * text = ('EXTR' thist . 'W1' . 'L_TWAL' (&BLOC '+' 1)) '-' 273.15 ; DT0 = tpsn '-' tpsnm ; Rhon = DT0 '*' Qm '/' Vr '+' Rhonm ; Alfa = Sr '*' hext '/' (Rhon '*' Rinc '*' Vr) ; Pn = (A/DT0)/(A/DT0 + Alfa) '*' Pnm '+' (1./(A/DT0 + Alfa)/Vr '*' (Qm*Cp*(tetai + 273.15) + Beta)) ; Tn = Pn '/' (Rhon '*' Rinc) '-' 273.15 ; * * 'SI' ('EGA' INCOND 'AIR' ) ; * a1 a2 a3 a4 a5 a6 Cp = calcp tn ; * 'SINO' ; * a1 a2 a3 Cp a5 a6 a7 = calcp tn ; * 'FINS' ; * * tpsnm = tpsn ; Rhonm = Rhon ; Pnm = Pn ; 'FIN' BLOC ; 'FINP' evp1 evt1 evrho1 ; *======================================================================= * * COMPLET = faux ; GRAPH = faux ; * 'SI' COMPLET ; Tmax = 500. ; DT0 = 1. ; n1 = 5 ; n2 =10 ; n3 =20 ; 'SINO' ; Tmax = 500. ; DT0 = 2. ; n1 = 3 ; n2 = 3 ; n3 = 3 ; 'FINS' ; nbit = 'ENTI' (Tmax / DT0) ; Qinj = 0.2 ; PT0 = 1.e5 ; TF0 = 300. - 273.15 ; hext = 0. ; * * * Mesh * * * R1 = Radius of the vertical cylinder * H1 = Half-height of the vertical cylinder * H2 = Half-height of the cavity * DB = Radius of the injection * -HB = Elevation of the injection * * episo = Width of the internal thermal insulator * epsi0 = 1.e-5 ; * EPISO = 0.044 ; R1 = 1.200 - episo ; H1 = 1.605 ; H2 = 2.342 - episo ; DB = 0.1 ; HB = 0.835 ; * * Points for rotation purposes CA1 = 0. 0.275 ; CA2 = (0.33*R1) H1 ; * * Points for symetry purposes P0 = 0. 0. ; P2 = DB 0. ; PA0 = R1 0.; * * Specific points PAXb = 0. (-1. '*' HB) ; P2b = DB (-1. '*' HB) ; PAb = R1 (-1. '*' HB) ; PAbm = (R1/2.) (-1. '*' HB) ; PAX2 = 0. H2 ; PA1 = R1 H1 ; * Pb1 = R1 (-1. '*' H1) ; * * Specific treatment (lips) at the injection * * Upper volume * From the injection elevation to the top * * * * * * Lower volume * From the bottom to the injection elevation * * * Mesh of the cavity and specific boundaries (axis, containment wall) mt = mth 'ET' mtb ; 'ELIM' mt epsi0 ; * * Control 'SI' GRAPH ; 'TRAC' mt ; pla = paroih 'ET' plaf ; 'FINS' ; * * * Data for execrxt.procedur * * rxt = 'TABLE' ; rxt . 'VERSION' = 'V0' ; rxt . 'vtf' = mt ; rxt . 'axe' = axe ; rxt . 'pi' = 0.5 0.5 ; rxt . 'DISCR' = 'LINE'; rxt . 'KPRE' = 'MSOMMET' ; rxt . 'DT0' = DT0 ; rxt . 'MODTURB' = 'LMEL' ; rxt . 'LMEL' = 0.01 ; * rxt . 'TF0' = TF0 ; rxt . 'PT0' = PT0 ; rxt . 'N2' = vrai ; rxt . 'Yn20' = 0.9999 ; * rxt . 'Breches' = 'TABLE' ; rxt . 'Breches' . 'A' = 'TABLE' ; rxt . 'Breches' . 'A' . 'Maillage' = breche ; rxt . 'Breches' . 'A' . 'diru' = (0. 1.) ; rxt . 'Breches' . 'A' . 'scenario' = 'TABLE' ; * rxt . 'TIMP' = 'TABLE' ; rxt . 'TIMP' . 'TIMP1' = 'TABLE' ; rxt . 'TIMP' . 'TIMP1' .'MAILLAGE' = parext ; rxt . 'TIMP' . 'TIMP1' .'ECHAN' = 10. ; * rxt . 'DETMAT' = vrai ; rxt . 'RENU' = 'RIEN' ; rxt . 'GRAPH' = faux ; rxt . 'GRAPH' = GRAPH ; * * * Transient computation * (the numerical diffusion is set to zero for the equation devoted to fluid temperature) 'SI' COMPLET ; rxt . 'TBT' . 'RTF' . '1TSCA' . 'KOPT' . 'CMD' = 0. ; 'FINS' ; execrxt nbit rxt ; * * * Plots devoted to inj... cases * * Ltps = rxt . 'TIC' . 'LTPS' ; *Vr = 17.4 ; Sr = 35.914 ; Hinf = rxt . 'TIMP' . 'TIMP1' .'ECHAN' ; evp1 evt1 evrho1 = SOREF Ltps Qinj Vr Sr PT0 TF0 'N2' Hinf Tinf 'ROUG' ; evm1 = evrho1 * Vr ; evm2 = evrho2 * Vr ; 'SI' GRAPH ; TAB1 = 'TABLE' ; TAB1 . 'TITRE' = 'TABLE' ; TAB1 . 'TITRE' . 1 = 'Sol Ref'; TAB1 . 'TITRE' . 2 = 'Nautilus CFD'; * 'TITR' 'Pressure' 'MIMA' 'GRIL' 'POIN' 'GRIS' 'TITX' 's' 'TITY' ' Pa' 'LEGE' tab1 ; 'TITR' 'Mean gas temperature' 'GRIL' 'POIN' 'GRIS' 'TITX' 's' 'TITY' ' C' 'LEGE' tab1 ; 'TITR' 'Mean gas density' 'GRIL' 'POIN' 'GRIS' 'TITX' 's' 'TITY' 'kg' 'LEGE' tab1 ; 'FINS' ; * * * Tests * * 'SI' ('NON' COMPLET) ; ERR1 = 0 ; devp = evp1 - evp2 'ABS' ; devt = evt1 - evt2 'ABS' ; 'SI' (ERP '>' 0.4D5) ; err1 = err1 '+' 1 ; 'FINS' ; 'SI' (ERT '>' 20.) ; err1 = err1 '+' 1 ; 'FINS' ; * On relache le test à cause de 32 bits 'SI' (ert_calc '>' 1.1) ; err1 = err1 '+' 1 ; 'FINS' ; 'SI' ('NEG' ERR1 0) ; 'FINS' ; 'FINS' ; * 'FIN' ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales