How to calculate specific entropy, enthalpy, and volume for range of given pressure and temperature values
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I am a novice level matlab user and was wondering if anyone could steer me in the right direction on a problem I am having. I need to calculate the specific entropy, enthalpy, and specific volume of liquids and vapors at a range of pressure and temperature values. Using the XSteam script:

I am not asking anyone to do this for me or mean to post an entire project/assigment. Just wondering if anyone can steer me in the right direction I am completely lost honestly. I have the temp and pressure data in an excel file that I have uploaded to MATLAB but after that I don't know how to proceed. If anyone can offer any help it'd be greatly appreciated. Thank you
4 commentaires
John D'Errico
le 19 Fév 2022
But is that not exactly what you were told to do? So do it. If you need to use a loop, then use one. TRY IT. I gather you were given a value for each in the spreadsheet. How does it compare to the computed value you get from Xsteam? You were asked to compute a percent difference. Just do it. Can you compute a percent difference? If you don't know how, surely you can look that up.
For example, I just did a search, with the question "how to compute a percent difference". When I did that, MANY pages pop up. I don't know what you don't understand. But it seems like you know what to do, and you just want someone to guide you through this. The fact is though, you need to be your guide. If you will be using MATLAB, you will need to learn how to read the help.
So try it. When you have a problem, THEN ask a question. Show what you did. Tell us what you are doing, and what seems to be wrong. If you get an error message that you don't understand, then show the complete error message, and ask how to fix things. At that point, your question would be one about MATLAB. So far though, this is just your homework assignment, with no effort made.
Réponses (1)
Walter Roberson
le 19 Fév 2022
XSteam is only designed to handle scalar inputs. If you need to loop up several values according to the data file then you will need to loop, either a for loop or using arrayfun()
0 commentaires
Voir également
Catégories
En savoir plus sur Thermodynamics and Heat Transfer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!