Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroMQ TorqueOffset has No Effect #416

Open
Ian-Ammerman opened this issue Jan 17, 2025 · 2 comments
Open

ZeroMQ TorqueOffset has No Effect #416

Ian-Ammerman opened this issue Jan 17, 2025 · 2 comments
Assignees

Comments

@Ian-Ammerman
Copy link

Hi,

I am trying to use the zeroMQ interface while running OpenFAST per example 17. I have prepared the following wfc_controller:

`def wfc_controller(id, current_time, measurements):

# Stand in cosntant control commands
YawOffset = 0

if current_time > 125:
    col_pitch_command = np.deg2rad(0)
else:
    col_pitch_command = np.deg2rad(0)

# Assign control commands
setpoints = {}
setpoints["ZMQ_TorqueOffset"] = 172*current_time
setpoints["ZMQ_YawOffset"] = YawOffset
setpoints['ZMQ_PitOffset(1)'] = col_pitch_command
setpoints['ZMQ_PitOffset(2)'] = col_pitch_command
setpoints['ZMQ_PitOffset(3)'] = col_pitch_command

return setpoints`

I am running into a couple of challenges regarding the torque setting.

1). I am unable to run a constant torque simulation. The closest available is constant power, but setting VS_ControlMode to 0 keeps torque at zero.

2). Adjusting ZMQ_TorqueOffset has no effect. When running the simulation above, I get the following plots output (using a constant power torque controller - VS_ControlMode = 1):

Image

If I set VS_ControlMode = 0 in the .yaml file and re-run with settings as above I get the following response:

Image

I would expect to see the generator torque either a) held at saturated region 3 torque to start or b) ramp up per the wfc_controller command. I have not touched any other settings within the .yaml file and I compiled the controller myself, ensuring that the setpoint channels were included in the .f90 file beforehand. Any help is much appreciated.

@abhineet-gupta abhineet-gupta self-assigned this Jan 17, 2025
@dzalkind
Copy link
Collaborator

Hi Ian,

This discussion may be helpful: #405

We recommend using VS_ControlMode of 2 or 3. Constant power or constant torque control can be set using VS_ConstPower.

Since you're trying something new with the examples, I recommend reviewing the existing torque controller to see if any saturation limits or logic is preventing your desired outcome:

SUBROUTINE VariableSpeedControl(avrSWAP, CntrPar, LocalVar, objInst, ErrVar)

I hope this helps.

Best, Dan

@Hermse
Copy link

Hermse commented Jan 21, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants