The UFZ services GitLab and Mattermost will be unavailable on Monday, December 06 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 5cb69828 authored by Markus Millinger's avatar Markus Millinger
Browse files

Added some explanations in setData

parent 1058ddc5
......@@ -23,27 +23,30 @@
function [f,g,s] = setData(techData,f,g,s)
s.numTech = size(techData.data.techInputData(1,:),2); %The number of technologies
s.techNames = techData.textdata.techInputData(2,3:end); %Technology names
%Technology variables
s.numTech = size(techData.data.techInputData(1,:),2);
s.techNames = techData.textdata.techInputData(2,3:end);
s.techNamesLegend = s.techNames;
%Sector variables
s.sectorNames = techData.textdata.techInputData(125:135,2)';
s.sectorNamesLegend = s.sectorNames;
%Fuel type variable
s.fuelNames = techData.textdata.techInputData(136:142,2)';
%Feedstock variables
f.residueNames = techData.textdata.biomassResPot(2:f.numResidue+1,1)';
f.numCrop = size(techData.data.feedstockInputData(1,1:end),2);
f.cropNames = techData.textdata.feedstockInputData(1,3:f.numCrop+2);
f.cat = 3;
f.cropNames = techData.textdata.feedstockInputData(1,3:f.numCrop+2);
f.cat = 3; %For dividing e.g. biomass types into 3 equal shares with different prices
f.numPowerSource = 2;
f.powerNames = {'PowerMix','PowerRes'};
%
f.feedNames = [f.cropNames f.residueNames f.powerNames];
%% Definition of Input Data s= Technology specific f=feedstock specific
%Discount rate
%General variables
s.inflation = 0;
s.plantPayBackTime = 20;
s.dieselCostStart = 0.9; %/l
......@@ -58,21 +61,34 @@ s.year = linspace(2020,2050,s.runTime);
s.hourYear = linspace(1,8760,8760);
s.dayYear = linspace(1,365,365);
%% Set parameters for power sector
%How many time steps within each year - up to 8760 possible (heavy on run-time)
g.timeStepsIntraYear = 1:50;
%Set parameters for power sector
g.timeStepsIntraYear = 1:50; %up to 8760 possible (heavy on run-time)
%Onshore wind capacity [GW] from start year to end year in 5-year steps
s.onShore = round(linspace(s.windOnShoreInit,s.windOnShoreEnd,7));
s.onShore = round(linspace(s.windOnShoreInit,s.windOnShoreEnd,7)); %GW capacity from start year to end year in 5-year steps
%Offshore
s.offShore = round(linspace(s.windOffShoreInit,s.windOffShoreEnd,7)); %GW
%Photovoltaics
s.photoV = round(linspace(s.solarPVInit,s.solarPVEnd,7)); %GW
%Power demand total for a year
s.demandPower = round(linspace(s.demandPowerInit,s.demandPowerEnd,7)); %GW
%Power storage effect
s.powerStorage = linspace(s.powerStorageInit,s.powerStorageEnd,7); %GW
%Power storage capacity
s.powerStorageMax = linspace(s.powerStorageMaxInit,s.powerStorageMaxEnd,7); %GWh
%Capacity factor development
s.capFacPV = linspace(s.capFacPVInit,s.capFacPVEnd,7)./8760; %fraction of time - C_f
s.capFacWindOnShore = linspace(s.capFacWindOnShoreInit,s.capFacWindOnShoreEnd,7)./8760; %fraction of time - C_f
s.capFacWindOffShore = linspace(s.capFacWindOffShoreInit,s.capFacWindOffShoreEnd,7)./8760; %fraction of time - C_f
%Scaling wind on- and offshore and PV generation accd. to capacity factor
for i=1:7
[s.PVgenScaled(i,:),s.PVcapFacInst(i,:)] = ...
scalingCapFacVRE(s.PVcap,s.PVgen,s.capFacPV(i));
......@@ -88,19 +104,19 @@ g.landMax = 10^6.*linspace(g.landUseInit,g.landUseEnd,s.
%Set restrictions for fuel types in sectors
%--Hydrogen
g.H2maxShipping = linspace(0,0.1,s.runTime); %Share of market
g.H2maxGoods = linspace(0,0.3,s.runTime); %Share of market
g.H2maxAviation = linspace(0,0.1,s.runTime); %Share of market
g.H2maxShipping = linspace(0,0.1,s.runTime); %Share of market
g.H2maxGoods = linspace(0,0.3,s.runTime); %Share of market
g.H2maxAviation = linspace(0,0.1,s.runTime); %Share of market
%--Methane
g.CH4maxLand = linspace(0,0,s.runTime); %Share of market
g.CH4maxShipping = linspace(0,0,s.runTime); %Share of market
g.CH4maxGoods = linspace(0,0.3,s.runTime); %Share of market
g.CH4maxGoods = linspace(0,0.3,s.runTime); %Share of market
%--Liquefied Methane
g.LCH4maxLand = linspace(0,0,s.runTime); %Share of market
g.LCH4maxShipping = linspace(0,0.3,s.runTime); %Share of market
g.LCH4maxGoods = linspace(0,0.3,s.runTime); %Share of market
g.LCH4maxShipping = linspace(0,0.3,s.runTime); %Share of market
g.LCH4maxGoods = linspace(0,0.3,s.runTime); %Share of market
%Set input CO2 limitations, price and GHG reference for CO2 usage
s.co2source = linspace(60,60,s.runTime);
......
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