Skip to content

Commit

Permalink
dcline documentation, technical report
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurner committed Jan 11, 2017
1 parent 1da477a commit 43f0f54
Show file tree
Hide file tree
Showing 18 changed files with 437 additions and 227 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Change Log
=============

unreleased
[1.1.0] - 2017-01-11
----------------------
- [ADDED] impedance element can now be used with unsymetric impedances zij != zji
- [ADDED] dcline element that allows modelling DC lines in PF and OPF
Expand Down
2 changes: 1 addition & 1 deletion doc/about/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ The loadflow result for the exact same network are now compared in pandapower an
and transformer results:

.. image:: ../pics/validation/validation_trafo.png
:width: 60em
:width: 40em
:align: center

match within the margins defined above.
Expand Down
4 changes: 3 additions & 1 deletion doc/about_latex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Operation at the Fraunhofer Institute for Wind Energy and Energy System Technolo
:maxdepth: 1

about/what
about/introduction
about/contributions
getting_started/introduction
about/units
about/tests
about/changelog
about/license


Expand Down
2 changes: 1 addition & 1 deletion doc/converter/matpower.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
==============
Matpower
MATPOWER
==============

.. _converter_matpower:
Expand Down
2 changes: 1 addition & 1 deletion doc/converter/pypower.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
==================
Pypower
PYPOWER
==================

.. _converter_pypower:
Expand Down
39 changes: 31 additions & 8 deletions doc/elements/dcline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,31 @@ Input Parameters
Electric Model
=================

Generators are modelled as PV-nodes in the power flow:
A DC line is modelled as two generators in the loadflow:

.. image:: gen.png
:width: 12em
.. image:: dcline1.png
:width: 20em
:alt: alternate Text
:align: center

Voltage magnitude and active power are defined by the input parameters in the generator table:
.. image:: dcline2.png
:width: 20em
:alt: alternate Text
:align: center

The active power at the from side is defined by the parameters in the dcline table. The active power at the to side is equal to the active power on the from side minus the losses of the DC line.

.. math::
:nowrap:
\begin{align*}
P_{gen} &= p\_kw * scaling \\
v_{bus} &= vm\_pu
\end{align*}
P_{from} &= p\_kw \\
P_{to} &= - (p\_kw - loss\_kw) \cdot (1 - \frac{loss\_percent}{100})
\end{align*}
The voltage control with reactive power works just as described for the generator model. Maximum and Minimum reactive power limits are considered in the OPF, and in the PF if it is run with enforce_q_lims=True.

Result Parameters
==========================
*net.res_dcline*
Expand All @@ -60,4 +68,19 @@ Result Parameters
.. csv-table::
:file: dcline_res.csv
:delim: ;
:widths: 10, 10, 50
:widths: 10, 10, 50

.. math::
:nowrap:
\begin{align*}
p\_from\_kw &= P_{from} \\
p\_to\_kw &= P_{to} \\
pl\_kw &= p\_from\_kw + p\_to\_kw \\
q\_from\_kvar &= Q_{from} \\
q\_to\_kvar &= Q_{to} \\
va\_from\_degree &= \angle \underline{v}_{from} \\
va\_to\_degree &= \angle \underline{v}_{to} \\
vm\_from\_degree &= |\underline{v}_{from}| \\
vm\_to\_degree &= |\underline{v}_{to}| \\
\end{align*}
Binary file added doc/elements/dcline1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 35 additions & 89 deletions tutorials/opf/example_opf _dc.sxe.bak → doc/elements/dcline1.sxe

Large diffs are not rendered by default.

Binary file added doc/elements/dcline2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
195 changes: 195 additions & 0 deletions doc/elements/dcline2.sxe

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion doc/elements/gen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ The power flow returns reactive generator power and generator voltage angle:
\begin{align*}
p\_kw &= P_{gen} \\
q\_kvar &= Q_{gen} \\
va\_degree &= \angle \underline{v}_{bus}
va\_degree &= \angle \underline{v}_{bus} \\
vm\_degree &= |\underline{v}_{bus}|
\end{align*}
Expand Down
8 changes: 4 additions & 4 deletions doc/file_io.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. _file_io:

########################
========================
Save and Load Networks
########################
========================

pandapower networks can be saved and loaded using the pickle library or with an excel file.

Expand All @@ -17,15 +17,15 @@ Even though the relevant information is conserved, the process is not as robust


pickle
=======================================
-----------

.. autofunction:: pandapower.to_pickle

.. autofunction:: pandapower.from_pickle


Excel
=======================================
-----------

.. autofunction:: pandapower.to_excel

Expand Down
Binary file modified doc/getting_started/pandapower.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/std_types.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. _std_types:

##########################
=========================
Standard Type Libraries
##########################
==========================

Lines and transformers have two different categories of parameters: parameter that depend on the specific element (like the length of a line or the bus to which a transformer is connected to etc.) and parameter that only
depend on the type of line or transformer which is used (like the rated power of a transformer or the resistance per kilometer line).
Expand Down
2 changes: 1 addition & 1 deletion pandapower/test/consistency_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def runpp_with_consistency_checks(net, **kwargs):
consistency_checks(net)
return True

def consistency_checks(net, rtol):
def consistency_checks(net, rtol=1e-5):
indices_consistent(net)
branch_loss_consistent_with_bus_feed_in(net, rtol)
element_power_consistent_with_bus_power(net, rtol)
Expand Down
Loading

0 comments on commit 43f0f54

Please sign in to comment.