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
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 />
K_BET =<br />
$ ’$\\dot{m}_1 \\gt 0 \\\\ \\dot{m}_2 \\gt 0 \\\\ \\dot{m}_3 \\<br />
$gt 0 \\\\ \\dot{m}_4 \\lt 0 $’<br />
KMEDDS(1) =’Inlet gas’<br />
KMEDDS(2) =’Oxygen or another gas’<br />
KMEDDS(3) =’Steam’<br />
KMEDDS(4) =’Reformed gas’<br />
KMEDDS(5) =’Heat’<br />
k_inp=’struc NG_reformer STEAM_REFORMER 412 403 423 431 313 1\\\\<br />
$media 412 NATURAL_GAS 403 O2 431 NG_reformat\\\\<br />
$fluid O2 O2 1\\\\<br />
$addco q NG_reformer 313 0\\\\<br />
$addco t NG_reformer 403 850 t NG_reformer 423 850 t NG_reformer<br />
$ 412 667\\\\<br />
$addco t NG_reformer 431 950 M NG_reformer 412 0.34 p 403 10\\\\<br />
$START M NG_reformer 403 0.3 M NG_reformer 423 0.3\\\\<br />
$START Y_J NG_reformat H2 0.55 Y_J NG_reformat CO 0.21 Y_J<br />
$ NG_reformat H2O−G 0.18’<br />
C<br />
GOTO 9999<br />
C<br />
9999 CONTINUE<br />
RETURN<br />
END<br />
C=======================================================================<br />
C***********************************************************************<br />
SUBROUTINE GASCOOL2(KOMTY,ANTLK,ANTKN,ANTPK,ANTM1,ANTM2,MEDIE,<br />
$ ANTME,VARME,ANTEL,VAREL,MDOT,P,H,Q,PAR,RES,X_J,ZA,ZANAM,<br />
$ ANTEX,KOMDSC,K_PAR,K_lig,K_bet,KMEDDS,K_inp)<br />
C***********************************************************************<br />
C<br />
C GASCOOL1 is a model of a gas cooler with steam condensation.<br />
C The model does not include equations concerning the heat exchange.<br />
C 1−2 is the heat emitting fluid.<br />
C<br />
C***********************************************************************<br />
C<br />
CA FKOMP − INPUT − Flag with the value:<br />
CA 1: Initialize the component.<br />
CA 2: Initialize with actual system.<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 H − INPUT − Enthalpy of massflows.<br />
CA PAR − INPUT − Parameters of the component.<br />
CA KOMTY − OUTPUT − Component name.<br />
CA ANTPK − OUTPUT − Number of parameters.<br />
CA ANTLK − OUTPUT − Number of equations.<br />
CA ANTEX − OUTPUT − Number of algebraic independent equations.<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 99 : Water.<br />
CA ANTME − OUTPUT − Number of fluids with variable composition.<br />
CA RES − OUTPUT − Residuals for the component.<br />
C<br />
CL T1,T2 Temperature in first and second node.<br />
CL T3,T4 Temperature in third and fourth node.<br />
CL S Entropy.<br />
CL V Specific volume.<br />
CL X Quality.<br />
CL U Internal energy.<br />
CL DPA,DPB Pressure loss in heat exchanger.<br />
CL K_PAR Parameter description.<br />
CL K_LIG Equation description.<br />
CL K_BET Condition description.<br />
CL K_MED Media description.<br />
C<br />
19/67<br />
19−03−2007