Model indoor swimmimg pool in OpenStudio
It´s possible to model a indoor swimming pool using OpenStudio? Whats the best approach to do that?
First time here? Check out the Help page!
It´s possible to model a indoor swimming pool using OpenStudio? Whats the best approach to do that?
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.
As a workaround until better support is given in the OpenStudioApplication you can do this, assuming:
model.osm
My Surface
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:
# 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)
Thanks Julien, but I never used CLI, how can I acess it?
@J Monteiro the CLI is included in the OpenStudio SDK. Here's the documentation for it... http://nrel.github.io/OpenStudio-user...
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.
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 "..."
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-07-28 07:56:12 -0600
Seen: 505 times
Last updated: Jul 29 '21