Skip to content

Question about VSG parameters change during the TDS #452

Answered by cuihantao
xiaoheimai95 asked this question in Q&A
Discussion options

You must be logged in to vote

Altering D should work as expected.

Altering M will not take effect in the current version. It is due to how time constants associated with differential equations are processed. You can tell from https://docs.andes.app/en/latest/groupdoc/RenGen.html#id16 that M is the time constant on the left side of differential equations T x' = f(x, y).

At the very beginning of simulations, left-hand-side time constants of differential equations are arranged into dae.Tf. To modify M, for now, you can do it in two steps:

First, do

ss.REGCV1.alter('M', REGCV1_10, 2)

to alter the value and store its per-unit value in ss.REGCV1.M.v.

Next, modify dae.Tf:

ss.dae.Tf[ss.REGCV1.dw.a] = ss.REGCV1.M.v

Edit: index

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@xiaoheimai95
Comment options

@cuihantao
Comment options

@xiaoheimai95
Comment options

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