Skip to content

nllong/ambient-loop-pat-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ambient Loop PAT Projects

This repository contains the Ambient Loop PAT projects for running OpenStudio/EnergyPlus. The simulation results can be used to generate reduced order models using the ROM Framework

Instructions

  • Clone this repository

    Note that the measures in this repository are copies from these measures here. If you need to update the measures, it is recommended to check out the measures from the other repository and edit them. For example, once you check out the measures, launch PAT and go to Window -> Set MyMeasure directory and set the directory to the checked out measures.

  • If running simulations, then following instructions below on "Running Simulations" before launching PAT. If PAT is launched first, then PAT will use it's own version of OpenStudio Server which doesn't support running the algorithms needed for these projects.

  • Launch PAT (> Version 2.7.1). PAT Version 3.x works as well but only against the 2.9.1 OpenStudio Server.

  • Open any of the projects

Running Simulations

In order to run the simulations locally, you will need to run a docker-based version of OpenStudio Server. Note that you must run the commands below before launching PAT, otherwise, PAT will launch it's own version of OpenStudio Server (in local mode) on the same port as the dockerized OpenStudio Server.

It is best to use the OpenStudio Server version that is this repo's docker-compose file (2.9.1). There is a second docker compose file that is for a newer version of OpenStudio Server that can be used for testing (docker-compose-os-3.x.yml)

docker volume create --name=osdata
docker volume create --name=dbdata
  • Launch the docker stack (include number of workers if planning on scaling)
docker-compose up

# scaling
OS_SERVER_NUMBER_OF_WORKERS=n docker-compose up
  • Scale the number of workers (from n above, if desired)
docker-compose scale worker=n
  • It is helpful to remove PAT's running instance of PAT to save resources. To stop PAT from spinning up resources make sure to run the following command line a few seconds after launching and loading your PAT project.
for KILLPID in `ps ax | grep -e 'ParametricAnalysisTool.app.Contents.Resources.ruby.bin.ruby' -e 'mongod.*--logpath' -e 'delayed_job' -e 'rails' | grep -v grep | awk '{print $1;}'`; do 
	echo "Killing process $KILLPID"
	kill -9 $KILLPID;
done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published