Commit 0674f9e1 authored by Kaushik Das's avatar Kaushik Das
Browse files

added hybrid sizing optimization class also including example. Reads BOS cost data from LandBOSSE

parent 92c9f7c7
This diff is collapsed.
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 10 12:05:52 2019
@author: kdas
"""
# -*- coding: utf-8 -*-
if __name__ == "__main__":
import pandas as pd
from HyDesign import Hpp_Sizing
# Setting up
input_dir_ts = r'C:\Users\kdas\Documents\HCP Anywhere\Anatole MSc thesis\Case_study\Data'
input_wind_ts_filename = r'\Wind\wind_pow.csv'
input_solar_ts_filename = r'\Solar\solar_pow.csv'
input_price_ts_filename = r'\Market\spot_2014_2016.csv'
start_date = pd.to_datetime("2016-01-01 00:00:00")
end_date = pd.to_datetime("2016-12-31 23:00:00")
wind_zone = "DK2_wind"
solar_zone = "DK2_solar"
market_zone = "DK2"
timeFormat_wind = "%d/%m/%Y %H:%M:%S"
timeFormat_solar = "%d/%m/%Y %H:%M:%S"
timeFormat_price = '%Y/%m/%d %H:%M:%S'
timename ='Time'
rating_WT = 2.6
nWT_per_string = 20
lifetime_WT = 30
lifetime_PV = 30
grid_connection = 50 # in MW
land_area_available = 100 # in square km
rotor_diameter = 128 # in m
hub_height = 120 # in m
turbine_spacing = 4 # in terms of Rotor Diameter
turbine_row_spacing = 10 # in terms of Rotor Diameter
## ----------------------------------------------------------------------------
## 1. Initilize a Meso_extractor object
## ----------------------------------------------------------------------------
my_Hpp_Sizing = Hpp_Sizing(
input_dir_ts,
input_wind_ts_filename,
input_solar_ts_filename,
input_price_ts_filename,
start_date,
end_date,
wind_zone,
solar_zone,
market_zone,
timeFormat_wind,
timeFormat_solar,
timeFormat_price,
timename,
rating_WT,
nWT_per_string,
lifetime_WT,
lifetime_PV,
grid_connection,
land_area_available,
rotor_diameter,
hub_height,
turbine_spacing,
turbine_row_spacing
)
wind_ts=my_Hpp_Sizing.Data_Import_Wind()
# wind_cap_fact=my_Hpp_Sizing.Calculate_Capacity_Factor_Wind(wind_ts)
solar_ts=my_Hpp_Sizing.Data_Import_Solar()
price_ts=my_Hpp_Sizing.Data_Import_Price()
out_var=my_Hpp_Sizing.Sizing_Optimisation(wind_ts,solar_ts,price_ts)
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