Download Prode Properties
Transcript
Methods for stream’ s data access Prode Properties includes a set of functions for accessing stream parameters and calculating transport properties. Note that when calculating transport properties the program performs a VLE flash and returns 0 (zero value) when no associated liquid or gas phase is found. integer res = isSDef(integer stream) given a stream returns TRUE (integer = 1) if stream has been defined, otherwise returns FALSE (0) double t = getT(integer stream) given a stream returns stream’s operating temperature double p = getP(integer stream) given a stream returns stream’s operating pressure integer nr = getPNr() returns the maximum number of phases that procedure can detect integer type = StrPt(integer stream, int phase) given a stream and position in range 1- getPNr() returns the phase type (vapor,liquid,solid) char *description = StrPts(integer stream, int phase) given a stream and position in range 1- getPNr() returns a ANSI C string with the description of type for detected phase VARIANT description = MStrPts(integer stream, int phase) given a stream and position in range 1- getPNr() returns a string with the description of type of detected phase, this is the Microsoft specific method double lf = StrLf(integer stream) given a stream returns the total liquid fraction (molar basis) in stream double pf = StrPf(integer stream, integer phase) given a stream and phase position in range 1- getPNr() returns the phase fraction double w = getW(integer stream, integer phase, integer pos.) given a stream, the phase position and component’s position (in component’s list) returns the component molar fraction in that phase double Zi= getZ(integer stream, integer pos.) given a stream and component’s position (in component’s list) returns the comp’s Z (weight percentage, molar basis) integer res = putZ(integer stream, integer pos., double Zi) given a stream, comp’s position and Z , sets the comp’s pos. in Z vector (composition, molar basis) for that stream integer nr = getCNr(integer stream) given a stream returns the number of components defined in that stream integer nr = getMCNr() returns the maximum number of components in a stream double zv = StrZv(integer stream) given a stream returns the relevant compressibility factor (gas phase) double mw = StrMw(integer stream) given a stream returns the averaged molecular weight (all phases) double v = StrV(integer stream) given a stream returns the specific volume as sum of specific volumes of all phases double mw = StrGMw(integer stream) given a stream returns the averaged molecular weight (gas phase) double mw = StrLMw(integer stream) given a stream returns the averaged molecular weight (liquid phase) 69