Git Product home page Git Product logo

energysimulation's Introduction

===========
Grid Sim
===========

Grid Sim provides a Linear Program based solution for different types
of energy sources.  It mainly differs from other simulators in that it
uses actual hour-by-hourprofile data for non-dispatchable sources,
such as wind and solar.  This allows for more reliable simulation than
simple LCOE (Levelized Cost of Energy) simulations which assume the
fungibility of energy.  E.g. An LCOE analysis wouldn't consider that
solar power cannot provide power in the darkest of night.

This logic provided the basis for the paper "Analyzing energy
technologies and policies using DOSCOE by John C. Platt and J. Orion
Pritchard".

It is also the basis for data shown on the website
https://goo.gl/BTtZYl

===========
Installation
===========

Dependencies:
  Grid Sim is dependent on the following packages.
  - numpy
  - pandas
  - protobuf
  - ortools

  All packages are downloadable via PyPi.  When testing installation
  on a linux workstation a simple pip-install of the tarball installed
  everything except for ortools.  Since the recent bundles of ortools
  were in egg form, installing ortools via easy-install proved a
  suitable workaround for this problem.

  To install, type:
  $ cd <cloned gridsim directory>
  $ python setup.py sdist
  $ pip install dist/gridsim-1.0.0.tar.gz

  And then if ortools doesn't install properly:
  $ easy_install ortools

  To run simple example:
  $ cd gridsim
  $ python grid_sim_simple_example.py

  To run an example more like those calculated on the website:
  $ cd gridsim
  $ python grid_sim_website_example.py
  
===========
Source Tree
===========

- grid_sim_linear_program.py: Energy Grid objects wrapped around a linear-program
- grid_configuration_pb2.py: compiled protobufs for grid_sim_linear_program.py
- grid_sim_simple_example.py: Executable python script which runs a simple grid simulation.
- grid_sim_website_example.py: Executable python script which runs a
    grid simulation using the input data on the energystrategies.org website.
+ data: data used to generate scenarios for website simulations
  + profiles:
    - profiles_<region>.csv: source and demand profiles for a particular
      electrical region.  Regions are taken as close as possible from
      the EIA definition of the regions.  See
      http://www.eia.gov/beta/realtime_grid/ for a map of the regions.
      Solar and Wind data were take from NREL data which was
      identified by state.  Since some of the EIA regions do not
      perfectly overlap states, bifurcated states were split up into
      EIA regions.  Profile columns are the energy source type.
      Profile rows are hour of the year. Values are in Megawatts for
      the hour.
      
  + costs:
    - costs.csv: source costs as used by the website.  Rows are of the
      form <SOURCE_TYPE>_<COST_INDEX> where <COST_INDEX> matches the
      cost sliders in the website.  Some additional sources are
      included here which ultimately were not shown on the website.
      For the website, all Carbon Capture and Sequestration (CCS) was
      done using <SOURCE_TYPE>_CRYO_<COST_INDEX>.  Columns are:

      CO2: CO2 tonnes emitted per Megawatt of energy.

      fixed: Combination of capital and yearly fixed operating costs per
      Megawatt of capacity.

      variable: Costs per Megawatt-hour of generation. Primarily fuel costs.

    - storage_costs.csv: storage costs.  Rows are of the form
      <STORAGE_TYPE>.  For the website, all storage assumed
      ELECTROCHEMICAL (i.e. lithium batteries) Colums are:

      fixed: Combination of capital and yearly fixed operating costs per
      Megawatt-hour of capacity.

      charge_efficiency: What fraction of energy gets stored during charging.

      discharge_efficiency: What fraction of energy gets put back on the
      grid during discharge.

      charge_capital: Combination of capital and yearly fixed
      operating costs per Megawatt of charging capacity.

      discharge_capital: Combination of capital and yearly fixed
      operating costs per Megawatt of discharging capacity.
      


energysimulation's People

Contributors

drewbryant avatar orionp-google avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

energysimulation's Issues

suggestion: add website link to github

The top of the Github page says "No description, website, or topics provided."

I might suggest adding a link to the website that is powered by the data provided by this code.

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.