Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow initialisation of p_inj and q_inj in SP_NetworkInjection #309

Open
martinmoraga opened this issue Jun 21, 2024 · 0 comments
Open

Allow initialisation of p_inj and q_inj in SP_NetworkInjection #309

martinmoraga opened this issue Jun 21, 2024 · 0 comments

Comments

@martinmoraga
Copy link
Contributor

martinmoraga commented Jun 21, 2024

Currently, it is not possible to initialise the active and reactive power of the NetworkInjection class for powerflow simulations.

This could be solved by adding the line:

sol_Q(pv->matrixNodeIndex()) += extnet->attributeTyped<CPS::Real>("q_inj")->get() / mBaseApparentPower;

in

} else if (std::shared_ptr<CPS::SP::Ph1::NetworkInjection> extnet =

@martinmoraga martinmoraga changed the title Allow initialisation of p_inj and q_inj in SP_NetworkInjection type PV Node Allow initialisation of p_inj and q_inj in SP_NetworkInjection Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant