Skip to content

How can I see the injected active and reactive power at a specific node? #471

Answered by jinningwang
cqss11 asked this question in Q&A
Discussion options

You must be logged in to vote

Here, a further clarified example is attached, Power Injection.pdf

The pert.py code is excerpted below:

def pert(t, system):
    """
    Demonstration of perturbation function.

    This file should be applied to built-in IEEE 14-bus
    case "ieee14/ieee14_full.xlsx".

    In the given case, `Line` "Line_1" and "Line_2" are
    connected to `Bus` "1" through parameter `bus1`,
    and line injected active power is inspected through
    `Line.a1.e`.
    """
    Pinj_line = system.Line.get(src='a1', attr='e',
                                idx=['Line_1', 'Line_2'])
    print(f"t={t:.5f}, pinj_line={Pinj_line.sum():.5f}")

Replies: 6 comments 22 replies

Comment options

You must be logged in to vote
2 replies
@cqss11
Comment options

@jinningwang
Comment options

Comment options

You must be logged in to vote
1 reply
@jinningwang
Comment options

Comment options

You must be logged in to vote
3 replies
@cuihantao
Comment options

@jinningwang
Comment options

@cuihantao
Comment options

Comment options

You must be logged in to vote
12 replies
@MuaYoi
Comment options

@jinningwang
Comment options

@MuaYoi
Comment options

@jinningwang
Comment options

@MuaYoi
Comment options

Answer selected by jinningwang
Comment options

You must be logged in to vote
3 replies
@MuaYoi
Comment options

@jinningwang
Comment options

@MuaYoi
Comment options

Comment options

You must be logged in to vote
1 reply
@MuaYoi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants