Giter Site home page Giter Site logo

simple-simple's Introduction

Simple Simple

Your dream house come true!

A simple Building Energy Model written in Python.

Conceptual Model

The model is derived from the hourly dynamic model in ISO 13790. It has only one capacity and one resistance.

Compared to the ISO 13790 there is

  • no internal heat gain,
  • full shading of the building, no direct or indirect sun light,
  • no windows or doors,
  • no ventilation,
  • immediate heat transfer between air and surface.

Simple simple model

θm,t = θm,t-1 × (1 - Δt / Cm × Htr, em) + Δt / Cm × (ΦHC, nd, t-1 + Htr, em × θe, t-1)

Output Variables

  • ΦHC, nd, t: cooling or heating power at time t

State Variables

  • θm, t: building temperature [℃] at time t

Parameters

  • θe, t: outside temperature [℃] at time t
  • Af: conditioned floor area [m2]
  • Cm: capacity of the building's heat mass [J/K]
  • Δt: time step size [s]
  • Htr, em: heat transmission to the outside [W/K]
  • θint, C, set: cooling set point temperature [℃]
  • θint, H, set: heating set point temperature [℃]
  • ΦC, max: maximum cooling power [W]
  • ΦH, max: maximum heating power [W]

User Guide

Installation

You need Python 3.6 and pip installed.

Install from GitHub (needs Git):

$ pip install git+git://github.com/timtroendle/simple-simple

If you don't have Git installed, download and extract the repository and then execute:

$ cd <simple-simple-directory>
$ pip install -e .

Usage Example

from datetime import timedelta
from simplesimple import Building

conditioned_floor_area = 100
building = Building(
    heat_mass_capacity=165000 * conditioned_floor_area,
    heat_transmission=200,
    maximum_cooling_power=-10000,
    maximum_heating_power=10000,
    initial_building_temperature=16,
    time_step_size=timedelta(minutes=10),
    conditioned_floor_area=conditioned_floor_area
)

# simulate one time step
print(building.current_temperature) # returns 16
building.step(outside_temperature=20, heating_setpoint=18, cooling_setpoint=26)
print(building.current_temperature) # returns ~16.4

Developer Guide

Installation

Best install simplesimple in editable mode:

$ pip install -e .

Run the test suite

Run the test suite with py.test:

$ py.test

simple-simple's People

Contributors

timtroendle 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.