Code Monkey home page Code Monkey logo

vlubeck / gridlabd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arras-energy/gridlabd-old

0.0 0.0 0.0 437.3 MB

Stanford/SLAC development version of GridLAB-D

License: GNU General Public License v3.0

Python 11.16% Batchfile 0.25% C++ 72.34% C 1.34% Makefile 0.60% CSS 0.22% XSLT 2.96% Shell 0.98% M4 0.82% HTML 7.57% JavaScript 0.54% MATLAB 0.01% Awk 0.10% PHP 0.06% TeX 0.01% Hack 0.02% Dockerfile 0.01% TSQL 0.01% Jupyter Notebook 1.00%

gridlabd's Introduction

The main documentation page for this project is located at http://docs.gridlabd.us/.

Important Note

This repository is SLAC National Accelerator's version of HiPAS GridLAB-D. Only SLAC projects may contribute to this repository. Changes made in this repository will be migrated back to the original GridLAB-D repository at PNNL's discretion.

User quick start

The preferred method of using SLAC releases of GridLAB-D is to download the SLAC master image from docker hub (see https://cloud.docker.com/u/gridlabd/repository/docker/gridlabd/slac-master). You must install the docker daemon to use docker images. See https://www.docker.com/get-started for details.

Once you have installed docker, you may issue the following commands to run GridLAB-D at the command line:

  host% docker run -it -v $PWD:/model gridlabd/slac-master gridlabd -W /model [load-options] [filename.glm] [run-options] 

On many systems, an alias can be used to make this a simple command that resemble the command you would normally issue to run a host-based installation:

  host% alias gridlabd='docker run -it -v $PWD:/model gridlabd/slac-master gridlabd -W /model'

Note that this alias will interfere with the host-based installation.

Developer quick start

Note: This fork of GridLAB-D does not support MS Windows directly. You must use docker or a virtual machine running linux.

Normally on Linux and Mac OS X developers you should use the install.sh script to setup the system, perform the initial build, and install GridLAB-D for all users on the system.

host% git clone https://github.com/slacgismo/gridlabd gridlabd
host% gridlabd/install.sh

The gridlabd command is added to the /usr/local/bin folder, so this folder must be included in the path for all users, e.g., as specified in /etc/profile or /etc/profile.d.

You may work with a user installation instead of a system installation. Assuming your development system is ready (see https://github.com/slacgismo/gridlabd/wiki/Install#mac-osx-and-linux for details), you can "quickly" download and build a host-based installation from a branch using the following commands:

  host% git clone https://github.com/slacgismo/gridlabd -b _branch-name_ _work-folder_
  host% cd _work-folder_
  host% autoreconf -isf
  host% ./configure --enable-silent-rules --prefix=$PWD/install [_options_]
  host% make -j install
  host% export PATH=$PWD/install/bin:$PATH
  host% gridlabd --version
  host% gridlabd --validate

Useful configure options

  • --with-mysql=/usr/local to enable support for mysql (assuming you install mysql-dev on your system)
  • CXXFLAGS='-w -O0 -g' to enable debugging of C++ source code (e.g., module code)
  • CFLAGS='-w -O0 -g' to enable debugging of C source code (e.g., core code)

Notes

  • The version number should contain the branch-name. If not, use the which gridlabd command to check that the path is correct.
  • You can control whether your local version run the docker image instead of the local install using the --docker command-line option.
  • In theory all validate tests of the master should pass. However, sometimes issues arise that aren't caught until after a merge into master. If you encounter a validation error, please check the issues to see if it has not already been reported. When reporting such a problem, please include the --origin command line option output, the validate.txt output, and the output from uname -a to assist in reproducing and diagnosing the problem.

Citation

If you use this fork of GridLAB-D for a publication you are required to cite it, e.g.,

Chassin, D.P., et al., "GridLAB-D Version major.minor.patch-build (branch) platform", (year) [online]. Available at url, Accessed on: month day, year.

You may use the --cite command option to obtain the correct citation for your version:

host% gridlabd --cite
Chassin, D.P., et al. "GridLAB-D 4.2.0-191008 (fix_python_validate) DARWIN", (2019) [online]. Available at https://github.com/slacgismo/gridlabd/commit/dfc392dc0208419ce9be0706f699fdd9a11e3f5b, Accessed on: Oct. 8, 2019.

This will allow anyone to identify the exact version you are using to obtain it from GitHub.

Contributions

Please see https://github.com/slacgismo/gridlabd/blob/master/CONTRIBUTING.md for information on making contributions to this repository.

gridlabd's People

Contributors

dchassin avatar afisher1 avatar jcfuller1 avatar aivanova5 avatar ntenney avatar ftuffner avatar kevinpschneider avatar trevorhardy avatar nikhilgupta10 avatar sjinpnnl avatar priyatm62 avatar huangrenke avatar chenyousu avatar temcdrm avatar jcald1 avatar jongoncalves avatar jacobhansens avatar atmurray avatar dpinney avatar kdheepak avatar kellydavid 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.