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

Division by zero in PowerSystems.Examples.AC3ph.Generation.Islanding #54

Open
maltelenz opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@maltelenz
Copy link

The Islanding example:

PowerSystems.AC3ph.Generation.TurboPMgenerator turboGen(
redeclare model Governor = PowerSystems.Control.Governors.Governor1st
"1st order",
redeclare model Generator = PowerSystems.AC3ph.Machines.Synchron_pm (
redeclare record Data =
PowerSystems.Examples.Data.Machines.Synchron_pm560V_100kVA)
"nth order")

has a division by zero problem.

Through a series of extends, we end up in PowerSystems.AC3ph.Machines.Partials.SynchronBase, specifically this line:

v_f = v_rd[1]/c.wf;

In this context, c.wf is 0. It is computed here:

c.wf := omega_nom*c.L_md[1]*p.If_nom/p.V_nom;

In this context, p is PowerSystems.Examples.Data.Machines.Synchron_pm560V_100kVA, which has:

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