BODF Line numbering

30 views
Skip to first unread message

Angelina Bintoudi

unread,
Mar 30, 2021, 11:46:29 AM3/30/21
to pypsa

Dear PyPSA Community,

I am performing contingency analysis for meshed DC networks (named "mg" which are essentially DC microgrids and therefore each mg creates only one sub-network named "sun") via metrics that I wish to extract from BODF matrices, however, I am confused as to the interpretation of results.

To be more precise, BODF results are shown like this:

Annotation 2021-03-30 183559.png

However, in order to be sure about which branch we are talking about, I need to know the correlation between the index/columns of BODF and the actual naming that I have given to my network.

I attempted on assigning the indexes of the mg.lines.index on the BODF matrix but I am not sure if there is a one-to-one correlation. For example:

Annotation 2021-03-30 183559.png

in other words, the indexes/columns [0,1,2,3,...7] correspond to the ordering of the lines in the Network object [Line_1_2, Line_1_6 .... Line_5_6] (given the fact that I only have one Sub-network) ?

Thank you very much in advance for your time! Virtual cheers :D
All the best,
Angelina

Fabian Neumann

unread,
Mar 31, 2021, 3:49:52 AM3/31/21
to Angelina Bintoudi, pypsa
Hi Angelina,

to label the BODF matrix, you can do the following:

pd.DataFrame(sun.BODF, index=sun.branches_i(), columns=sun.branches_i())

The function branches_i() lists Transformers and Lines in the correct
ordering.

Best wishes,

Fabian N

On 30/03/2021 17:46, Angelina Bintoudi wrote:
>
> Dear PyPSA Community,
>
> I am performing contingency analysis for meshed DC networks (named "mg"
> which are essentially DC microgrids and therefore each mg creates only
> one sub-network named "sun") via metrics that I wish to extract from
> BODF matrices, however, I am confused as to the interpretation of results.
>
> To be more precise, BODF results are shown like this:
>
> Annotation 2021-03-30 183559.png
>
> However, in order to be sure about which branch we are talking about, I
> need to know the correlation between the index/columns of BODF and the
> actual naming that I have given to my network.
>
> I attempted on assigning the indexes of the /mg.lines.index/ on the BODF
> matrix but I am not sure if there is a one-to-one correlation. For example:
>
> Annotation 2021-03-30 183559.png
>
> in other words, the indexes/columns *[0,1,2,3,...7] correspond to the
> ordering of the lines *in the Network object *[Line_1_2, Line_1_6 ....
> Line_5_6] *(given the fact that I only have one Sub-network) ?
>
> Thank you very much in advance for your time! Virtual cheers :D
> All the best,
> Angelina
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pypsa+un...@googlegroups.com
> <mailto:pypsa+un...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/pypsa/c3e77ad6-557d-4f6f-9d25-a589b6d588c9n%40googlegroups.com
> <https://groups.google.com/d/msgid/pypsa/c3e77ad6-557d-4f6f-9d25-a589b6d588c9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Angelina Bintoudi

unread,
Mar 31, 2021, 3:53:52 AM3/31/21
to Fabian Neumann, pypsa
Dear Fabian,

Thank you so SOOOOOO MUCH!!!
PyPSA crew will be in the thank you note on my PhD dissertation :D

Have a lovely day everyone!
All the best,
Angelina

´¯`·.¸¸.·´¯`·.¸><((((º>
`·.¸¸..·´¯`·.¸¸.·´¯`·.¸><((((º>

Reply all
Reply to author
Forward
0 new messages