# Error in ThermodynamicData - SoundSpeed (Mathematica 10)

**URL:** <https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628>\
**Category:** Questions\
**Tags:** engineering, curated-data\
**Created:** [July 12, 2014, 8:01am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628 "2014-07-12T08:01:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 12, 2014, 8:01am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/1 "2014-07-12T08:01:31Z")

</div>

`ThermodynamicData["Water","SoundSpeed",{"Pressure"->Quantity[100,"MegaPascal"],"Temperature"->Quantity[300,"Kelvin"]}]` returns 745.614 m/s.

[WolframAlpha](http://www.wolframalpha.com/input/?i=sound%20speed%20in%20water%20at%20100%20MPa%20and%20300%20K%20in%20m/s) returns 1668 m/s.

[NIST Chemical WebBook](http://webbook.nist.gov/cgi/fluid.cgi?T=300&PLow=100&PHigh=100&PInc=1&Digits=7&ID=C7732185&Action=Load&Type=IsoTherm&TUnit=K&PUnit=MPa&DUnit=mol/l&HUnit=kJ/mol&WUnit=m/s&VisUnit=uPa*s&STUnit=N/m&RefState=DEF) returns 1667.891 m/s.

---

<div class="post-metadata">

**Author:** ![etm](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/etm/32/8360_2.png) [@etm](https://community.wolfram.com/u/etm)\
**Post date:** [July 12, 2014, 11:57am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/2 "2014-07-12T11:57:12Z")

</div>

I don’t think it’s just water. Speed of sound appears wrong for other fluids. I spot checked air and oxygen and they are off by a factor of 2, just like your example ..

```
UnitConvert[ThermodynamicData["Air","SoundSpeed",{"Pressure"->Quantity[15,"psi"],"Temperature"->Quantity[519,"DegreesRankine"]}],"ft/s"]

```

Returns 499.488 ft/s. Answer should be ~ 1117 ft/s

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [July 12, 2014, 7:14pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/3 "2014-07-12T19:14:41Z")

</div>

Mr. Meyers,

Please check your code. Did you actually have

```
"Temperature">Quantity

```

---

<div class="post-metadata">

**Author:** ![etm](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/etm/32/8360_2.png) [@etm](https://community.wolfram.com/u/etm)\
**Post date:** [July 12, 2014, 7:27pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/4 "2014-07-12T19:27:03Z")

</div>

No I didn’t. I repaired.

The incorrect results remains unchanged though. It seems all speed of sounds are coming back incorrect. Might be worth looking into.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [July 12, 2014, 9:57pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/5 "2014-07-12T21:57:40Z")

</div>

Also, there is an example in the documentation of the function AirTemperatureData:

```
Grid[SortBy[{#, 
     ThermodynamicData["Air", 
      "SoundSpeed", {"Temperature" -> AirTemperatureData[#], 
       "Pressure" -> AirPressureData[#]}]} & /@ 
   CityData[{Large, "Colorado", "UnitedStates"}], Last], Frame -> All]

```

It gives:

 ![speedsound.gif](https://global.discourse-cdn.com/wolfram/original/2X/7/7654bb6f5d91941858d66e442e8d7fd07ff6d58f.gif)

This suggests that there is a real problem.

M.

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [July 12, 2014, 10:42pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/6 "2014-07-12T22:42:44Z")

</div>

I use Mathematica for consulting work in optics and applied physics. This looks like a REAL problem.

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [July 13, 2014, 3:18am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/7 "2014-07-13T03:18:48Z")

</div>

Gentlemen,

Thank you for pointing out this problem. I filed a report for developers.

p.s. If 10.0 customers find problems with other \*Data functions, please start new threads.

---

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 13, 2014, 4:20am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/8 "2014-07-13T04:20:37Z")

</div>

Thank you, Mr. Miller.

Can you describe the process for distributing a fix to this problem?

Also, I understand the devil is in the details, but what is the timeframe to get the fix? Should we be thinking weeks or months?

Thanks again.

---

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 13, 2014, 9:56pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/9 "2014-07-13T21:56:47Z")

</div>

I thought it might be that Mathematica was missing the phase transition, but problem seems to be across entire (p,T) domain.

Compare output of ThermodynamicData with [Diagram of the speed of sound of Water and Steam](http://twt.mpei.ac.ru/MCS/Worksheets/WSP/WKDiag14.xmcd)

 ![SoundSpeed.png](https://global.discourse-cdn.com/wolfram/original/3X/8/0/80d479c06ccca20b1272606d21aeeba74048239e.png)

```
c[p_, t_] := ThermodynamicData["Water", "SoundSpeed", {"Pressure" -> Quantity[p, "Bar"], "Temperature" -> Quantity[t, "DegreeCelsius"]}]; ContourPlot[Evaluate[c[p, t]][[1]], {t, 0, 800}, {p, 0, 1000}, Contours -> 30, Frame -> True, FrameLabel -> {"T [\[Degree]C]", "P [bar]"}, PlotLabel -> "Sound Speed in Water [m/s]\[NewLine](ThermodynamicData, Mathematica 10.0)", PlotLegends -> Automatic, ColorFunction -> (ColorData["TemperatureMap"])]

```

---

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 15, 2014, 12:44am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/10 "2014-07-15T00:44:48Z")

</div>

Received an email this evening from a Wolfram Technology Engineer saying, “[the] development team… have found out the parsing error which is causing the issue. Since this issue is caused by our data server, the problem should be resolved by the upcoming production push.”

Thanks for the prompt fix.

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [July 15, 2014, 3:05am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/11 "2014-07-15T03:05:54Z")

</div>

Mr. Carlson,

About updating:

The data paclet servers will be updated. In the “old days” I would have recommended looking in the directories given by

```
$BaseDirectory

```

and

```
$UserBaseDirectory

```

for _Paclet_ directories, and deleting them.

It appears that now the easy way to get data updates is to make sure the “Automatically check for data updates” line is checked in Preferences - Automatic Updates - Data Updates. (Experts feel free to correct me.)

 ![dataUpdate.jpg](https://global.discourse-cdn.com/wolfram/original/3X/8/6/862bfa12d87d5d104f7fb30d346eb5143107a3a7.jpeg)

---

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 16, 2014, 1:50pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/12 "2014-07-16T13:50:09Z")

</div>

Response from Wolfram to my followup email:

“The current plan is to have monthly release of Mathematica. The fix should hopefully be incorporated into the upcoming Mathematica 10.0.1. We don’t have an explicit date yet, but that should happen in weeks.”

---

<div class="post-metadata">

**Author:** ![jmartinez](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jmartinez/32/23654_2.png) [@jmartinez](https://community.wolfram.com/u/jmartinez)\
**Post date:** [July 16, 2014, 9:01pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/13 "2014-07-16T21:01:07Z")

</div>

As the Technical Engineer promised, we were able to correct this in our latest push to production. Which was this afternoon. This will resolve all of the incorrect SoundSpeed results. The documentation errors I’m told should be resolved in the next documentation update which is planned in the next week or so.

Sorry for the inconvenience and thank you for bringing this to our attention.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [July 16, 2014, 9:15pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/14 "2014-07-16T21:15:46Z")

</div>

Yes, this is much better. But what is wrong with Colorado Springs?

```
Grid[SortBy[{#, 
     ThermodynamicData["Air", 
      "SoundSpeed", {"Temperature" -> AirTemperatureData[#], 
       "Pressure" -> AirPressureData[#]}]} & /@ 
   CityData[{Large, "Colorado", "UnitedStates"}], Last], Frame -> All]

```

 ![SpeedofSound.jpg](https://global.discourse-cdn.com/wolfram/original/3X/8/a/8a2f24919cf5eb40c12bd2704c67809102c4e27a.jpeg)

Cheers,  
Marco

---

<div class="post-metadata">

**Author:** ![jmartinez](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jmartinez/32/23654_2.png) [@jmartinez](https://community.wolfram.com/u/jmartinez)\
**Post date:** [July 16, 2014, 9:33pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/15 "2014-07-16T21:33:48Z")

</div>

Its possible this result may be cached from earlier in your session (we do some saving of results from ThermodynamicData to speed up large repetitive calculations). I would try rerunning the calculation in a fresh session or kernel. You should see the correct results then.

---

<div class="post-metadata">

**Author:** ![etm](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/etm/32/8360_2.png) [@etm](https://community.wolfram.com/u/etm)\
**Post date:** [July 16, 2014, 9:43pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/16 "2014-07-16T21:43:15Z")

</div>

Yup. Answers are now correct (thanks for fixing), though incredibly slow. If I map over a list of several hundred temps it will timeout. Maybe your server is having issues? Maybe I should make a new topic or wait for the cobwebs to clear.

```
a[t_]:=UnitConvert[ThermodynamicData["Air","SoundSpeed",{"Pressure"->Quantity[15,"psi"],"Temperature"->Quantity[t,"DegreesRankine"]}],"ft/s"];

a/@Range[500,800,1]

ThermodynamicData::timeout: A network operation for ThermodynamicData timed out. Please try again later. >>

```

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [July 16, 2014, 9:49pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/17 "2014-07-16T21:49:51Z")

</div>

Okay, I restarted the kernel and now it looks better apart from this message:

> GeoPosition::invdtm: Unknown geodetic datum \_\_\_. Use  
> GeodesyData[“Datum”] for a list of available named datums. \>\>

Best wishes,  
Marco

---

<div class="post-metadata">

**Author:** ![gcrlsn](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gcrlsn/32/8283_2.png) [@gcrlsn](https://community.wolfram.com/u/gcrlsn)\
**Post date:** [July 17, 2014, 12:23am UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/18 "2014-07-17T00:23:33Z")

</div>

Much better. Thanks

 ![SoundSpeed_corrected.png](https://global.discourse-cdn.com/wolfram/original/3X/c/5/c5b60508d9c6a298593dd31a03eb4d3518c85c91.png)

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [July 17, 2014, 7:27pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/19 "2014-07-17T19:27:30Z")

</div>

Marco,

Thank you for the reminder. This warning was in the ref/AirTemperatureData, Neat Examples, example since 10.0.0 was released.

A formal report to developers has been filed. An odd warning message does not have the _Yipes!_ value that incorrect results do, so it might not be corrected as quickly.

Bruce

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [July 17, 2014, 7:45pm UTC](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628/20 "2014-07-17T19:45:52Z")

</div>

Dear Bruce,

sure, that makes sense of course. I already mentioned in another thread that this ThermoDynamicData issue is an example of very swift bug fixing.

Thanks a lot,  
Marco

[Next page](https://community.wolfram.com/t/error-in-thermodynamicdata-soundspeed-mathematica-10/2628.md?page=2)
