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

Model indoor swimmimg pool in OpenStudio

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

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

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

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

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

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

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 =; m = vt.loadModel('model.osm').get; s = m.getSurfaceByName('My Surface').get; pool =, s); p = m.getPlantLoopByName('My Plant Loop').get; p.addDemandBranchForComponent(pool);'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 =
m = vt.loadModel('model.osm').get

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

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

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


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

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

@J Monteiro the CLI is included in the OpenStudio SDK. Here's the documentation for it...

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

Can I use CLI with OpenStudio application?

J Monteiro's avatar J Monteiro  ( 2021-07-29 10:04:41 -0500 )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 -0500 )edit

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 -0500 )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


Question Tools



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

Seen: 456 times

Last updated: Jul 29 '21