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 />
$ ’$\\dot{m}_1 \\gt 0 \\\\ \\dot{m}_2 \\lt 0 \\\\ \\dot{m}_3<br />
$\\gt 0 \\\\ \\dot{m}_4 \\lt 0 \\\\ \\dot{Q} \\lt 0$’<br />
KMEDDS(1) = ’Fluid 1 inlet’<br />
KMEDDS(2) = ’Fluid 1 outlet’<br />
KMEDDS(3) = ’Fluid 2 inlet’<br />
KMEDDS(4) = ’Fluid 2 outlet’<br />
KMEDDS(5) = ’Heat loss’<br />
K_INP= ’struc Water−meoh−t MIXING_TANK 623 624 633 634 330 0 0<br />
$\\\\media 623 STEAM−HF 633 METHANOL\\\\<br />
$addco q Water−meoh−t 330 0\\\\<br />
$addco t Water−meoh−t 623 90 t Water−meoh−t 633 40\\\\<br />
$addco p 623 1 p 633 1\\\\<br />
$addco m Water−meoh−t 623 1 m Water−meoh−t 633 1\\\\<br />
$start t Water−meoh−t 624 60’<br />
C<br />
GOTO 9999<br />
C<br />
9999 CONTINUE<br />
RETURN<br />
END<br />
C=======================================================================<br />
C***********************************************************************<br />
SUBROUTINE DISTILLATION_STAGE(KOMTY,ANTLK,ANTEX,ANTKN,ANTPK,ANTM1,<br />
& ANTM2,MEDIE,ANTME,VARME,<br />
& MDOT,P,H,Q,ZA,ZC,PAR,RES,PARNAM,ZANAM,<br />
$ KOMDSC,KMEDDS,K_PAR,K_LIG,K_STAT,K_BET,k_inp)<br />
C***********************************************************************<br />
C<br />
C HEATEX_1 is a model of a heat exchanger.<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 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 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 />
C STATES<br />
C<br />
CP Pr<strong>og</strong>rammer : Bent Lorentzen 1994<br />
CP Lab. for Energetics, DTU, Denmark.<br />
C***********************************************************************<br />
C<br />
38/67<br />
19−03−2007