Comments (4)
ok :) that is actually that made me a confusion and I was no more sure what was correct. At least we found a tiny bug :)
thanks a lot once more...your software is really great, I'll definitely continues using it and may come back to you with some questions.
best regards
from gridcal.
Hi, thanks for the compliments!
I have just double checked, and the implementation makes sense as it is now.
To clarify the signs:
-
The current in a load in the interface is positive for load effect and negative for generation effect. This means that if I create a load of 10kA it should make the voltage drop, and if I enter a load of -10kA it should make the voltage raise.
-
Now under the hood, both power (
S
) and current (I
) are summed into theSbus
andIbus
arrays with negative sign, hence my 10kA load would be-10kA / (Vnominal * sqrt(3))
at theIbus
vector -
The
Ibus
vector (with presumably negative values for loads in it) is passed to the power flow algorithms.
Now in the Jacobian, where that formula belongs:Ibus = Ybus * V - I
. The Ibus from the Jacobian formula is expected to be positive, that is why I add the currents injection vector with negative sign.
I hope It is clear. Nevertheless, if you think there's an error, please let me know to fix it. My reasoning is that at the moment, the results make sense for the used signs.
from gridcal.
Hi, thank you for so detailed explanation!
ok, minus sign in Ibus = Ybus * V - I
is now clear, but still I don't get why in case of non-sparse Ymatrix you have + sign here ?
from gridcal.
A bug probably, I'll fix it now.
That part is a remaining from the MatPower code. Ybus
is always sparse in GridCal
from gridcal.
Related Issues (20)
- run error ‘optimal power flow’ HOT 4
- Issue - Overhead lines and importing profiles HOT 4
- Unable to run GridCal after installation HOT 23
- Numerical convergence HOT 2
- Transformer options HOT 5
- StateEstimation example does not run HOT 15
- Support option to intentionally disable numba HOT 8
- Overflow error HOT 1
- Unbalanced + multiple short circuit HOT 28
- continuation power flow failed to run HOT 3
- [FEATURE REQUEST] DC Power Flow (or even optimal power flow) HOT 11
- Error reading a CIM file HOT 4
- Miscellaneous stuff HOT 7
- XXX is not available HOT 2
- Python >= 3.8 HOT 2
- TypeError: unsupported operand type(s) in GridCal/Engine/Core/Compilers/circuit_to_data2.py:46 HOT 3
- Remove `np.int` support in GridCal HOT 1
- Import cause printing about `Bentayga`, `power grid model`, `Newton Power Analytics`
- result different from PowerWorld HOT 5
- Inductive constant impedance loads from .raw files HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridcal.