README.md 2.31 KB
Newer Older
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
1
# TGGS Special Block Lecture about Smart Grid Technology
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
2
by the [Intitute for Automation of Complex Power Systems](http://www.acs.eonerc.rwth-aachen.de/cms/~dlkd/E-ON-ERC-ACS/?lidx=1)
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
3

Jan Dinkelbach's avatar
Jan Dinkelbach committed
4
## Introduction to Modelica with OMNotebook
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
5

Jan Dinkelbach's avatar
Jan Dinkelbach committed
6
7
8
9
1. Double click on the Home folder icon
2. Navigate to the folder `gits/tggs/omnotebook_exercise`
3. Double click on `rlc - Student.onb`
4. Now, you can start completing the OMNotebook.
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
10

Jan Dinkelbach's avatar
Jan Dinkelbach committed
11
12
13
**Note**: Each model must be initialized by executing each cell with `shift+enter`

## Grid Modeling and Simulation - CIMverter, ModPowerSystems and OMEdit
Jan Dinkelbach's avatar
Jan Dinkelbach committed
14

Jan Dinkelbach's avatar
Jan Dinkelbach committed
15
**Note**: You can copy the commands with `ctrl+C` and paste them in the terminal with `ctrl+shift+V`
Jan Dinkelbach's avatar
Jan Dinkelbach committed
16

Jan Dinkelbach's avatar
Jan Dinkelbach committed
17
18
### CIMverter usage
Open a new Terminal and enter
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
19
```bash
Jan Dinkelbach's avatar
Jan Dinkelbach committed
20
cd ~/gits/CIMverter/build/bin
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
21
22
23
```
to change into the proper directory of the [CIMverter](http://fein-aachen.org/projects/cimverter/).

Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
24
Then enter following command for the conversion of a sample grid in CIM to a Modelica system model file called `CIGRE.mo`:
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
25
```bash
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
26
27
./CIMverter -a ../../samples/CIGRE_MV_Rudion_With_LoadFlow_Results/ -o CIGRE
```
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
28
This CIGRE grid can be simulated by [OpenModelica](https://openmodelica.org/) based on the [ModPowerSystems](http://fein-aachen.org/projects/modpowersystems/) library:
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
29

Jan Dinkelbach's avatar
Jan Dinkelbach committed
30
### Simulation with OpenModelica
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
31
32
33
34
35
36
37
38
For simulating the generated `CIGRE.mo` grid:
1. Double click the `OMEdit` icon on the desktop
2. Choose `File -> Open Model/Library File(s)` from the menu
3. Starting from the home directory, choose the file `gits/modpowersystems/ModPowerSystems/package.mo`
4. Choose `File -> Open Model/Library File(s)` from the menu
5. Starting from the home directory, choose the generated file `gits/CIMverter/build/bin/CIGRE.mo`
6. Click on `CIGRÈ` in the left menu of OMEdit
7. Execute the simulation by choosing `Simulation -> Simulate` from the menu
39
40


Jan Dinkelbach's avatar
Jan Dinkelbach committed
41
### Further Insights
42
43

You can have a look into the CIM data with
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
44
```bash
Jan Dinkelbach's avatar
Jan Dinkelbach committed
45
cd ~/gits/CIMverter/samples/CIGRE_MV_Rudion_With_LoadFlow_Results/
Jan Dinkelbach's avatar
Jan Dinkelbach committed
46
mousepad Rootnet_FULL_NE_24J13h_EQ.xml
47
48
49
```

To see the templates which the CIMverter applies to obtain ModPowerSystems compatible models, go to
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
50
```bash
Jan Dinkelbach's avatar
Jan Dinkelbach committed
51
cd ~/gits/CIMverter/ModPowerSystems_templates/
52
53
54
```

You can view the system model template with
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
55
```bash
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
56
mousepad modelica.tpl
57
58
59
```

and a exemplary component model template with
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
60
```bash
Lukas Daniel Razik's avatar
Lukas Daniel Razik committed
61
mousepad Transformer.tpl
62
```
Jan Dinkelbach's avatar
Jan Dinkelbach committed
63
64
65
66
67
68



---

Last update: 24.08.2021