installation of visual basic program
DESCRIPTION
Calculation of Thermodynamic Properties of Real Fluids Using Peng-Robinson EoS Program Provided by Professor S.I. Sandler. Installation of Visual Basic Program. Access the CD drive and click "OPEN". This should open a listing of the folders on the CD, named for the assets they contain. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/1.jpg)
Calculation of Thermodynamic Properties of Real FluidsUsing Peng-Robinson EoS Program Provided by Professor S.I. Sandler
![Page 2: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/2.jpg)
Installation of Visual Basic Program
Access the CD drive and click "OPEN". This should open a listing of the folders on the CD, named for
the assets they contain. Select the folder "VISUAL BASIC PROGRAMS"
![Page 3: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/3.jpg)
Select the folder "Property package"
![Page 4: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/4.jpg)
Select the icon "setup.exe" and follow the installation instruction. This program will allow you to access properties of pure components
![Page 5: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/5.jpg)
Go back to the folder "Peng Robinson Package"
![Page 6: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/6.jpg)
Select the icon "setup.exe" and follow the installation instruction.This program will allow you to calculate thermodynamic properties and VLE of
pure fluid using the Peng-Robinson equation of states
![Page 7: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/7.jpg)
You can install other programs in a similar manner Peng-Robinson for mixtures Modified UNIFAC Chemical Equilibirum
A folder "sandler" will appear on the "startup" menu
Other Programs
![Page 8: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/8.jpg)
Ex. 6.65
Pipelines are used to transport natural gas over thousands of miles with compressors (pumping stations) at regular intervals along the pipeline to compensate for the pressure drop due to flow.
Because of the long distance and good heat transfer, the gas remains at ambient temperature of 20oC
At the pumping station the gas is compressed with a single stage compressor to 4 MPa and then isobarically cooled back to 20 oC
Because of safety and equipment constraints, the gas temperature during compression should not exceed 120 oC
Assuming that the natural gas is methane that is described by the Peng-Robinson equation of state, how low pressure is allowed before the as should be recompressed
![Page 9: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/9.jpg)
Find entropy of methane at 4 MPa and 120oC Assume the compression is isenthropic Find the pressure of methane at 20 oC that have the same entropy as
methane at at 4 MPa and 120oC
Solution
Methane 4 MPa, 120 oC
Cooler
Methane 4 MPa, 20 oC
Methane ?? MPa, 20 oC
Compressoradiabatic reversible
![Page 10: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/10.jpg)
Activate the "startup" menu and run the "sandler"--"Peng Robinson equation of state"
![Page 11: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/11.jpg)
The following window will popup
![Page 12: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/12.jpg)
Click on "Find Component" Type "methane" Accept
![Page 13: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/13.jpg)
The critical properties of methane will appear
![Page 14: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/14.jpg)
Calculate properties of methane at 120 oC and 4 MPa using filling in the conditions and pressing the button "Calculate EOS"
Entropy of methane at 120 oC and 4 MPa is found to be -21 J/(kmol K)
![Page 15: Installation of Visual Basic Program](https://reader035.vdocuments.mx/reader035/viewer/2022062222/5681574d550346895dc4ef89/html5/thumbnails/15.jpg)
Calculate the entropy of methane at 20 oC and different pressure The entropy of methane at 20 oC was found to be -21 J/(kmol K) at ~11
MPa