27.07.2013 Views

Design og modellering af metanolanlæg til VEnzin-visionen Bilag

Design og modellering af metanolanlæg til VEnzin-visionen Bilag

Design og modellering af metanolanlæg til VEnzin-visionen Bilag

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>VEnzin</strong>.for<br />

c:/dna/source/<br />

CA 3: Fluid composition calculation (constant).<br />

CA 4: Find residuals.<br />

CA 5: Find residuals and check variables.<br />

CA 6: Output information about component.<br />

CA MDOT − INPUT − Massflows from nodes.<br />

CA P − INPUT − Pressure in nodes.<br />

CA Q − INPUT − Exchanged heat.<br />

CA PAR − INPUT − Parameters of the component.<br />

CA X_J − INPUT − Fluid composition.<br />

CA KOMTY − OUTPUT − Component name.<br />

CA ANTPK − OUTPUT − Number of parameters for the component.<br />

CA ANTLK − OUTPUT − Number of equations in the component.<br />

CA ANTEX − OUTPUT − Number of independent equations in the component.<br />

CA ANTED − OUTPUT − Number of differential independent equations.<br />

CA ANTKN − OUTPUT − Number of nodes connected to the component.<br />

CA ANTM1 − OUTPUT − Number of massflows in the first conservation of<br />

CA mass equation.<br />

CA ANTM2 − OUTPUT − Number of massflows in the second.<br />

CA DYCOM − OUTPUT − Type of conservation equations (static or dynamic<br />

CA mass and internal energy on side 1 and 2 respectively;<br />

CA and dynamic solid internal energy).<br />

CA MEDIE − IN/OUT − Media (fluid) of the connected nodes.<br />

CA The values mean :<br />

CA 2 : Coal.<br />

CA 8 : Water (liquid).<br />

CA 27 : Oxygen rich gas.<br />

CA 25 : Raw gas.<br />

CA 300 : Heat.<br />

CA ANTME − OUTPUT − Number of fluids with variable composition.<br />

CA VARME − OUTPUT − Fluid numbers (with variable composition).<br />

CA ANTEL − OUTPUT − Number of compounds in these variable fluids.<br />

CA VAREL − OUTPUT − Compound numbers in variable fluids.<br />

CA RES − OUTPUT − Residuals for the component.<br />

C<br />

C Subroutines : COMINF<br />

C<br />

CP Pr<strong>og</strong>rammer : Brian Elmegaard, MEK, DTU, 2000<br />

C***********************************************************************<br />

C<br />

C Include the common "environment"<br />

C<br />

INCLUDE ’ENVIRO.INI’<br />

INCLUDE ’THERPROP.DEC’<br />

INCLUDE ’GASI.DEC’<br />

C<br />

C Parameter variables<br />

C<br />

INTEGER ANTLK, ANTEX, ANTKN, MEDIE(5), ANTPK,<br />

: ANTM1, ANTME, VARME(3), ANTEL(3),<br />

: VAREL(ANTST,3),MMVAR(MAXMM)<br />

DOUBLE PRECISION X_J(MAXME,ANTST), PAR(2), RES(50),<br />

: MDOT(4),P(4),Q(1),H(4),ZA(10)<br />

CHARACTER*80 KOMTY<br />

CHARACTER*80 ZANAM(10),PARNAM(1)<br />

C<br />

C Local variables<br />

C<br />

LOGICAL CON<br />

INTEGER I,J,RES_NR,ANTGIBBS<br />

DOUBLE PRECISION DELP, PGAS, TGAS, T_sat, Ratio,<br />

: V,S,X,U,H1,Psat_meoh,Psat_water,NIN(ANTST+1),NOUT(ANTST+1),<br />

: M_BL(6),G(7),R,G_met,b_2_1,b_1_2,alpha,R_u<br />

$ ,T_K,tau_2_1,tau_1_2,gamma_2,gamma_1,y_ME,y_ST,x_ME,x_ST,P_ME<br />

$ ,P_ST,T,P_SAT_ME,P_SAT_ST,x_ME_2,x_ME_3,x_ST_3,P_ME_IN,NOUTME<br />

$ ,NOUTST,P_ST_IN,X0,HD,P_ST_2,T2<br />

CHARACTER*100 KMEDDS(6)<br />

CHARACTER*100 K_PAR(4)<br />

CHARACTER*500 K_LIG(29), K_BET<br />

CHARACTER*1000 KOMDSC,K_INP<br />

EXTERNAL COMINF,GIBBS,STATES<br />

INTRINSIC DABS,DLOG,NINT,EXP<br />

INCLUDE ’THERPROP.INI’<br />

INCLUDE ’GASI.INI’<br />

CON=.false.<br />

C=======================================================================<br />

GOTO (100,200,1,400,400,200,1) FKOMP<br />

1 RETURN<br />

24/67<br />

19−03−2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!