Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
8

Specific heat of water in EMS

asked 2015-10-16 08:24:19 -0500

updated 2015-11-07 13:43:23 -0500

I'm trying to use the specific heat of water in an EMS program.

There are two built-in Erl functions, @CpCW (Cp for Chilled water) and @CpHW (Cp for Hot water) that accept an input parameter for temperature.

Except that as far as I understand from the source code here, both functions are exactly the same: they ignore the temperature passed to it and simply return 4180 J/kg-1.k-1. (I've tried using it, it's a constant 4180 indeed).

Am I missing something or is there just no function to get the specific heat at different temperatures?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2015-10-16 11:24:25 -0500

Archmage gravatar image

updated 2015-10-21 08:01:02 -0500

Your are not missing anything. Use of those silly constant functions has been mostly deprecated elsewhere in EnergyPlus and replaced with calls to GetSpecificHeatGlycol (where 0% glycol is water). EMS should really be extended to expose that, and also GetDensityGlycol.

edit flag offensive delete link more

Comments

Thanks! So there's no way to access GetSpecificHeatGlycol in EMS yet then, too bad.

Julien Marrec gravatar imageJulien Marrec ( 2015-10-21 08:00:42 -0500 )edit

Yes, the problem is that there are no string data types in EMS and those calls have arguments for the name of the plant loop. I am thinking it might be better to add the specific heat to the node data and make an output variable for that. So it would switch from a function to a sensor.

Archmage gravatar imageArchmage ( 2015-10-21 08:24:51 -0500 )edit

Completely fine with using a sensor instead of a function. Even simpler, I was trying to use a sensor on temperature and pass that to the function anyway.

(Side question: if you add a potential output variable to E+, it's not slowing down the program is it? It's just calculated if you request isn't it?)

Julien Marrec gravatar imageJulien Marrec ( 2015-10-21 08:31:37 -0500 )edit

In this case no, it should not impact speed. There already are some other types (dewpoint, RH, wetbulb) of node data reports that are only calculated when requested and this would likely be done in the same manner (in CalcMoreNodeInfo).

Archmage gravatar imageArchmage ( 2015-10-21 09:17:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 



Question Tools

1 follower

Stats

Asked: 2015-10-16 08:24:19 -0500

Seen: 117 times

Last updated: Oct 21 '15