Git Product home page Git Product logo

ambient-loop-pat-projects's Introduction

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

ambient-loop-pat-projects's People

Contributors

nllong avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.