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 />
IF (FKOMP.EQ.5) GOTO 500<br />
GOTO 9999<br />
C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />
C Solution check<br />
C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />
500 CONTINUE<br />
IF (MDOT(1).LT.−1D−10) GOTO 550<br />
IF (MDOT(2).GT.1D−10) GOTO 550<br />
IF (MDOT(3).LT.−1D−10) GOTO 550<br />
IF (MDOT(4).GT.1D−10) GOTO 550<br />
IF (MDOT(5).LT.−1D−10) GOTO 550<br />
IF (MDOT(6).GT.1D−10) GOTO 550<br />
IF (MDOT(7).LT.−1D−10) GOTO 550<br />
IF (MDOT(8).GT.1D−10) GOTO 550<br />
GOTO 9999<br />
550 FBETI = .FALSE.<br />
GOTO 9999<br />
C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />
C Write component information<br />
C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />
600 CONTINUE<br />
KOMDSC = ’Dis<strong>til</strong>lation stage for a dis<strong>til</strong>lation column. A column<br />
$ can consist of several stages in series. The dis<strong>til</strong>lation<br />
$ stage calculates VLE (vapor liquid equilibrium) between water<br />
$ and methanol. The component can be used for dis<strong>til</strong>lation of<br />
$ other media by changing 3 constants in the source code. The<br />
$ method is NRTL (Non Random Two Liquid). Can only be used with<br />
$ real fluids. The pressure is assigned in node 10 − not in the<br />
$ seperate nodes’<br />
K_BET =’$\\dot{m}_1 \\gt 0 \\\\ \\dot{m}_2 \\lt 0 \\\\<br />
$\\dot{m}_3 \\gt 0 \\\\ \\dot{m}_4 \\lt 0 \\\\ \\dot{m}_5 \\gt 0 \\<br />
$\\ \\dot{m}_6 \\lt 0 \\\\ \\dot{m}_7 \\gt 0 \\\\ \\dot{m}_8 \\lt 0<br />
$$’<br />
KMEDDS(1) = ’Liquid water inlet’<br />
KMEDDS(2) = ’Liquid water outlet’<br />
KMEDDS(3) = ’Water vapor inlet’<br />
KMEDDS(4) = ’Water vapor outlet’<br />
KMEDDS(5) = ’Liquid methanol inlet’<br />
KMEDDS(6) = ’Liquid methanol outlet’<br />
KMEDDS(7) = ’Methanol vapor inlet’<br />
KMEDDS(8) = ’Methanol vapor outlet’<br />
KMEDDS(9) = ’Heat’<br />
KMEDDS(10) = ’Pressure in system’<br />
KMEDDS(11) = ’Temperature of system’<br />
KMEDDS(12) = ’Molar fraction of methanol in the liquid phase’<br />
KMEDDS(13) = ’Molar fraction of methanol in the gas phase’<br />
K_INP= ’struc Dis_stage_1 DISTILLATION_STAGE 701 707 705 703 702<br />
$708 /\\\\ 706 704 343 906 907 908 909 0 0\\\\<br />
$addco q Dis_stage_1 343 0 ZC 906 1\\\\<br />
$addco tsat 701 80 x Dis_stage_1 701 0 m Dis_stage_1 701 1\\\\<br />
$addco tsat 705 70 x Dis_stage_1 705 1 m Dis_stage_1 705 1\\\\<br />
$addco tsat 702 80 x Dis_stage_1 702 0 m Dis_stage_1 702 1\\\\<br />
$addco tsat 706 70 x Dis_stage_1 706 1 m Dis_stage_1 706 1\\\\<br />
$start m Dis_stage_1 707 −1 m Dis_stage_1 708 −1\\\\<br />
$start x Dis_stage_1 708 0 x Dis_stage_1 703 1 x Dis_stage_1 704 1<br />
$\\\\START ZC 907 83’<br />
C<br />
GOTO 9999<br />
C<br />
9999 CONTINUE<br />
RETURN<br />
END<br />
C=======================================================================<br />
C***********************************************************************<br />
SUBROUTINE EL_MOTOR(KOMTY,ANTLK,ANTKN,ANTPK,<br />
& MEDIE,PAR,Q,E,WK,<br />
& RES,komdsc,k_par,kmedds,k_lig,k_bet,k_inp)<br />
C***********************************************************************<br />
C<br />
C EL−MOTOR is a component that converts electrical power to mechanical<br />
C power and a heat loss. The efficiency is a parameter to 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 />
41/67<br />
19−03−2007