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

Switch to openfast_io and update to OpenFAST v4.0.0 #415

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Examples/*.p
# Exclude testing results
ROSCO_testing/results/
ROSCO_testing/testing
rosco/test/testing

# Simulink/Matlab temp files
*.slxc
Expand Down
5 changes: 3 additions & 2 deletions Examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Cp_Ct_Cq.*.txt
*.p
examples_out/
examples_out/
11_robust_tuning_out
*.10
4 changes: 4 additions & 0 deletions Examples/05_openfast_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from rosco.toolbox import turbine as ROSCO_turbine
from rosco.toolbox.utilities import write_DISCON, run_openfast
from rosco.toolbox.inputs.validation import load_rosco_yaml
from rosco import discon_lib_path

def main():
this_dir = os.path.dirname(os.path.abspath(__file__))
Expand All @@ -48,6 +49,9 @@ def main():
txt_filename=os.path.join(tune_dir,path_params['rotor_performance_filename'])
)

# Setting up the location of ROSCO library
turbine.fast.fst_vt['ServoDyn']['DLL_FileName'] = discon_lib_path

# Tune controller
controller.tune_controller(turbine)

Expand Down
1 change: 1 addition & 0 deletions Examples/14_open_loop_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def main():
### Run OpenFAST using aeroelasticse tools
case_inputs = {}
case_inputs[('ServoDyn','DLL_FileName')] = {'vals': [discon_lib_path], 'group': 0}
case_inputs[('ServoDyn','Ptch_Cntrl')] = {'vals': [1], 'group': 0}

# Apply all discon variables as case inputs
discon_vt = ROSCO_utilities.DISCON_dict(
Expand Down
2 changes: 1 addition & 1 deletion Examples/22_cable_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from rosco.toolbox.ofTools.case_gen import CaseLibrary as cl
from rosco.toolbox.ofTools.fast_io import output_processing
import numpy as np
from rosco.toolbox.ofTools.fast_io.FAST_reader import InputReader_OpenFAST
from openfast_io.FAST_reader import InputReader_OpenFAST
from rosco.toolbox.inputs.validation import load_rosco_yaml
import matplotlib.pyplot as plt
from rosco.toolbox.controller import OpenLoopControl
Expand Down
4 changes: 2 additions & 2 deletions Examples/23_structural_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from rosco.toolbox.ofTools.case_gen.run_FAST import run_FAST_ROSCO
from rosco.toolbox.ofTools.case_gen import CaseLibrary as cl
#import numpy as np
from rosco.toolbox.ofTools.fast_io.FAST_reader import InputReader_OpenFAST
from openfast_io.FAST_reader import InputReader_OpenFAST
from rosco.toolbox.inputs.validation import load_rosco_yaml
from rosco.toolbox.controller import OpenLoopControl

Expand Down Expand Up @@ -47,7 +47,7 @@ def main():
reader.execute()

reader.fst_vt['ServoDyn']['NumSStC'] = 3
reader.fst_vt['ServoDyn']['SStCfiles'] = ['StC-Force-Col1.dat', 'StC-Force-Col2.dat', 'StC-Force-Col3.dat']
reader.fst_vt['ServoDyn']['SStCfiles'] = ['../StC-Force-Col1.dat', '../StC-Force-Col2.dat', '../StC-Force-Col3.dat']
# Add SStC file inputs
for StC_file in reader.fst_vt['ServoDyn']['SStCfiles']:
reader.fst_vt['SStC'].append(reader.read_StC(StC_file))
Expand Down
2 changes: 1 addition & 1 deletion Examples/28_tower_resonance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from rosco.toolbox.ofTools.case_gen.run_FAST import run_FAST_ROSCO
from rosco.toolbox.ofTools.case_gen import CaseLibrary as cl
#from rosco.toolbox.ofTools.fast_io import output_processing
from rosco.toolbox.ofTools.fast_io.FAST_reader import InputReader_OpenFAST
from openfast_io.FAST_reader import InputReader_OpenFAST
from rosco.toolbox.inputs.validation import load_rosco_yaml

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF00_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF00_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
0.754030 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
29.393939 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF01_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF01_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
1.626654 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
2.107816 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF02_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF02_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
2.538528 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
1.985575 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF03_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF03_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
3.518213 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
1.807510 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF04_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF04_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
4.575668 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
1.678026 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF05_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF05_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
5.700528 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
1.619305 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF06_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF06_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
6.865415 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
1.063866 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF07_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF07_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
8.026545 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
-0.252813 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF08_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF08_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
9.120474 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
-1.292496 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF09_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF09_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
10.036688 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
-1.701696 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ DEFAULT InterpOrd ! Interpolation order to use for quasi-stea
1 NonDimArea ! The non-dimensional area of the airfoil (area/chord^2) (set to 1.0 if unsure or unneeded)
@"AF10_Coords.txt" NumCoords ! The number of coordinates in the airfoil shape file. Set to zero if coordinates not included.
AF10_BL.txt BL_file ! The file name including the boundary layer characteristics of the profile. Ignored if the aeroacoustic module is not called.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and Ctrl.
1 NumTabs ! Number of airfoil tables in this file. Each table must have lines for Re and UserProp.
! ------------------------------------------------------------------------------
! data for table 1
! ------------------------------------------------------------------------------
10.740662 Re ! Reynolds number in millions
0 Ctrl ! Control setting (must be 0 for current AirfoilInfo)
0 UserProp ! Control setting (must be 0 for current AirfoilInfo)
True InclUAdata ! Is unsteady aerodynamics data included in this table? If TRUE, then include 30 UA coefficients below this line
!........................................
-2.060294 alpha0 ! 0-lift angle of attack, depends on airfoil.
Expand Down
Loading