Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pyvolt-Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sreejith Pananchickal Sajeev
Pyvolt-Docker
Commits
3e44faf2
Commit
3e44faf2
authored
2 months ago
by
Taeyoung Kim
Browse files
Options
Downloads
Patches
Plain Diff
changing network.py to extract line length
Signed-off-by:
Taeyoung Kim
<
taeyoung.kim@eonerc.rwth-aachen.de
>
parent
29f5fc46
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/quickstart/run_nv_powerflow.log
+1
-1
1 addition, 1 deletion
examples/quickstart/run_nv_powerflow.log
pyvolt/export.py
+1
-1
1 addition, 1 deletion
pyvolt/export.py
pyvolt/network.py
+3
-2
3 additions, 2 deletions
pyvolt/network.py
run_nv_powerflow.log
+1
-1
1 addition, 1 deletion
run_nv_powerflow.log
with
6 additions
and
5 deletions
examples/quickstart/run_nv_powerflow.log
+
1
−
1
View file @
3e44faf2
...
...
@@ -76,7 +76,7 @@ INFO:cimpy.cimimport:CIM object Line created : 11 times
INFO:cimpy.cimimport:CIM object SubGeographicalRegion created : 2 times
INFO:cimpy.cimimport:CIM object BusbarSection created : 13 times
INFO:cimpy.cimimport:CIM object TopologicalIsland created : 2 times
INFO:cimpy.cimimport:Created totally 275 CIM objects in 0.02
504444122314453
s
INFO:cimpy.cimimport:Created totally 275 CIM objects in 0.02
340245246887207
s
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
...
...
This diff is collapsed.
Click to expand it.
pyvolt/export.py
+
1
−
1
View file @
3e44faf2
...
...
@@ -597,7 +597,7 @@ class PandapowerWork(Exporter):
length_km
=
1
,
r_ohm_per_km
=
branch
[
'
r
'
],
x_ohm_per_km
=
branch
[
'
x
'
],
c_nf_per_km
=
branch
[
'
c
'
]
*
(
1e
6
),
c_nf_per_km
=
branch
[
'
c
'
]
*
(
1e
3
),
name
=
lcl_name
,
max_i_ka
=
branch
[
'
base_current
'
])
...
...
This diff is collapsed.
Click to expand it.
pyvolt/network.py
+
3
−
2
View file @
3e44faf2
...
...
@@ -40,7 +40,7 @@ class Node():
class
Branch
():
def
__init__
(
self
,
uuid
=
''
,
r
=
0.0
,
x
=
0.0
,
start_node
=
None
,
end_node
=
None
,
base_voltage
=
1.0
,
base_apparent_power
=
1.0
):
base_voltage
=
1.0
,
base_apparent_power
=
1.0
,
length
=
0.0
):
self
.
uuid
=
uuid
self
.
baseVoltage
=
base_voltage
self
.
base_apparent_power
=
base_apparent_power
...
...
@@ -56,6 +56,7 @@ class Branch():
self
.
x_pu
=
x
/
self
.
base_impedance
self
.
z_pu
=
self
.
r_pu
+
1j
*
self
.
x_pu
self
.
y_pu
=
1
/
self
.
z_pu
if
(
self
.
z_pu
!=
0
)
else
float
(
"
inf
"
)
self
.
length
=
length
def
__str__
(
self
):
string
=
'
class=Branch
\n
'
...
...
@@ -223,7 +224,7 @@ class System():
base_voltage
=
ACLineSegment
.
BaseVoltage
.
nominalVoltage
self
.
branches
.
append
(
Branch
(
uuid
=
uuid_ACLineSegment
,
r
=
ACLineSegment
.
r
,
x
=
ACLineSegment
.
x
,
start_node
=
start_node
,
end_node
=
end_node
,
base_voltage
=
base_voltage
,
base_apparent_power
=
base_apparent_power
))
base_voltage
=
base_voltage
,
base_apparent_power
=
base_apparent_power
,
length
=
ACLineSegment
.
length
))
#create branches type powerTransformer
for
power_transformer
in
list_PowerTransformer
:
...
...
This diff is collapsed.
Click to expand it.
run_nv_powerflow.log
+
1
−
1
View file @
3e44faf2
...
...
@@ -76,6 +76,6 @@ INFO:cimpy.cimimport:CIM object Line created : 11 times
INFO:cimpy.cimimport:CIM object SubGeographicalRegion created : 2 times
INFO:cimpy.cimimport:CIM object BusbarSection created : 13 times
INFO:cimpy.cimimport:CIM object TopologicalIsland created : 2 times
INFO:cimpy.cimimport:Created totally 275 CIM objects in 0.0
4641366004943848
s
INFO:cimpy.cimimport:Created totally 275 CIM objects in 0.0
38202524185180664
s
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment