forked from Energy-Storage-and-Transport/EST-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreprocessing.m
More file actions
43 lines (29 loc) · 1.15 KB
/
Copy pathpreprocessing.m
File metadata and controls
43 lines (29 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Pre-processing script for the EST Simulink model. This script is invoked
% before the Simulink model starts running (initFcn callback function).
%% Load the supply and demand data
timeUnit = 's';
supplyFile = 'data/Team07_supply.csv';
supplyUnit = "MW";
% load the supply data
Supply = loadSupplyData(supplyFile, timeUnit, supplyUnit);
demandFile = 'data/Team07_demand.csv';
demandUnit = "MW";
% load the demand data
Demand = loadDemandData(demandFile, timeUnit, demandUnit);
%% Simulation settings
deltat = 5*unit("min");
stopt = min([Supply.Timeinfo.End, Demand.Timeinfo.End]);
%% System parameters
% transport from supply
aSupplyTransport = 0.01; % Dissipation coefficient
% injection system
aInjection = 0.1; % Dissipation coefficient
% storage system
EStorageMax = 10.*unit("MWh"); % Maximum energy
EStorageMin = 0.0*unit("MWh"); % Minimum energy
EStorageInitial = 2.0*unit("MWh"); % Initial energy
bStorage = 1e-6/unit("s"); % Storage dissipation coefficient
% extraction system
aExtraction = 0.1; % Dissipation coefficient
% transport to demand
aDemandTransport = 0.01; % Dissipation coefficient