Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Vle/lle Data Regression From Data File With Prode

vlelle data regression excel prode file

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic
Share this topic:
| More

#1 chemdoc

chemdoc

    Junior Member

  • Members
  • 27 posts

Posted 20 April 2015 - 04:36 PM

does Prode allow to regress VLE/LLE data stored in files instead of entering data manually into the application ?

 



#2 PaoloPemi

PaoloPemi

    Gold Member

  • Members
  • 549 posts

Posted 21 April 2015 - 02:56 AM

Prode Properties includes BRegr method,
you may create a code to read the file and then call this method to calculate BIPs and store results in Prode database
here there is a simple example from Prode documentation which reads data from a table in Excel but you may convert to read from a file...

nrpt = 10  ' number of points

for i=1 to nrpt
  X(i) = Cells(i,1).Value
  Y(i) = Cells(i,2).Value
  T(i) = Cells(i,3).Value
  P(i) = Cells(i,4).Value
  TP(i) = 1 ' VLE =  1 LLE = 2 SLE = 3    
next i

nrpar = 2 ' number of parameters to regress
validate = 0 ' data validation not required

' XC() array of calculated X values
' YC() array of calculated Y values
res = BRegr(stream,nrpar,validate,nrpt,TP,X,Y,T,P,XC,YC)
 






Similar Topics