Commit cf5ee1a3 authored by Bognár, Á.'s avatar Bognár, Á.
Browse files

Update PV power simulation with PVMM example

parent bea78af8
......@@ -18,12 +18,16 @@ Daypym is a project to preprocess and run DAYSIM solar irradiance simulations wi
* Visualizing irradiance simulation results
# Tutorial
# Tutorials
## Generate sensorpoints and run DAYSIm simulations with Daypym
See example_workflow.ipynb jupyter notebook in the example_workflow folder.
To start it:
* clone or copy this repository to your computer
* open a terminal window and navigate to the example_workflow folder in the cloned repository
* type: jupyter notebook example_workflow.ipynb
Alternatively, you can open and run (from the same location) the daypym_workflow_example.py file.
Alternatively, you can open and run (from the same location) the daypym_workflow_example.py file.
\ No newline at end of file
## Use irradaince results for PV power simulations with [PVMismatch](https://github.com/mikofski/PVMismatch)
In this example we compare the PV power results calculated with a mean uniform irradiance:
* after doing the previous tutorial, open and run (from the same location) the electr_sim_workflow_example_pvmm.py
......@@ -4,8 +4,8 @@ from geomeppy import IDF
from geomeppy import view_geometry
import os
import sys
#sys.path.append(os.path.dirname(os.getcwd()) + r'\\daypym')
sys.path.append(r'c:\TUe\SEAC\Git\daypym_gl2\daypym\daypym')
sys.path.append(os.path.dirname(os.getcwd()) + r'\\daypym')
#sys.path.append(r'c:\TUe\SEAC\Git\daypym_gl2\daypym\daypym')
from daypym import *
from geomeppy.geom.polygons import (break_polygons, Polygon2D, Polygon3D, Vector2D, Vector3D)
from geomeppy.geom.transformations import align_face, invert_align_face
......
......@@ -4,8 +4,8 @@ from matplotlib import pyplot as plt
import json
import os
import sys
#sys.path.append(os.path.dirname(os.getcwd()) + r'\\daypym')
sys.path.append(r'c:\TUe\SEAC\Git\daypym_gl2\daypym\daypym')
sys.path.append(os.path.dirname(os.getcwd()) + r'\\daypym')
#sys.path.append(r'c:\TUe\SEAC\Git\daypym_gl2\daypym\daypym')
from postprocess import *
from pvmismatch.pvmismatch_lib import pvcell, pvconstants, pvmodule, pvstring, pvsystem
......@@ -36,7 +36,7 @@ ill_mean = ill.mean(axis=1)
with open('pts/{}.json'.format(project_name), 'r') as fp:
sps = json.load(fp)
# read pv system layout
# read pv system layout.
system_layout = pd.read_csv(r'{}_pv_sys_layout.csv'.format(project_name), index_col='mod_nr')
str_len = len(system_layout)
str_num = len(system_layout.columns)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment