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 />
C***********************************************************************<br />
SUBROUTINE ELECTROLYSER(KOMTY,ANTLK,ANTEX,ANTKN,ANTPK,ANTM1,MEDIE<br />
$ ,ANTME,VARME,antel,varel,MDOT,P,H,Q,E,PAR,RES,X_J,KOMDSC<br />
$ ,K_PAR,K_lig,K_bet,KMEDDS,K_inp,ZA,ZANAM)<br />
C***********************************************************************<br />
C<br />
C ELYSE is a component that converts water to H2 and O2 by<br />
C elektrolysis. The component uses water (ideal gas) and not STEAM<br />
C (real fluid). The efficiency and the temperature are parameters to<br />
C the component.<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 Q − INPUT − Exchanged heat.<br />
CA E − INPUT − Power.<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 1 : Air.<br />
CA 27 : Oxygen rich gas.<br />
CA 28 : Nitr<strong>og</strong>en rich gas.<br />
CA 200 : Power.<br />
CA 300 : Heat.<br />
CA ANTME − OUTPUT − Number of fluids with variable composition.<br />
CA RES − OUTPUT − Residuals for the component.<br />
C<br />
CL S Entropy.<br />
CL V Specific volume.<br />
CL T2 Temperature in node 2.<br />
CL T3 Temperature in node 3.<br />
CL X Quality.<br />
CL U Internal energy.<br />
CL DELP Pressure drop through the plant.<br />
CL PRO Oxygen mole ratio in oxygen rich gas.<br />
CL MNOM Nominal mass flow through the plant.<br />
CL ENOM Nominal power consumption of the plant.<br />
CL M1 Mass flow into the separation plant.<br />
CL M2 Mass flow found using PRO.<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 />
C Subroutines : COMINF<br />
C STATES<br />
C SPLIT<br />
C<br />
CP Pr<strong>og</strong>rammer : Bent Lorentzen 1994 (Niels Emsholm 1991)<br />
CP Lab. for Energetics, DTH, Denmark.<br />
C***********************************************************************<br />
C<br />
C Including the common "environment"<br />
C<br />
INCLUDE ’ENVIRO.INI’<br />
INCLUDE ’THERPROP.DEC’<br />
1/67<br />
19−03−2007