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

ParticleSwarm's profile - activity

2021-08-24 11:05:53 -0600 received badge  Popular Question (source)
2019-08-15 12:04:12 -0600 commented answer How to Report EFLH for schedules in Open Studio?

In a reporting measure you will most likely be using the SQL output file as well as the energy plus table data. Both ar

2019-06-10 08:54:49 -0600 marked best answer Hosting the OpenStudio CLI on a server

Hey Unmet!

Is it at all possible to deploy the OpenStudio command line interface to a remote server? I am trying to develop lightweight calculation tools without the user having to download the actual software. Ideally, I would like to use a web interface to feed inputs to a .osw file which then would be feed to the CLI to produce reports that would be displayed to the user in a web browser.

Any help or advice would be greatly appreciated!

2019-06-04 11:24:19 -0600 asked a question Hosting the OpenStudio CLI on a server

Hosting the OpenStudio CLI on a server Hey Unmet! Is it at all possible to deploy the OpenStudio command line interface

2019-04-18 13:24:44 -0600 commented answer Set Custom Boiler Curves

This worked great, thank you for the help!

2019-04-18 13:23:34 -0600 marked best answer Set Custom Boiler Curves

Hello Unment!

I am currently writing a measure to replace the existing hot water boiler curves with custom bi cubic and bi quadratic curve coefficients. I have run into an issue with the curve replacement. I run through the current curves for the boilers and delete them, and then try to plunk in the new curve objects.

I've been met with this error within the hot water boiler object field:

"Undefined method setNormalizedBoilerEfficiencyCurveName for #.

I convert the hot water boiler to the correct class but I am not sure why I am unable to access this field? I am able to modify the other fields of the Boiler object besides the ones with hashed values. Bellow is code for reference.

# define the new Biquadratic curve object
condensingBoilerEfficiency = OpenStudio::Model::CurveBiquadratic.new(model)
condensingBoilerEfficiency.setName("CondensingBoilerEff")
condensingBoilerEfficiency.setCoefficient1Constant(1.124970374)
condensingBoilerEfficiency.setCoefficient2x(0.014963852)
condensingBoilerEfficiency.setCoefficient3xPOW2(-0.02599835)
condensingBoilerEfficiency.setCoefficient4y(0)
condensingBoilerEfficiency.setCoefficient5yPOW2(-0.00000140464)
condensingBoilerEfficiency.setCoefficient6xTIMESY(-0.00153624)
condensingBoilerEfficiency.setMinimumValueofx(0.1)
condensingBoilerEfficiency.setMaximumValueofx(1.0)
condensingBoilerEfficiency.setMinimumValueofy(30)
condensingBoilerEfficiency.setMaximumValueofy(85)



    model.getCurves.each do |curve|
      if curve.name.to_s == "Boiler with No Minimum Turndown"
        handle = curve.handle
        model.removeObject(curve.handle)

      end

    end
    water_unit = boiler_water.to_BoilerHotWater.get
    water_unit.setName("CondensingBoilerEff")
    water_unit.setNormalizedBoilerEfficiencyCurveName("CondensingBoilerEff")
    water_unit.setNominalThermalEfficiency(1)

  end

here is a reference to the class that I am using. Any help would be greatly appreciated!

Particle Swarm

2019-04-18 11:55:23 -0600 asked a question Set Custom Boiler Curves

Set Custom Boiler Curves Hello Unment! I am currently writing a measure to replace the existing hot water boiler curves

2019-03-07 12:09:58 -0600 commented answer Alternate ways of opening an E+ .sql file

Thank you so much!

2019-03-07 12:06:33 -0600 marked best answer Alternate ways of opening an E+ .sql file

Hello Unmet!

I am just curious if there is an alternate way of opening a .sql file other than writing an Open Studio reporting measure or using Dview. I would like to manipulate the .sql data via Pandas in python but upon some research, I've found that that would require a remote database connection?

In other words, Is there a way to open an existing .sql file in python, make queries to the E+ data tables, and then use that data?

Any guidance would be appreciated!

2019-03-07 11:06:53 -0600 asked a question Alternate ways of opening an E+ .sql file

Alternate ways of opening an E+ .sql file Hello Unmet! I am just curious if there is an alternate way of opening a .sql

2019-02-26 14:28:20 -0600 answered a question how to run openstudio command line interface for non-familiar with this option

Eyal, edit your PATH environment variable to point to the openstudio.exe file in the bin folder of your open studio down

2019-02-26 14:20:19 -0600 commented answer how to run openstudio command line interface for non-familiar with this option

Eyal, edit your PATH environment variable to point to the openstudio.exe file in the bin folder of your open studio down

2019-02-26 12:54:28 -0600 commented answer OpenStudio CLI python GUI

After swapping the names to absolute file paths and changing the direction of the slashes I was able to get it to run! T

2019-02-26 12:51:58 -0600 marked best answer OpenStudio CLI python GUI

Hello Unmet!

I am currently writing a python GUI to overlay the OS CLI and need some advice on how to evoke a system call with the parameters and workflow.osw file. This issue that I am finding is that when I use a Python system call, the model does not successfully run. When I use the same call in a ruby file, the model runs perfectly.

These are the commands from both of my scripts:

 Python: subprocess.run("openstudio run -w MedOfficeSeed\modified.osw")
 Ruby:  system 'openstudio run -w MedOfficeSeed\workflow.osw'

I believe the problem could be rooted in the ruby dependency that Open Studio has. The CLI also works normally when I use the cmd prompt outside of my GUI application.

I know this question may be out of context from the bulk of the queries on here but was hoping someone could lend some advice. I would really like to avoid writing the GUI in Ruby!

Thank you, Particle Swarm

2019-02-26 11:13:32 -0600 edited question OpenStudio CLI python GUI

OpenStudio CLI python GUI Hello Unmet! I am currently writing a python GUI to overlay the OS CLI and need some advice o

2019-02-26 01:41:45 -0600 marked best answer Trying to configure PATH variables for CLI measure testing

I am currently trying to set up the command line interface for for measure testing. I modified the PATH variable to point to the OpenStudio version of ruby to use.

I also tried putting a .rb file in the site_ruby file Path and overall I am getting an error of "Cannot load such file" -- openstudio.so (LoadError).

I am using OpenStudio version 2.5.1, and have the latest install of ruby 2.4

ruby files are executable from the directory with a hello-world that I tested, so I am not sure why it cannot load the openstudio.so file or that its not finding it. They are in the same directory.

UPDATE: downgraded my Ruby to 2.2.4 to see if that would fix the issue, no luck. Still getting an error "LoadError: cannot load such file -- openstudio.so"

2019-02-21 16:42:24 -0600 received badge  Commentator
2019-02-21 16:42:24 -0600 commented answer OpenStudio CLI python GUI

Thank you for the quick response! When I am back at work I will post my environment variable configuration as well as m

2019-02-21 14:54:42 -0600 asked a question OpenStudio CLI python GUI

OpenStudio CLI python GUI Hello Unmet! I am currently writing a python GUI to overlay the OS CLI and need some advice o

2019-01-17 11:46:07 -0600 commented question Undefined Method for #

thank you guys for all of your help! I've tried different solutions to now avail. I am currently now using the model.g

2019-01-15 15:42:42 -0600 asked a question Undefined Method for #

Undefined Method for # Hello Unmet! I am trying to manipulate model object fields via a measure and have found the obje

2019-01-07 09:04:22 -0600 edited question Reporting Measure sql file manipulation

Reporting Measure sql file manipulation Hello Unmet, I am currently writing a reporting measure script to output infor

2019-01-07 08:59:02 -0600 asked a question Reporting Measure sql file manipulation

Reporting Measure sql file manipulation Hello Unmet, I am currently writing a reporting measure script to output infor

2019-01-03 10:17:35 -0600 commented answer Grab time data from an OS model schedule

This is perfect thank you!

2019-01-03 10:17:06 -0600 marked best answer Grab time data from an OS model schedule

Hello Unmet Hours!

I am currently writing a measure to modify schedules in Open Studio and was wondering if it is possible to get time data when a certain set point or threshold is reached. for example, I would like to grab the time of day based on when the building was occupied; specifically the start time of the day.

I am still new to writing measures so any info would be extremely helpful.

Thank you

2019-01-02 14:01:29 -0600 asked a question Grab time data from an OS model schedule

Grab time data from an OS model schedule Hello Unmet Hours! I am currently writing a measure to modify schedules in Ope