Hi matgt.
I know that inevitably there will almost always be some condensation but how much is too much and how can we calculate the amount of condensation? … How can we find the optimum level of superheating so that we extract as much work as possible without having too much condensation inside the motor?
It's not as hard as it sounds. Doing the thermodynamic calculations is very easy. The problem you run into is how to determine fluid properties at various states. By that I mean, how do you find the enthalpy or the entropy of the fluid at some pressure and temperature? Or if you have entropy and pressure, how do you determine vapor fraction or temperature or enthalpy? Or density. Or any fluid property?
With the right database, you can create a model of the process very easily using Excel or other program. Then you simply change a bunch of input variables and you can test out the system under various conditions in order to optimize the process. The trick is to understand how to use a commercially available fluid properties database.
Remember that the state of a fluid only requires 2 known's such as pressure and vapor fraction to define the state. If you know the fluid state you can use that to determine all the other unknowns such as temperature, enthalpy, internal energy, entropy, density, etc. You might also use entropy and vapor fraction, or entropy and temperature as your 2 known's. The 2 known's don't have to be pressure and temperature, they can be essentially any of the other properties as long as the fluid properties database is set up to call in the state given those variables.
A few years ago I helped a group of mechanical engineering students at a local university. My company had funded a project, and I was to teach them something very similar to what you're doing. The company I work for has a proprietary database that links to Excel, and that database allows one to bring virtually any fluid property into the spreadsheet so it can be used for calculations. Unfortunately the students weren't allowed to use ours, but the students did find one that seemed to be roughly equivalent on the market for a reasonable cost. The students evaluated one from NIST along with some others, but determined this particular database from NIST was the best for their purposes. It can be purchased here:
http://www.nist.gov/data/nist23.htm
There are other databases out there. Looking around, I found another one here:
http://www.megawatsoft.com/R134aexcel.asp?cat=8
Do a Google search and you'll surely find a bunch more. You may even find your university already has something like this, just ask your professors. Whichever one you use, do some research on it before you buy it. You need to understand a bit about how to use it and verify it will do what you're expecting and what you need.
For the NIST database, there's some HELP information here:
http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm
Just to give you an example of how they work, in some cell you can insert something like this:
=Enthalpy($B$20,"TP",B48,A51,B51)
This call returns enthalpy given temperature and pressure.
=Enthalpy($B$20,"TD",$E$17,A42,C42)
This one returns enthalpy given temperature and density.
See an example spreadsheet here:
http://www.boulder.nist.gov/div838/theory/refprop/REFPROP.XLS
So to answer your question, I'd suggest modeling the system in Excel using a fluid properties database add-in. Once you have the model, you should be able to change a few variables such as pressure at the expander inlet or temperature, and the spread sheet simply recalculates the process.