-
Notifications
You must be signed in to change notification settings - Fork 5
/
config-template.conf
384 lines (346 loc) · 11.5 KB
/
config-template.conf
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
#@define
VoltLvlConfig {
id: string # identifier of the voltage level
vNom: string # nominal voltage, expl.: 10 kV
}
#@define
RefSystemConfig {
sNom: string # Nominal power, expl.: 600 kVA
vNom: string # Nominal voltage, expl.: 0.4 kV
#@optional
voltLvls: [VoltLvlConfig] # Voltage levels to apply to
#@optional
gridIds: [string] # Sub grid numbers to apply to, expl.: 1,2,4..10
}
#@define abstract extends !java.io.Serializable
BaseRuntimeConfig {
uuids: [string] # Unique id to identify the system participant models this config applies for
scaling: double # General scaling factor of the system participant model
calculateMissingReactivePowerWithModel: boolean # When receiving primary data: Fill up with 0 or model func
}
#@define extends BaseRuntimeConfig
LoadRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig
modelBehaviour: string # How the model behaves. Possible values: fix, profile, random
reference: string # Scaling reference for the load model. Possible values: power, energy
}
#@define extends BaseRuntimeConfig
FixedFeedInRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise FixedFeedInRuntimeConfig is handled as String
}
#@define extends BaseRuntimeConfig
PvRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise PvRuntimeConfig is handled as String
}
#@define extends BaseRuntimeConfig
WecRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise WecRuntimeConfig is handled as String
}
#@define extends BaseRuntimeConfig
EvcsRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise EvcsRuntimeConfig is handled as String
chargingStrategy: String | "maxPower" # can be one of maxPower, constantPower, gridOrientedScheduling or marketOrientedScheduling
lowestEvSoc: Double | 0.2 # Defines the lowest possible state of charge (SoC) that an EV is allowed to uncharge in vehicle to grid (V2G) mode
}
#@define extends BaseRuntimeConfig
StorageRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise StorageRuntimeConfig is handled as String
initialSoc: Double | 0 # Defines initial soc of storages as a share of capacity, 0-1
#@optional
targetSoc: Double
}
#@define extends BaseRuntimeConfig
EmRuntimeConfig {
# # # # #
# ATTENTION: calculateMissingReactivePowerWithModel and scaling is ignored here.
# Cleaner solution is possible with different config framework.
# # # # #
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise EmRuntimeConfig is handled as String
curtailRegenerative: Boolean | false
aggregateFlex: String | "SELF_OPT_EXCL_REG"
}
#@define extends BaseRuntimeConfig
HpRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise HpRuntimeConfig is handled as String
}
#@define abstract
CsvParams {
directoryPath: "string"
isHierarchic: "boolean"
csvSep: "string"
}
#@define extends CsvParams
BaseCsvParams {
base: CsvParams
}
#@define extends CsvParams
PrimaryDataCsvParams {
base: CsvParams
timePattern: string | "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]X" # default pattern from PSDM:TimeBasedSimpleValueFactory
}
#@define abstract
KafkaParams {
runId: string
bootstrapServers: string
schemaRegistryUrl: string
linger: int // in ms
}
#@define extends KafkaParams
ResultKafkaParams {
base: KafkaParams
topicNodeRes = string
}
#@define extends KafkaParams
RuntimeKafkaParams {
base: KafkaParams
topic = string
}
#@define abstract
BaseOutputConfig {
notifier: string # Result event notifier
simulationResult: boolean # Inform listeners about new simulation result
}
#@define extends BaseOutputConfig
SimpleOutputConfig {
base: BaseOutputConfig
}
#@define extends BaseOutputConfig
ParticipantBaseOutputConfig {
base: BaseOutputConfig
powerRequestReply: boolean # Inform listeners about power request replies
flexResult: boolean | false
}
#@define
GridOutputConfig {
notifier: string # Result event notifier
nodes: boolean | false
lines: boolean | false
switches: boolean | false
transformers2w: boolean | false
transformers3w: boolean | false
}
#@define
TransformerControlGroup {
measurements: [string]
transformers: [string]
vMax: Double
vMin: Double
}
##################################################################
# Agentsim
##################################################################
simona.simulationName = "string"
simona.time.startDateTime = "2011-05-01T00:00:00Z"
simona.time.endDateTime = "2011-05-01T01:00:00Z"
#@optional
simona.time.schedulerReadyCheckWindow = int
##################################################################
# Input Parameters
##################################################################
simona.input.primary = {
#@optional
csvParams = PrimaryDataCsvParams
#@optional
influxDb1xParams = {
url: string
port: Int
database: string
timePattern: string | "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]X" # default pattern from PSDM:TimeBasedSimpleValueFactory
}
#@optional
sqlParams = {
jdbcUrl: string
userName: string
password: string
schemaName: string | "public"
timePattern: string | "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]X" # default pattern from PSDM:TimeBasedSimpleValueFactory
}
#@optional
couchbaseParams = {
url: string
bucketName: string
userName: string
password: string
coordinateColumnName: string
keyPrefix: string
timePattern: string | "yyyy-MM-dd'T'HH:mm:ss[.S[S][S]]X" # default pattern from PSDM:TimeBasedSimpleValueFactory
}
}
simona.input.grid.datasource.id = "string"
#@optional
simona.input.grid.datasource.csvParams = BaseCsvParams
simona.input.weather.datasource = {
scheme = "string" | "icon" # Describes the scheme, in which the data comes. Permissible values : icon, cosmo
#@optional
sampleParams = {
use: "boolean" | true # dummy parameter to allow sample data
}
#@optional
timestampPattern = string
#@optional
resolution = long
maxCoordinateDistance = double | 50000
#@optional
csvParams = BaseCsvParams
#@optional
influxDb1xParams = {
url: string
port: Int
database: string
}
#@optional
sqlParams = {
jdbcUrl: string
userName: string
password: string
tableName: string
schemaName: string | "public"
}
#@optional
couchbaseParams = {
url: string
bucketName: string
userName: string
password: string
coordinateColumnName: string
keyPrefix: string
}
coordinateSource = {
gridModel = "string" | "icon"
#@optional
csvParams = BaseCsvParams
#@optional
sampleParams = {
use: "boolean" | true # dummy parameter to allow sample data
}
#@optional
sqlParams = {
jdbcUrl: string
userName: string
password: string
tableName: string
schemaName: string | "public"
}
}
}
##################################################################
# Output Parameters
##################################################################
simona.output.base {
dir = string
addTimestampToOutputDir = true
}
#@optional
simona.output.sink.csv {
fileFormat = ".csv"
isHierarchic = Boolean | false
filePrefix = ""
fileSuffix = ""
compressOutputs = "Boolean" | false
}
#@optional
simona.output.sink.influxDb1x {
url = string
port = Int
database = string
}
#@optional
simona.output.sink.kafka = ResultKafkaParams
simona.output.grid = GridOutputConfig
simona.output.participant = {
defaultConfig = ParticipantBaseOutputConfig
individualConfigs = [ParticipantBaseOutputConfig]
}
simona.output.thermal = {
defaultConfig = SimpleOutputConfig
individualConfigs = [SimpleOutputConfig]
}
simona.output.flex = Boolean | false
simona.output.log.level = String | "INFO"
##################################################################
# Runtime Configuration // todo refactor as this naming is misleading
##################################################################
#@optional
simona.runtime.selected_subgrids = [int] // todo convert this into a list of objects with startId, endId to allow for ranges and multiple ranges
#@optional
simona.runtime.selected_volt_lvls = [VoltLvlConfig]
simona.runtime.listener = {
#@optional
eventsToProcess = [string]
#@optional
kafka = RuntimeKafkaParams
}
simona.runtime.participant = {
requestVoltageDeviationThreshold = "double | 1E-14" # Nodal voltages deviating more than this between requests in the same tick, are considered being different
load = {
defaultConfig = LoadRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [LoadRuntimeConfig]
}
pv = {
defaultConfig = PvRuntimeConfig
individualConfigs = [PvRuntimeConfig]
}
fixedFeedIn = {
defaultConfig = FixedFeedInRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [FixedFeedInRuntimeConfig]
}
wec = {
defaultConfig = WecRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [WecRuntimeConfig]
}
evcs = {
defaultConfig = EvcsRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [EvcsRuntimeConfig]
}
hp = {
defaultConfig = HpRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [HpRuntimeConfig]
}
storage = {
defaultConfig = StorageRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [StorageRuntimeConfig]
}
em = {
defaultConfig = EmRuntimeConfig # Mandatory default config (uuids are ignored, best provide "default")
individualConfigs = [EmRuntimeConfig]
}
}
##################################################################
# Power Flow Configuration
##################################################################
simona.powerflow.maxSweepPowerDeviation = Double // the maximum allowed deviation in power between two sweeps, before overall convergence is assumed
simona.powerflow.sweepTimeout = "duration:seconds | 30 seconds" // maximum timeout for a sweep
simona.powerflow.newtonraphson.epsilon = [Double]
simona.powerflow.newtonraphson.iterations = Int
simona.powerflow.resolution = "duration:seconds | 1 hour"
simona.powerflow.stopOnFailure = boolean | false
##################################################################
# Grid Configuration
##################################################################
#@optional
simona.gridConfig.refSystems = [RefSystemConfig]
##################################################################
# Event Configuration
##################################################################
#@optional
simona.event.listener = [
{
fullClassPath = string
#@optional
eventsToProcess = [string]
}
]
##################################################################
# Configuration of Control Schemes
##################################################################
#@optional
simona.control = {
transformer = [TransformerControlGroup]
}