ACTIVITY++

VMGThermo

VMGThermo is a set of software components used for the calculation of thermo-physical properties as well as flash calculations. For the user this translates as a carefully crafted set of application programming interfaces which can be used to power any application which can benefit from high quality physical properties. ACTIVITY++ belongs to the VMGThermo family, and comes with interfaces for EXCEL, Visual Basic, Delphi, Visual C++, C, C++ and FORTRAN. If you know how to use a spreadsheet you already know how to use VMGThermo.


'normalize composition
Dim sum As Double
sum = 0#
For i = 0 To nc - 1
zz(i) = Sheet4.Cells(i + 9, 3).Value sum = sum + zz(i)
Next i

For i = 0 To NC - 1
zz(i) = zz(i) / sum
Next i

'Do the flash at the first temperature and get the composition

Dim phFracs As Variant

retcode = DoPTFlash(Pressure, Temperature, zz, feedId, phases, phFracs)

Sheet4.Range("d8").Value = phFracs(0)

Sheet4.Range("e8").Value = phFracs(1)