6
$\begingroup$

I've been trying to use the function ThermodynamicData, and it is going fine when I try to calculate properties such as Enthalpy or Entropy or even phase as a function of Temperature and Pressure.

Online it says i can calculate a huge number of other properties as a function of "Density", "Enthalpy", "Entropy", "InternalEnergy", "Pressure", "Quality" and "Temperature". https://reference.wolfram.com/language/ref/ThermodynamicData.html

But when I try to calculate, for example, the saturation temperature of a steam (the property "Quality" between 0 and 1):

ThermodynamicData["Water", "Temperature", {"Pressure" -> 
   Quantity[10000000, "Pascals"], "Quality" -> 0}]

it gives me the following error

ThermodynamicData::para: Parameter list includes parameters other than Pressure and Temperature.

as if it I could only calculate the properties as a function of Temperature and Pressure and nothing else.

Other inputs I tried, that had the same result were for example:

ThermodynamicData["Water", "Temperature", {"Pressure" -> 
   Quantity[10000000, "Pascals"], 
  "Enthalpy" -> Quantity[3.40098*10^6, ("Joules")/("Kilograms")]}]

Can anybody help me understand why?

$\endgroup$
4
  • 1
    $\begingroup$ Can you post the input which generated the message? $\endgroup$
    – Jason B.
    Dec 15, 2020 at 16:37
  • $\begingroup$ sorry. i was gonna print screen the entries, but then i forgot. already put them $\endgroup$ Dec 15, 2020 at 17:18
  • $\begingroup$ The reference you link on the web is for V12.2. You're using V12.1. The docs for 12.1 indicate only temp and pressure may be specified. $\endgroup$
    – Michael E2
    Dec 15, 2020 at 17:48
  • $\begingroup$ See reference.wolfram.com/legacy/language/v12/ref/… for the V12.0 docs online. (V12.2 must be near its time for release. They often put a nearly-ready version up on WolframCloud ahead of time, perhaps to check for bugs. They also update the online docs before the new version is released, too.) $\endgroup$
    – Michael E2
    Dec 15, 2020 at 17:54

1 Answer 1

2
$\begingroup$

The functionality you are trying to use is not available in versions before V12.2. You can try CloudEvaluate, but it will ding your $CloudCreditsAvailable:

CloudEvaluate[
 ThermodynamicData["Water", "Temperature",
  {"Pressure" -> Quantity[10000000, "Pascals"], "Quality" -> 0}]
 ]

enter image description here

WolframCloud is running V12.2 currently, but the rest of us have to wait until they are ready for a full release.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.