Differences between OpenFAST and Simulink-coupled drivetrain

Dear OpenFAST team,

We are replacing the ElastoDyn drivetrain with an equivalent MATLAB/Simscape drivetrain while keeping the rest of the OpenFAST aeroelastic model unchanged.

The Simscape drivetrain uses the same rotor/generator inertias, drivetrain torsional stiffness and damping as ElastoDyn.

The aerodynamic torque applied to Simscape is reconstructed from OpenFAST using:

image

The overall agreement is very good. Drivetrain torsional deformation, loads and rotor speed are reproduced almost exactly. However, once all relevant blade and tower DOFs are enabled, we consistently observe very small differences in RotAccel, which lead to similarly small differences in RotSpeed:

I have already checked:

  • identical drivetrain stiffness and damping;
  • different Simulink fixed-step solvers;
  • smaller time steps;
  • controller influence;
  • replaying the standalone GenTq directly into both OpenFAST (VSContrl = 4) and Simscape;
  • replaying standalone RotAccel and LSShftMxa

The differences remain very small and the dynamic behaviour is essentially identical, but they are systematic and relevant for our coupling because RotAccel is multiplied by the rotor inertia when reconstructing the aerodynamic torque.

Do you have any idea what could explain these very small remaining differences between the OpenFAST solution and the OpenFAST–Simulink coupled solution?

Could they be related to numerical integration, the S-Function coupling, signal interpolation/sampling, initialization, or any other aspect we may be overlooking?

We can provide comparison plots and the relevant input files if useful.

Thank you very much for your help.

Kind regards,

Kepa

Dear @Kepa.Cueto,

Can you clarify how you’ve coupled MATLAB/Simscape drivetrain with OpenFAST? Did you change the OpenFAST S-Function, or is this through the user-defined generator torque option in Simulink (VSContrl = 4)?

In your equation for aerodynamic torque, presumably Q_opp is the torque within the low-speed shaft; is that correct? Also, what are you using for J_rot once you enable blade DOFs?

Best regards,

Dear Jason,

Thank you for your reply.

We have not modified the OpenFAST S-Function. We are using the standard OpenFAST–Simulink interface with VSContrl = 4, so the generator torque is provided externally from Simulink.

Regarding the aerodynamic torque reconstruction, yes, Q_opp corresponds to the torque transmitted through the low-speed shaft.

For J_rot, we are currently using the rotor inertia reported in the ElastoDyn .ED.sum file from the standalone OpenFAST simulation, and we have kept this value constant when enabling the blade DOFs.

Best regards,
Kepa

Dear @Kepa.Cueto,

Thanks for clarifying. I’m not sure I fully understand what you are doing, considering that the drivetrain sits between the rotor and support structure and it sounds like you are using the OpenFAST S-Function to model the rotor. Regardless, I’m guess the differences you are seeing are caused by a couple things:

  • Once the blade DOFs are enabled, the rotor inertia is no longer constant in standalone OpenFAST whereas you are assuming it is constant in the model with MATLAB/Simscape drivetrain coupled with OpenFAST.
  • The OpenFAST S-Function’s use of extrapolated inputs from MATLAB/Simulink, as discussed in other forum topics: Different Pitch rate in and outside FAST SFunction in Simulink.

Best regards,

Dear Jason,

Thank you, your comment regarding the rotor inertia seems to match what we are observing.

We have performed some standalone OpenFAST tests progressively enabling the blade DOFs. With GenDOF/DrTrDOF and the flapwise DOFs, a constant inertia close to the Rotor Inertia reported in the .ED.sum file still gives a reasonable approximation. However, once EdgeDOF is enabled, the simple relation

no longer represents the dynamics properly.

Is there any existing ElastoDyn/OpenFAST output or internal variable that would allow us to obtain the inertia associated with the rotor azimuth DOF at each time step?

Best regards,
Kepa

Dear @Kepa.Cueto,

Certainly the effect of the rotor inertia changing with blade deflection is included within ElastoDyn, but there is no output variable and I’m not aware of a specific internal variable where that data is stored. That said, it could certainly be calculated and added to the source code.

Best regards,