-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdss_template.dss
47 lines (33 loc) · 1.08 KB
/
dss_template.dss
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
! SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
!
! SPDX-License-Identifier: MPL-2.0
Clear
Set DefaultBaseFrequency={{ frequency }}
! source
New object=circuit.{{ source_name }} {% for k, v in source_dict.items() %} {{ k }}={{ v }} {% endfor -%}
!
! cable type
New LineCode.630Al nphases=3 r1=0.063 x1=0.103 r0=0.156 x0=0.1 c1=400.0 c0=660.0 Normamps=1000.0 Units=km
! Lines
{%- for name, dict in Line.items() %}
New Line.{{ name }} {% for k, v in dict.items() %} {{ k }}={{ v }} {% endfor -%}
{% endfor -%}
!
! LoadShapes
{%- for name, dict in LoadShape.items() %}
New LoadShape.{{ name }} {% for k, v in dict.items() %} {{ k }}={{ v }} {% endfor -%}
{% endfor -%}
!
! Loads
{%- for name, dict in Load.items() %}
New Load.{{ name }} {% for k, v in dict.items() %} {{ k }}={{ v }} {% endfor -%}
{% endfor -%}
!
! Monitors
{%- for name, dict in Monitor.items() %}
New Monitor.{{ name }} {% for k, v in dict.items() %} {{ k }}={{ v }} {% endfor -%}
{% endfor -%}
!
! Initial Configurations
Set VoltageBases = [{{ basekv }}]
CalcVoltageBases