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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

c:/dna/source/<br />

C by DNA.<br />

C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

400 CONTINUE<br />

Virk = PAR(1)<br />

RES(1) = WK/E + virk<br />

IF (FKOMP.EQ.5) GOTO 500<br />

GOTO 9999<br />

C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

C Solution check<br />

C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

500 CONTINUE<br />

IF (E.LT.−1D−10) GOTO 450<br />

IF (WK.GT.1D−10) GOTO 450<br />

GOTO 9999<br />

450 FBETI = .FALSE.<br />

GOTO 9999<br />

C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

C Write component information<br />

C−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

600 CONTINUE<br />

KOMDSC = ’Motor with efficiency.’<br />

K_PAR(1) = ’Motor efficiency, $\\eta_{m}$ [−]’<br />

K_LIG(1) = ’Motor efficiency:<br />

$$\\eta_m=\\frac{\\dot{W}}{\\dot{E}}$’<br />

K_BET = ’$\\dot{E}\\gt 0 \\\\ \\dot{W} \\lt 0 \\\\<br />

$\\dot{Q} \\lt 0 $’<br />

KMEDDS(1) = ’Power in’<br />

KMEDDS(2) = ’Heat loss’<br />

KMEDDS(3) = ’Sh<strong>af</strong>t power’<br />

k_inp=’struc El−motor EL−MOTOR 203 319 101 0.95\\\\<br />

$addco e El−motor 203 100\\\\<br />

$start q El−motor 319 −1’<br />

GOTO 9999<br />

C<br />

9999 CONTINUE<br />

RETURN<br />

END<br />

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

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

SUBROUTINE SPLITTER2(KOMTY,ANTLK,ANTKN,ANTM1,MEDIE,ANTME,<br />

$ VARME,MDOT,P,H,RES,MMVAR,komdsc,kmedds,k_lig,k_bet,<br />

$ k_inp)<br />

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

C<br />

C SPLITTER2 is splitting one mass flow in to a variable number of<br />

C flows. The outlets have the same enthalpy. Only the pressure in node<br />

C 2 is set. This is done so the seperated flows can be mixed again<br />

C (gathered in one node) without having pressure seperaters (like compressors).<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 KOMTY − OUTPUT − Component name.<br />

CA ANTLK − OUTPUT − Number of 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 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 K_PAR Parameter description.<br />

CL K_LIG Equation description.<br />

CL K_BET Condition description.<br />

43/67<br />

19−03−2007

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

Saved successfully!

Ooh no, something went wrong!