GithubHelp home page GithubHelp logo

mikkelkp / incident-radiation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pollination-apps/incident-radiation

0.0 0.0 0.0 1.58 MB

Calculate the incident radiation on geometry.

License: GNU Affero General Public License v3.0

Python 99.14% Dockerfile 0.86%

incident-radiation's Introduction

incident-radiation

Calculate the incident radiation on geometry.

Such studies of incident radiation can be used to approximate the energy that can be collected from photovoltaic or solar thermal systems. They are also useful for evaluating the impact of a building's orientation on both energy use and the size/cost of cooling systems. For studies of photovoltaic potential or building energy use impact, a sky matrix from EPW radiation should be used. For studies of cooling system size/cost, a sky matrix derived from the STAT file's clear sky radiation should be used.

NOTE THAT REFLECTIONS OF SOLAR ENERGY ARE NOT INCLUDED IN THE ANALYSIS PERFORMED BY THIS APP.

Ground reflected irradiance is crudely accounted for by means of an emissive "ground hemisphere," which is like the sky dome hemisphere and is derived from the ground reflectance that is associated with the connected _sky_mtx. This means that including geometry that represents the ground surface will effectively block such crude ground reflection.

Quickstart

Install dependencies:

> pip install -r app/requirements.txt

Start Streamlit

> streamlit run app/app.py

  You can now view your Streamlit app in your browser.

  Network URL: http://172.17.0.2:8501
  External URL: http://152.37.119.122:8501

Make changes to your app in the app.py file inside the "app" folder.

Run inside Docker image locally (Optional)

You can run the app locally inside Docker to ensure the app will work fine after the deployment.

You need to install Docker on your machine in order to be able to run this command

> pollination-apps run app ladybug-tools --name "incident-radiation"

Deploy to Pollination

> pollination-apps deploy app --name "incident-radiation" --public --api-token "Your api token from Pollination"

Configure Github Actions

In order to configure github actions to deploy your app you will need to:

  1. Create a repository on Github

  2. Rename the repository's main branch to "master"

  3. Add a secret called POLLINATION_TOKEN with your Pollination API key as the value

  4. Create the first release of your app on Github with the tag v0.0.0

  5. In all your commit messages, use one of the following commit types;

    • feat: A new feature
    • fix: A bug fix
    • docs: Documentation only changes
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
    • refactor: A code change that neither fixes a bug nor adds a feature
    • perf: A code change that improves performance or size
    • test: Adding missing tests or correcting existing tests
    • chore: Other changes that don't modify src/test/
    • build: Changes that affect the build system or external dependencies (example: changing the version of a dependency)
    • ci: Changes to our CI or CD pipelines

    Examples of commit messages:

    • fix: Remove unused imports
    • feat: Add capability to use analysis period

    Note that the commit messages with only fix and feat type will trigger a deployment to Pollination.

Github actions will then package and deploy your code to an app called incident-radiation

incident-radiation's People

Contributors

chriswmackey avatar mostapharoudsari avatar ksobon 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.