Intro Che Thermodynamics Computer Program Download

2
Text Home Computer Programs General Supplements Instructor Supplements Introductory Chemical Engineering Thermodynamics J.R. Elliott C. T. Lira PrenticeHall International Series in the Physical and Chemical Engineering Sciences ISBN (0130113867) Program Download Instructions This software for the first edition has been superceded by the software for the second edition available at http://chethermo.net/software . This page is still provided for the users of the first edition of "Introductory Chemical Engineering Thermodynamics" by J.R. Elliott, Jr., and C.T. Lira described at http://www.egr.msu.edu/~lira/thermtxt1.htm . (10/10)Special Note about Excel variables: We have reports that the use of variables in the spreadsheets is causing some unexpected behavior in Excel 2007 and 2010, and also on the MAC platform. For example, the use of 'T' was fine in Excel 2003, but is interpreted logically on the MAC. Please share our appreciation with Professor William McCaffrey, University of Alberta, CA, who shared his patched version with us. PREOS for MAC.xls (Excel 2008) (Rightclick to download). (3/09)MatLab files are available for the PengRobinson equation of state (pure fluids) and for Raoult's Law. Documentation is not yet incorporated into the pdf file linked below. The programs have sufficient internal documentation to facilitate use. Click the link in the appropriate header below to move to the folder. The programs are: Files in PengRobinson folder : (1) Preos.m PengRobinson script. Solves cubic using MatLab rootfinding routine, but otherwise as described in section 6.6. Also prints fugacity to enable root selection. Uses vector processing. (3/08) (2) PreosProps1.1.zip PengRobinson ZUHS calculations (ver 1.1) using departure functions. Builds on routines of Preos.m by calculating departure functions. Uses solver fzero to iteratively find the P or T to match a state property if desired. Use vector processing and function calls and an anonymous function call. Include a GUI interface. Consists of PreosProps.m, PreosPropsMenu.fig, PreosPropsMenu.m. The later two files are used for the GUI. Unzip and run using '>run PreosPropsMenu' in the Matlab command window. (new 3/09) (3) PreosProps1.0.m PengRobinson ZUHS calculations (ver 1.0) using a reference state. Requires function calls by code. See code for documentation. (3/08) Files in Raoult'sLaw folder : (3) RaoultBP.m simple function to calculate bubble pressure using Antoine's equation with Raoult's Law. Illustrates vector processing. (4) RaoultBT.m simple function to calculate bubble temperature using Antoine's equation with

description

thermo

Transcript of Intro Che Thermodynamics Computer Program Download

  • 2015/5/2 ComputerProgramDownload

    http://www.egr.msu.edu/~lira/readcomp.htm 1/2

    TextHome

    ComputerPrograms

    GeneralSupplements

    InstructorSupplements

    IntroductoryChemicalEngineeringThermodynamicsJ.R.ElliottC.T.Lira

    PrenticeHallInternationalSeriesinthePhysicalandChemicalEngineeringSciencesISBN(0130113867)

    ProgramDownloadInstructions

    Thissoftwareforthefirsteditionhasbeensupercededbythesoftwareforthesecondeditionavailableathttp://chethermo.net/software.

    Thispageisstillprovidedfortheusersofthefirsteditionof"IntroductoryChemicalEngineeringThermodynamics"byJ.R.Elliott,Jr.,andC.T.Liradescribedathttp://www.egr.msu.edu/~lira/thermtxt1.htm.

    (10/10)SpecialNoteaboutExcelvariables:

    WehavereportsthattheuseofvariablesinthespreadsheetsiscausingsomeunexpectedbehaviorinExcel2007and2010,andalsoontheMACplatform.Forexample,theuseof'T'wasfineinExcel2003,butisinterpretedlogicallyontheMAC.PleaseshareourappreciationwithProfessorWilliamMcCaffrey,UniversityofAlberta,CA,whosharedhispatchedversionwithus.

    PREOSforMAC.xls(Excel2008)(Rightclicktodownload).

    (3/09)MatLabfilesareavailableforthePengRobinsonequationofstate(purefluids)andforRaoult'sLaw.Documentationisnotyetincorporatedintothepdffilelinkedbelow.Theprogramshavesufficientinternaldocumentationtofacilitateuse.Clickthelinkintheappropriateheaderbelowtomovetothefolder.Theprogramsare:

    FilesinPengRobinsonfolder:(1)Preos.mPengRobinsonscript.SolvescubicusingMatLabrootfindingroutine,butotherwiseasdescribedinsection6.6.Alsoprintsfugacitytoenablerootselection.Usesvectorprocessing.(3/08)(2)PreosProps1.1.zipPengRobinsonZUHScalculations(ver1.1)usingdeparturefunctions.BuildsonroutinesofPreos.mbycalculatingdeparturefunctions.UsessolverfzerotoiterativelyfindthePorTtomatchastatepropertyifdesired.Usevectorprocessingandfunctioncallsandananonymousfunctioncall.IncludeaGUIinterface.ConsistsofPreosProps.m,PreosPropsMenu.fig,PreosPropsMenu.m.ThelatertwofilesareusedfortheGUI.Unzipandrunusing'>runPreosPropsMenu'intheMatlabcommandwindow.(new3/09)(3)PreosProps1.0.mPengRobinsonZUHScalculations(ver1.0)usingareferencestate.Requiresfunctioncallsbycode.Seecodefordocumentation.(3/08)

    FilesinRaoult'sLawfolder:(3)RaoultBP.msimplefunctiontocalculatebubblepressureusingAntoine'sequationwithRaoult'sLaw.Illustratesvectorprocessing.(4)RaoultBT.msimplefunctiontocalculatebubbletemperatureusingAntoine'sequationwith

  • 2015/5/2 ComputerProgramDownload

    http://www.egr.msu.edu/~lira/readcomp.htm 2/2

    Raoult'sLaw.Illustratesvectorprocessingandfzerosolver.(5)RaoultTxy.msimplefunctionforbinaryTxydiagramcalculation.BuildsonmethodsillustratedinRaoultBT.m.Usesvectorprocessing,fzerosolverinaloop,plotting,graphlabelingusingvariables.

    (Lastupdate8/05)Theprogramsarecontinuallyevolving,andsoisthedocumentation.Thefileapxcompu.pdfisthemostrecentversionoftheappendixdescribingtheprogramsbutdoesnotincludetheMatlabfileslinkedabove.IfthePDFviewerpluginisnotinstalledonyourwebbrowser,thefreeAdobeAcrobatreadertoview/printthisPDFfileisavailablefromhttp://www.adobe.com/products/acrobat/readermain.htmlThefileapxcompu.pdfisincludedinthecompressedarchive"progpack.exe"describedbelow.

    1.Printtheseinstructionsforyourrecords.

    2.Todownloadanyoralloftheprogramsuseoneofthefollowingoptions:

    IfyouwishtodownloadALLtheprogramsanddocumentation,theyareavailableinthesinglefile"progpack.exe".Whenthisprogramisexecuted,itwillcreateanentiredirectorysystemwithallprogramsanddocumentationthataccompaniesthetext.Transferprogpack.exetoyourmachine,andbesuretoplaceitinanemptysubdirectory(notyourdesktop!).Donotplaceitintherootdirectory,becauseitplacessomefilesinthedirectoryinwhichitresides.Execute"progpack.exe".Thecorrectsubdirectoriesshouldbecreated.Thefileprogpack.execanbesafelydeletedafterithasbeenexecuted.Clicktodownloadprogpack.exe.

    OR

    Todownloadthemostcurrentversionofanindividualprogram,movetotheappropriatesubdirectorybybrowsingthroughthefoldersatthislink.Filedatesshowwhenaparticularfilehasbeenupdated.(folderdatesarenotaccurate).Thefilesthathave"pack"intheirnamesareselfextractingarchivesthathavetheentiresubdirectoryincluded.OnceyouhavedownloadedfilestoyourPCsystem,puttheminthedesiredsubdirectoryandexecutethemtoupdatethesubdirectory.Youmaydeletethe"pack"fileafterthedirectoryhasbeenproperlyupdated.SeethefileALSOREADME.TXTforthesedetails.

    3.FollowingDownload,viewthe'README'filesandalsoreviewtheGeneralSupplementsforsupplementalinformation.

    IfyouareaMACuser,allfeaturesoftheExcelspreadsheetsworkonyourmachine,howeverwedonotfurnishacompressedarchivesoyouwillneedtodownloadtheindividualspreadsheets.WedonothavecurrentlyacompiledversionoftheFORTRANprogramsfortheMAC.

    Thankyouforyourinterest.

    [email protected]

    updated2/4/12,Copyright200011,CarlT.Lira,J.RichardElliott.Allrightsreserved.