Skip to content

Possible bug in determining turbine type #1604

@luwang00

Description

@luwang00

Bug description
The section below on determining the type of the turbine looks incorrect. It might be caused by problems with merging.

  • The branches for MHK are duplicated.
  • The use of SubDyn no longer indicates fixed turbines because SubDyn can now be used to model floating substructures.

! determine what kind of turbine we're modeling:
IF ( p%MHK == 1 ) THEN
p%TurbineType = Type_MHK_Fixed
ELSEIF ( p%MHK == 2 ) THEN
p%TurbineType = Type_MHK_Floating
ELSEIF ( p%CompHydro == Module_HD ) THEN
IF ( p%CompSub == Module_SD ) THEN
p%TurbineType = Type_Offshore_Fixed
ELSE
p%TurbineType = Type_Offshore_Floating
END IF
ELSEIF ( p%CompMooring == Module_Orca ) THEN
p%TurbineType = Type_Offshore_Floating
ELSEIF ( p%CompSub == Module_ExtPtfm ) THEN
p%TurbineType = Type_Offshore_Fixed
ELSEIF ( p%MHK == 1 ) THEN
p%TurbineType = Type_MHK_Fixed
ELSEIF ( p%MHK == 2 ) THEN
p%TurbineType = Type_MHK_Floating
ELSE
p%TurbineType = Type_LandBased
END IF

OpenFAST Version
This code section is from the dev branch to be released as v4.0.0.

Additional context
It is not clear whether this issue has any impact on the results.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions