4

Model indoor swimmimg pool in OpenStudio

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

J Monteiro's avatar
1.2k
J Monteiro
asked 2021-07-28 07:56:12 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

4

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.

MatthewSteen's avatar
10.1k
MatthewSteen
answered 2021-07-28 12:01:43 -0500, updated 2021-07-28 12:06:03 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
2

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)
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2021-07-29 08:20:07 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -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
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 -0500) edit
add a comment see more comments