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

Model indoor swimmimg pool in OpenStudio

asked 2021-07-28 07:56:12 -0600

J Monteiro's avatar

It´s possible to model a indoor swimming pool using OpenStudio? Whats the best approach to do that?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
4

answered 2021-07-28 12:01:43 -0600

updated 2021-07-28 12:06:03 -0600

Yes, it's available in the OpenStudio SDK but not the OpenStudio Application as of v3.2 and v1.2, so you'll have to write an OpenStudio Measure to add it to a model. See the following documentation.

edit flag offensive delete link more
2

answered 2021-07-29 08:20:07 -0600

As a workaround until better support is given in the OpenStudioApplication you can do this, assuming:

  • Your model is named model.osm
  • Your Surface to add the pool to (bottom one) is named My Surface
  • The PlantLoop to connect it to is named My Plant Loop

A one liner using the CLI (it's decomposed for clarity at the end of the answer)

openstudio -e "include OpenStudio::Model; vt = OpenStudio::OSVersion::VersionTranslator.new; m = vt.loadModel('model.osm').get; s = m.getSurfaceByName('My Surface').get; pool = SwimmingPoolIndoor.new(m, s); p = m.getPlantLoopByName('My Plant Loop').get; p.addDemandBranchForComponent(pool); m.save('model.osm', true)"

It'll be missing an icon and showing some fields (the Node ones) that you shouldn't edit, but you'll have access to everything by clicking on it on the plant loop:

image description


Decomposition of the one-liner:

# Load
include OpenStudio::Model
vt = OpenStudio::OSVersion::VersionTranslator.new
m = vt.loadModel('model.osm').get

# Get Floor Surface for the pool
s = m.getSurfaceByName('My Surface').get
pool = SwimmingPoolIndoor.new(m, s)

# Connect to a plant loop
p = m.getPlantLoopByName('My Plant Loop').get
p.addDemandBranchForComponent(pool)

# Save
m.save('model.osm', true)
edit flag offensive delete link more

Comments

Thanks Julien, but I never used CLI, how can I acess it?

J Monteiro's avatar J Monteiro  ( 2021-07-29 08:27:56 -0600 )edit

@J Monteiro the CLI is included in the OpenStudio SDK. Here's the documentation for it... http://nrel.github.io/OpenStudio-user...

MatthewSteen's avatar MatthewSteen  ( 2021-07-29 10:01:58 -0600 )edit

Can I use CLI with OpenStudio application?

J Monteiro's avatar J Monteiro  ( 2021-07-29 10:04:41 -0600 )edit

Yes. However, the CLI (packaged with the OpenStudio SDK), is separate from the Applicaiton as of versions v3.0.0 and v1.0.0. Just make sure you've checked the version compatibility matrix for both to align versions. OpenStudio Application Version Compatibility Matrix. OpenStudio SDK Releases.

MatthewSteen's avatar MatthewSteen  ( 2021-07-29 10:09:54 -0600 )edit
3

Don't even bother installing something else. The CLI is in the same installation folder of your OpenStudioApplication, so just use the full path to that.

On Ubuntu: /usr/local/openstudioapplication-1.2.0/bin/openstudio -e "..."

On Linux: C:\openstudioapplication-1.2.0\bin\openstudio -e "..."

Julien Marrec's avatar Julien Marrec  ( 2021-07-29 10:59:51 -0600 )edit

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

2 followers

Stats

Asked: 2021-07-28 07:56:12 -0600

Seen: 505 times

Last updated: Jul 29 '21