Ask Your Question
0

How to Make the Reference Value of REGFM_A1 Follow a Custom Setpoint?

asked 2025-05-19 02:10:02 -0500

anonymous user

Anonymous

Hi everyone, I'm currently testing the REGFM_A1 model. I would like to control the reference values of active power, reactive power, and voltage so that they follow my own predefined setpoint curves. How can I achieve this?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2025-05-20 02:51:03 -0500

perolofl gravatar image

You need to use a plant controller model.

edit flag offensive delete link more

Comments

thank you perolofl

ming zou gravatar imageming zou ( 2025-05-21 02:48:21 -0500 )edit
0

answered 2025-05-19 08:50:24 -0500

lmcqueen gravatar image

I don't have the block diagrams in front of me but typically, the reference values can be changed at the VAR parameters of the model. For example, look for the VAR location where the reference voltage is stored and change it during dynamic simulation.

edit flag offensive delete link more

Comments

I’m using the REGFM_A1 and REPCA_A1 models in my dynamic simulation. I attempted to change the value of VAR(L+3) in the REPCA_A1 model during the simulation, which corresponds to the active power reference (plant_ref). However, I observed that the change had no effect on the simulation results.

ming zou gravatar imageming zou ( 2025-05-20 00:59:44 -0500 )edit

Below is the code I used — could you please help me check whether there might be any mistake or misunderstanding in how I’m applying it? psspy.strt(0, output_file) psspy.run(0, 5.0, 0, 0, 0) psspy.change_var(4, 0.5) psspy.run(0, 25.0, 0, 0, 0)

ming zou gravatar imageming zou ( 2025-05-20 01:00:10 -0500 )edit

Use psspy.change_wnmod_var(ibus, id, name, j, rdata) to change the VAR.

perolofl gravatar imageperolofl ( 2025-05-20 02:32:03 -0500 )edit

As mentioned by perolofl, use psspy.change_wnmod_var API to change the VAR that points to whatever reference parameter you want to be changed.

lmcqueen gravatar imagelmcqueen ( 2025-05-20 14:38:00 -0500 )edit

thank you imcqueen

ming zou gravatar imageming zou ( 2025-05-21 02:48:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2025-05-19 02:10:02 -0500

Seen: 591 times

Last updated: May 20