First time here? Check out the Help page!

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 9 years ago

updated 9 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
5

answered 9 years ago

Archmage's avatar

updated 9 years ago

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.

Preview: (hide)
link

Comments

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

Julien Marrec's avatar Julien Marrec  ( 9 years ago )

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's avatar Archmage  ( 9 years ago )

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's avatar Julien Marrec  ( 9 years ago )

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's avatar Archmage  ( 9 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 278 times

Last updated: Oct 21 '15