Power Flow algorithm #172
-
Dr. Cui, Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 23 comments 18 replies
-
Hi, ANDES uses the unified. AC and DC devices are solved simultaneously based on the power injection formulation. |
Beta Was this translation helpful? Give feedback.
-
Dr. Cui, Best regards """line commutated converter models""" from andes.models.dcbase import ACDC2Term class LCC(ACDC2Term):
整流器方程
逆变器方程
线路方程
控制方程:
|
Beta Was this translation helpful? Give feedback.
-
After i run a case, i get the following error: C:\Users\Administrator.andes\pycode\LCC.py:13: RuntimeWarning: invalid value encountered in true_divide |
Beta Was this translation helpful? Give feedback.
-
You might have errors in the equations. One issue with your implementation is that you will need to separate the power flow model from the time-domain model. That is, use the power flow results to initialize the dynamic model. Not sure if it is implemented this way as I only see one class. The error you are seeing is probably a division by zero. You can use a debugger to place breakpoints before entering the specific line in |
Beta Was this translation helpful? Give feedback.
-
Dr. Cui, self.ash = Algeb(info='voltage phase behind the transformer', Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi YaeSakura1, This is Jinning.
It will result in: |
Beta Was this translation helpful? Give feedback.
-
what does psh I print the mode_s0, mode_s1, mode_s2, mode_s3, and get |
Beta Was this translation helpful? Give feedback.
-
The mode indicators are used in the equation to construct piece-wise equations. |
Beta Was this translation helpful? Give feedback.
-
I notice that you consider the loss coefficient in but seems that it doesn't show up in the equation, how does it work? |
Beta Was this translation helpful? Give feedback.
-
It is lossless for now. Rsh and Xsh are the AC coupling impedance.
…On Sep 28, 2021, 11:38 PM -0500, YaeSakura1 ***@***.***>, wrote:
so this VSC model is considered lossless?
self.rsh = NumParam(default=0.0025, info="AC interface resistance", unit="ohm", z=True,tex_name='r_{sh}') self.xsh = NumParam(default=0.06, info="AC interface reactance", unit="ohm", z=True,tex_name='x_{sh}')
Is the rsh+jsh the internal VSC losses ? In Federico Milano’s book (Power System Modelling and Scripting)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
In VSC , the dc voltage droop control is also not implemented.
Is the psh |
Beta Was this translation helpful? Give feedback.
-
Did you write the code above? It is different from what ANDES has in self.qsh = Algeb(info='reactive power injection into VSC',
tex_name="Q_{sh}",
v_str='q0 * (mode_s0 + mode_s2)',
e_str='u * (mode_s0 + mode_s2) * (q0 - qsh) + '
'u * (mode_s1 + mode_s3) * (v0 - v)',
diag_eps=True,
) Take this as an example, since Control method: 0-PQ, 1-PV, 2-vQ or 3-vV, Please take a look the piecewise equation and consider the mode as 0/1 variables to enable only one part of the equation. |
Beta Was this translation helpful? Give feedback.
-
Yes. That is correct.
…On Oct 8, 2021, 10:05 PM -0500, YaeSakura1 ***@***.***>, wrote:
so the psh under vQ control mode , equation is v1-v2-vdc0 ,is that right?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
How do I look the Jacobian matrix after pflow? |
Beta Was this translation helpful? Give feedback.
-
Hi @YaeSakura1 . Sorry but I will not be able to answer your questions if they have already been answered in the manual. See https://docs.andes.app/en/stable/modeling.html#dae-storage for the Jacobian storage. |
Beta Was this translation helpful? Give feedback.
-
Hi,Dr. Cui, |
Beta Was this translation helpful? Give feedback.
-
Why does VSCShunt not have |
Beta Was this translation helpful? Give feedback.
-
There are multiple ways to do it. You can create a pull request to merge my master into your fork. See this link and related ones https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
Regards,
Hantao Cui
…On Nov 15, 2021, 11:10 AM -0600, YaeSakura1 ***@***.***>, wrote:
Thank you very much!
How do I update your master branch to my branch?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
You can do a `git pull` after merging the PR, assume you are on the same branch.
You might want to take a tutorial of Git and GitHub as these are general questions.
Regards,
Hantao Cui
…On Nov 15, 2021, 11:43 AM -0600, YaeSakura1 ***@***.***>, wrote:
thank you!
also, how do I update my local files
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
why i run the
please help! |
Beta Was this translation helpful? Give feedback.
-
What does the last few lines of vscshunt.py mean? |
Beta Was this translation helpful? Give feedback.
-
Will master slave control and dc voltage droop control be added in the future? |
Beta Was this translation helpful? Give feedback.
Hi,
ANDES uses the unified. AC and DC devices are solved simultaneously based on the power injection formulation.