?? vb_name_nist.txt
字號:
hfld = "fluids\dodecane.fld"
'Mixture:
nc = 14
hfld = "fluids\3442PNTN.FLD|fluids\CDECENE.FLD|fluids\2MNONANE.FLD|fluids\2MNAPHTH.FLD|fluids\2MDECALN.FLD|fluids\3MDECANE.FLD|fluids\1DODECEN.FLD|fluids\CC12.FLD|fluids\4M4C11.FLD|fluids\HCC6.FLD|fluids\C12.FLD|fluids\1TRIDECN.FLD|fluids\2710MC12.FLD|fluids\C16.fld|"
x(1) = 0.0998
x(2) = 0.0212
x(3) = 0.0233
x(4) = 0.051
x(5) = 0.2234
x(6) = 0.1084
x(7) = 0.0264
x(8) = 0.0427
x(9) = 0.1045
x(10) = 0.1422
x(11) = 0.0193
x(12) = 0.0145
x(13) = 0.1038
x(14) = 0.0195
'See fortran for inputs:
'Call SETMODdll(nc, htype, hmix, hcomp, ierr, herr, 3&, 3&, 255&, 255&)
hfmix = "fluids\hmx.bnc"
hrf = "DEF"
Call SETUPdll(nc, hfld, hfmix, hrf, ierr, herr, 10000&, 255&, 3&, 255&)
'See fortran for inputs:
'Call SETREFdll(hrf, ix, x(1), hRef, sRef, Tref, pref, ierr, herr, 3&, 255&)
t = 400 'K
p = 1000 'kPa
'Get fluid info for component 1
Call INFOdll(1, wmm, ttrp, tnbpt, tc, pc, dc, Zc, acf, dip, Rgas)
'Get mixture critical parameters:
Call CRITPdll(x(1), tc, pc, dc, ierr, herr, 255&)
'Get molecular weight of mixture:
Call WMOLdll(x(1), wm)
'Get limits:
htyp = "EOS"
Call LIMITXdll(htyp, t, d, p, x(1), tmin, tmax, dmax, pmax, ierr, herr, 3&, 255&)
//the meaning of variables was given by Wang Wei-Zhe
//d-density
//t-temperature
//p-pressure
//h-enthalpy
//s-entropy
//cv/cp-specified heat capability
'Get d from t,p if phase is known:
'Fourth input: 1 - liquid, 2 - vapor
'Fourth and fifth inputs must be LONG values! (include the &)
Call TPRHOdll(t, p, x(1), 1&, 0&, d, ierr, herr, 255&)
'Get d from t,p if phase is not known:
Call TPFLSHdll(t, p, x(1), d, Dl, Dv, xliq(1), xvap(1), q, e, h, s, cv, cp, w, ierr, herr, 255&)
'Calculate properties given T and d:
Call PRESSdll(t, d, x(1), p)
Call THERM2dll(t, d, x(1), p, e, h, s, cv, cp, w, z, hjt, a, g, xkappa, beta, dPdD, d2PdD2, dPdT, dDdT, dDdP, spare1, spare2, spare3, spare4)
Call VIRBdll(t, x(1), b)
Call VIRCdll(t, x(1), c)
Call DIELECdll(t, d, x(1), de)
Call FGCTYdll(t, d, x(1), f(1))
Call SURTENdll(t, d, rhov, x(1), xv(1), sigma, ierr, herr, 255&)
Call TRNPRPdll(t, d, x(1), eta, tcx, ierr, herr, 255&)
'Saturation routines:
'Third input for Satt and Satp is: 1 - bubble point, 2 - dew point
Call SATTdll(t, x(1), 1&, p, Dl, Dv, xliq(1), xvap(1), ierr, herr, 255&)
Call SATPdll(p, x(1), 1&, t, Dl, Dv, xliq(1), xvap(1), ierr, herr, 255&)
'Call SATDdll(d, x(1), 1&, kr, t, p, Dl, Dv, xliq(1), xvap(1), ierr, herr, 255&)
'Call SATHdll(h, x(1), 0&, nroot, k1, t, p1, d1, k2, t2, p2, d2, ierr, herr, 255&)
'Call SATSdll(s, x(1), 0&, nroot, k1, t1, p1, d1, k2, t2, p2, d2, k3, t3, p3, d3, ierr, herr, 255&)
'Routines to calculate properties when T and d are not both known:
'Call DEFLSHdll(d, e, x(1), t, p, Dl, Dv, xliq(1), xvap(1), q, h, s, cv, cp, w, ierr, herr, 255&)
'Call DHFLSHdll(d, h, x(1), t, p, Dl, Dv, xliq(1), xvap(1), q, e, s, cv, cp, w, ierr, herr, 255&)
'Call DSFLSHdll(d, s, x(1), t, p, Dl, Dv, xliq(1), xvap(1), q, e, h, cv, cp, w, ierr, herr, 255&)
'Call PDFLSHdll(p, d, x(1), t, Dl, Dv, xliq(1), xvap(1), q, e, h, s, cv, cp, w, ierr, herr, 255&)
'Call PEFLSHdll(p, e, x(1), t, d, Dl, Dv, xliq(1), xvap(1), q, e, h, cv, cp, w, ierr, herr, 255&)
'Call PHFLSHdll(p, h, x(1), t, d, Dl, Dv, xliq(1), xvap(1), q, e, s, cv, cp, w, ierr, herr, 255&)
'Call PQFLSHdll(p, q, x(1), 1&, t, d, Dl, Dv, xliq(1), xvap(1), e, h, s, cv, cp, w, ierr, herr, 255&)
'Call PSFLSHdll(p, s, x(1), t, d, Dl, Dv, xliq(1), xvap(1), q, e, h, cv, cp, w, ierr, herr, 255&)
'Call TDFLSHdll(t, d, x(1), p, Dl, Dv, xliq(1), xvap(1), q, e, h, s, cv, cp, w, ierr, herr, 255&)
'Call TEFLSHdll(t, e, x(1), 1&, p, d, Dl, Dv, xliq(1), xvap(1), q, h, s, cv, cp, w, ierr, herr, 255&)
'Call THFLSHdll(t, h, x(1), 1&, p, d, Dl, Dv, xliq(1), xvap(1), q, e, s, cv, cp, w, ierr, herr, 255&)
'Call TQFLSHdll(t, q, x(1), 1&, p, d, Dl, Dv, xliq(1), xvap(1), e, h, s, cv, cp, w, ierr, herr, 255&)
'Call TSFLSHdll(t, s, x(1), 1&, p, d, Dl, Dv, xliq(1), xvap(1), q, e, h, cv, cp, w, ierr, herr, 255&)
'Melting and sublimation routines:
'Call MELTPdll(p, x(1), t, ierr, herr, 255&)
'Call MELTTdll(t, x(1), p, ierr, herr, 255&)
'Call SUBLTdll(t, x(1), p, ierr, herr, 255&)
'Call SUBLPdll(p, x(1), t, ierr, herr, 255&)
'Convert mole fraction to/from mass fraction:
'Call XMASSdll(x(1), xmm(1), wm)
'Call XMOLEdll(x(1), xmm(1), wm)
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -