Giter Club home page Giter Club logo

irradiance_calculation's Introduction

Calculation of irradiance of the platform

The task was carried out in the 3'rd variant: calculation os irradiance of the platform, illuminated with flat lambert light source.

The platform with side side_plat is located in the plane XY. The center of square lambert light source with side side_light is located at point (0, 0, side_plat/2) and titled at the angle angle_light by axis about the axis Y upwards. The square light source is divided on n_light * n_light squares, thr platform is divided on n_plat * n_plat squares and after calculation of irradiance will performs in every platform cell.

Output: the result of calculation is saved to output_dir/irradiance.txt, visualization to output_dir/irradiance.png and scene to output_dir/scene.png

image

Prerequirement

  • python3.5
  • numpy
  • matplotlib.pyplot
  • pandas

Usage

python3 compute_irradiance.py [-h] [--F F] [--side_plat SIDE_PLAT] [--side_light SIDE_LIGHT]
      [--angle_light ANGLE_LIGHT] [--n_plat N_PLAT] [--n_light N_LIGHT]
      [--path_V_lambda PATH_V_LAMBDA] [--path_RSPD PATH_RSPD]
      [--output_dir OUTPUT_DIR]

arguments:
 -h, --help            show this help message and exit
 --F F                 Total radiant flux (Watt)
 --side_plat SIDE_PLAT
                       Size of platform side (meter)
 --side_light SIDE_LIGHT
                       Size of light source side (meter)
 --angle_light ANGLE_LIGHT
                       Angle of inclination of the light source (degree)
 --n_plat N_PLAT       Number of cells of platform
 --n_light N_LIGHT     Number of cells of light source
 --path_V_lambda PATH_V_LAMBDA
                       Path to V(lambda) curve
 --path_RSPD PATH_RSPD
                       Path to relative SPD
 --output_dir OUTPUT_DIR
                       Path directory to save results

example:

python3 compute_irradiance.py \
    --F 23.2 \
    --side_plat 40 \
    --side_light 10 \
    --angle_light 30 \
    --n_plat 30 \
    --n_light 30 \
    --path_V_lambda ../data/linCIE2008v2e_5.xls \
    --path_RSPD ../data/D65.xls \
    --output_dir ../example_calculation

irradiance_calculation's People

Contributors

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