Skip to content

Number of inputs of Simulink SFunction #1205

Description

@eletroinf

Hello guys,
I was using OpenFAST 3.0.0 and now I downloaded the sources and compiled the v. 3.2.0 with Intel compiler.
I updated the FAST files (I am currently working with the WP_VSP_WTurb model).
When I start the matlab run (that was working perfectly with v. 3.0.0) I got the following error:


OpenFAST

Copyright (C) 2022 National Renewable Energy Laboratory
Copyright (C) 2022 Envision Energy USA LTD

This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
See the "LICENSE" file distributed with this software for details.


OpenFAST-Unversioned from 08fffef
Compile Info:

  • Compiler: Intel(R) Fortran Compiler 1910
  • Architecture: 64 bit
  • Precision: single
  • OpenMP: No
  • Date: Jul 29 2022
  • Time: 20:06:02
    Execution Info:
  • Date: 07/30/2022
  • Time: 07:55:33-0300

OpenFAST input file heading:
FAST Certification Test #13: WindPACT 1.5 MW Baseline with many DOFs with VS and VP and FF
turbulence.

Running ElastoDyn.
Nodal outputs section of ElastoDyn input file not found or improperly formatted.
Running AeroDyn.
AD15 Nodal Outputs: Nodal output section of AeroDyn input file not found or improperly formatted.
Skipping nodal outputs.
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 1, blade 1)
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 2, blade 1)
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 1, blade 2)
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 2, blade 2)
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 1, blade 3)
Warning: Turning off Unsteady Aerodynamics because UA parameters are not included in airfoil
(airfoil has likely has constant polars). (node 2, blade 3)
Running InflowWind.

Reading a 13x13 grid (80 m wide, 44.288 m to 124.29 m above ground) with a characteristic wind
speed of 14 m/s.

Processed 13115 time steps of 20-Hz full-field data (655.7 seconds).

Running ServoDyn.

FAST_InitializeAll:SrvD_Init:ValidatePrimaryData:Pitch angles are not commanded from Simulink
model.
ValidatePrimaryData:Airfoil control is not commanded from Simulink model.
ValidatePrimaryData:Cable control is not commanded from Simulink model.

OpenFAST completed.

Error using test13_fast_v10_paper_ipc (line 52)
Error due to multiple causes.
Caused by:
Error using test13_fast_v10_paper_ipc (line 52)
Error in port widths or dimensions. Output port 1 of
'test13_fast_v10_rmrac_ipc/FAST Nonlinear Wind Turbine/Mux1' is a one
dimensional vector with 8 elements.
Error using test13_fast_v10_paper_ipc (line 52)
Error in port widths or dimensions. Input port 1 of
'test13_fast_v10_rmrac_ipc/FAST Nonlinear Wind Turbine/S-Function' is a one
dimensional vector with 51 elements.

It happens that the SFunction is expecting a 51 elements vector but I use only eight, which is according to the documentation at:
https://raf-openfast.readthedocs.io/en/docs-fast8readme/source/user/openfast/simulink.html

What did I forget?
Thanks
Ricardo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions