0

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

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?

anonymous user
asked 2025-05-19 02:10:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

You need to use a plant controller model.

perolofl's avatar
3.8k
perolofl
answered 2025-05-20 02:51:03 -0500
edit flag offensive 0 remove flag delete link

Comments

thank you perolofl

ming zou's avatar ming zou (2025-05-21 02:48:21 -0500) edit
add a comment see more comments
0

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.

lmcqueen's avatar
76
lmcqueen
answered 2025-05-19 08:50:24 -0500
edit flag offensive 0 remove flag delete link

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's avatar ming 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's avatar ming zou (2025-05-20 01:00:10 -0500) edit

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

perolofl's avatar perolofl (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's avatar lmcqueen (2025-05-20 14:38:00 -0500) edit

thank you imcqueen

ming zou's avatar ming zou (2025-05-21 02:48:14 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer