-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from manuGil/dev+models
Models with time shifts
- Loading branch information
Showing
12 changed files
with
144 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from illuminator.engine import Simulation | ||
|
||
sim = Simulation('examples/adder_copy.yaml') | ||
|
||
sim.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
scenario: | ||
name: "SimpleTest" # in mosaik so called world | ||
start_time: '2012-01-01 00:00:00' # ISO 8601 start time of the simulation | ||
end_time: '2012-01-01 01:00:00' # duration in seconds | ||
time_resolution: 900 # time step in seconds (optional). Defaults to 15 minutes (900 s) | ||
models: # list of models for the energy network | ||
- name: CSVB # name for the model (must be unique) | ||
type: CSV # name of the model registered in the Illuminator | ||
parameters: # a CSV model must have a start time and a file as parameters | ||
start: '2012-01-01 00:00:00' # ISO 8601 start time of the simulation | ||
datafile: './tests/data/solar-sample.csv' # path to the file with the data | ||
- name: PV | ||
type: PvAdapter # models can reuse the same type | ||
inputs: | ||
G_Gh: null # are meant to ovewrite initial values | ||
G_Dh: null | ||
G_Bn: null | ||
Ta: null | ||
hs: null | ||
FF: null | ||
Az: null | ||
outputs: | ||
G_Gh: null | ||
connections: | ||
- from: CSVB.G_Gh # start model, pattern: model_name.output_name/input_name | ||
to: PV.G_Gh # end model | ||
- from: CSVB.G_Dh | ||
to: PV.G_Dh | ||
- from: CSVB.G_Bn | ||
to: PV.G_Bn | ||
- from: CSVB.Ta | ||
to: PV.Ta | ||
- from: CSVB.hs | ||
to: PV.hs | ||
- from: CSVB.FF | ||
to: PV.FF | ||
- from: CSVB.Az | ||
to: PV.Az | ||
monitor: | ||
file: './out_test2.csv' # optional with default, path to the results file for the scenario. This should be optional # a list of models, its inputs, output and states to be monitored and logged | ||
items: | ||
- PV.pv_gen | ||
- PV.G_Dh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.