From 48d30a79cb3af6dd6560bcf3d5b07b36dcdd07b9 Mon Sep 17 00:00:00 2001 From: Nikhar Abbas Date: Tue, 1 Oct 2019 10:39:53 -0600 Subject: [PATCH] Update OpenFAST I/O & Plotting --- Matlab_Toolbox/Pl_FastPlots.m | 2 +- Matlab_Toolbox/Post_TestCases.m | 4 ++-- .../NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat | 2 +- .../NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat | 2 +- .../NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat | 2 +- examples/DISCON_TEST.IN | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Matlab_Toolbox/Pl_FastPlots.m b/Matlab_Toolbox/Pl_FastPlots.m index 990e70cbe..59d6acc08 100644 --- a/Matlab_Toolbox/Pl_FastPlots.m +++ b/Matlab_Toolbox/Pl_FastPlots.m @@ -21,7 +21,7 @@ function Pl_FastPlots(varargin) plsw.B1 = 1; % B1, Baseline1 plsw.PD = 1; % PD, Primary Dynamics plsw.RO = 1; % RO, Rotor Performance Outputs -plsw.Fl1 = 0; % Fl1, Basic Floating Parameters +plsw.Fl1 = 1; % Fl1, Basic Floating Parameters plsw.AF = 0; % All Floating Parameters plsw.Twr = 1; % Twr, Turbine params with Twr Motions plsw.Rand = 0; % Some random metrics I care about now diff --git a/Matlab_Toolbox/Post_TestCases.m b/Matlab_Toolbox/Post_TestCases.m index b7ad56150..e12c3ea2a 100644 --- a/Matlab_Toolbox/Post_TestCases.m +++ b/Matlab_Toolbox/Post_TestCases.m @@ -42,8 +42,8 @@ % Will want to (un)comment desired cases to plot % Usable Plot types: - % - Step, Below Rated, Near Rated, Above Rated, Floating Near Rated, Floating Mexican Hat -plottype = 'Above Rated'; + % - Step, Below Rated, Near Rated, Above Rated, Floating Steady, Floating Near Rated, Floating Mexican Hat +plottype = 'Floating Steady'; close all % Below Rated diff --git a/Test_Cases/5MW_OC4_ARsteady_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat b/Test_Cases/5MW_OC4_ARsteady_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat index 26d16dbeb..cf8909fc0 100644 --- a/Test_Cases/5MW_OC4_ARsteady_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat +++ b/Test_Cases/5MW_OC4_ARsteady_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat @@ -63,7 +63,7 @@ False CompNTMD - Compute nacelle tuned mass damper {true/false} (fla False CompTTMD - Compute tower tuned mass damper {true/false} (flag) "unused" TTMDfile - Name of the file for tower tuned mass damper (quoted string) [unused when CompTTMD is false] ---------------------- BLADED INTERFACE ---------------------------------------- [used only with Bladed Interface] -"../5MW_Baseline/DISCON/DISCON.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] +"../5MW_Baseline/DISCON/DISCON_OC3Hywind.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] "DISCON.IN" DLL_InFile - Name of input file sent to the DLL (-) [used only with Bladed Interface] "DISCON" DLL_ProcName - Name of procedure in DLL to be called (-) [case sensitive; used only with DLL Interface] "default" DLL_DT - Communication interval for dynamic library (s) (or "default") [used only with Bladed Interface] diff --git a/Test_Cases/5MW_OC4_MH_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat b/Test_Cases/5MW_OC4_MH_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat index 26d16dbeb..cf8909fc0 100644 --- a/Test_Cases/5MW_OC4_MH_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat +++ b/Test_Cases/5MW_OC4_MH_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat @@ -63,7 +63,7 @@ False CompNTMD - Compute nacelle tuned mass damper {true/false} (fla False CompTTMD - Compute tower tuned mass damper {true/false} (flag) "unused" TTMDfile - Name of the file for tower tuned mass damper (quoted string) [unused when CompTTMD is false] ---------------------- BLADED INTERFACE ---------------------------------------- [used only with Bladed Interface] -"../5MW_Baseline/DISCON/DISCON.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] +"../5MW_Baseline/DISCON/DISCON_OC3Hywind.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] "DISCON.IN" DLL_InFile - Name of input file sent to the DLL (-) [used only with Bladed Interface] "DISCON" DLL_ProcName - Name of procedure in DLL to be called (-) [case sensitive; used only with DLL Interface] "default" DLL_DT - Communication interval for dynamic library (s) (or "default") [used only with Bladed Interface] diff --git a/Test_Cases/5MW_OC4_NR_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat b/Test_Cases/5MW_OC4_NR_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat index 26d16dbeb..cf8909fc0 100644 --- a/Test_Cases/5MW_OC4_NR_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat +++ b/Test_Cases/5MW_OC4_NR_Legacy/NRELOffshrBsline5MW_OC4DeepCwindSemi_ServoDyn.dat @@ -63,7 +63,7 @@ False CompNTMD - Compute nacelle tuned mass damper {true/false} (fla False CompTTMD - Compute tower tuned mass damper {true/false} (flag) "unused" TTMDfile - Name of the file for tower tuned mass damper (quoted string) [unused when CompTTMD is false] ---------------------- BLADED INTERFACE ---------------------------------------- [used only with Bladed Interface] -"../5MW_Baseline/DISCON/DISCON.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] +"../5MW_Baseline/DISCON/DISCON_OC3Hywind.dll" DLL_FileName - Name/location of the dynamic library {.dll [Windows] or .so [Linux]} in the Bladed-DLL format (-) [used only with Bladed Interface] "DISCON.IN" DLL_InFile - Name of input file sent to the DLL (-) [used only with Bladed Interface] "DISCON" DLL_ProcName - Name of procedure in DLL to be called (-) [case sensitive; used only with DLL Interface] "default" DLL_DT - Communication interval for dynamic library (s) (or "default") [used only with Bladed Interface] diff --git a/examples/DISCON_TEST.IN b/examples/DISCON_TEST.IN index 18b1bf249..b39c69d67 100644 --- a/examples/DISCON_TEST.IN +++ b/examples/DISCON_TEST.IN @@ -1,5 +1,5 @@ ! Controller parameter input file for the 5MW_Land wind turbine -! - File written using NREL Baseline Controller tuning logic on 09/26/19 +! - File written using NREL Baseline Controller tuning logic on 10/01/19 !------- DEBUG ------------------------------------------------------------ 1 ! LoggingLevel - {0: write no debug files, 1: write standard output .dbg-file, 2: write standard output .dbg-file and complete avrSWAP-array .dbg2-file @@ -27,8 +27,8 @@ 0. 0.01843267 0.03012466 0.03938211 0.0473159 0.05438725 0.0608399 0.06682165 0.07243603 0.07774601 0.08280179 0.08764533 0.0922973 0.09678511 0.10113084 0.10534505 0.10944741 0.11344459 0.11734245 0.12115249 0.12488383 0.12853954 0.13212927 0.13565125 0.13911823 0.1425236 0.14587973 0.1491875 0.15244657 0.15566288 0.15883986 0.16197375 0.16506986 0.16813214 0.17115907 0.17415428 0.17711497 0.18004808 0.18295399 0.1858281 0.1886768 0.19150248 0.19430239 0.19707534 0.19983015 0.2025582 0.20526628 0.20795513 0.21062023 0.21326861 0.2158935 0.21850484 0.2210941 0.22366803 0.22622254 0.22876498 0.2312836 0.23379345 0.23628255 0.23875941 0.24122279 0.24366729 0.24610036 0.24852176 0.25092855 0.25332325 0.2557023 0.25807209 0.26042559 0.26276748 0.26510036 0.26742092 0.26973036 0.27202782 0.27431492 0.27658881 0.27885401 0.28110964 0.28336045 0.2855962 0.28782076 0.29003745 0.29224346 0.29444004 0.29663204 0.2988061 0.30097858 0.30314198 0.30529447 0.30743825 0.30958 0.31170708 0.31382687 0.31593631 0.3180419 0.32013786 0.32222978 0.32431029 0.32638663 0.32845309 0.33051357 0.33256802 0.33461455 0.33665611 0.33868284 0.34071023 0.34272963 0.34474196 0.34674528 0.34875073 0.35074041 0.35272695 0.35470654 0.35668277 0.35864961 0.36061312 0.36256798 0.36452117 0.36646633 0.36840178 0.37033735 0.3722649 0.37418622 0.37609996 0.37801477 0.37991806 0.38181864 0.38371323 0.38560453 0.38749153 0.38937202 0.39124103 0.39310673 0.39497577 0.39683082 0.39868511 ! PC_GS_angles - Gain-schedule table: pitch angles -0.02019147 -0.01950333 -0.01885443 -0.0182415 -0.01766165 -0.01711225 -0.01659098 -0.01609573 -0.01562459 -0.01517585 -0.01474794 -0.01433946 -0.0139491 -0.01357569 -0.01321814 -0.01287547 -0.01254676 -0.01223119 -0.01192797 -0.0116364 -0.01135581 -0.01108561 -0.01082521 -0.01057411 -0.0103318 -0.01009784 -0.00987181 -0.00965329 -0.00944194 -0.00923739 -0.00903933 -0.00884745 -0.00866147 -0.00848112 -0.00830614 -0.00813631 -0.0079714 -0.00781119 -0.00765549 -0.00750411 -0.00735688 -0.00721362 -0.00707417 -0.0069384 -0.00680614 -0.00667728 -0.00655167 -0.0064292 -0.00630975 -0.00619322 -0.00607949 -0.00596846 -0.00586005 -0.00575415 -0.00565069 -0.00554957 -0.00545073 -0.00535408 -0.00525955 -0.00516708 -0.00507659 -0.00498803 -0.00490133 -0.00481644 -0.00473329 -0.00465184 -0.00457204 -0.00449383 -0.00441716 -0.004342 -0.0042683 -0.00419602 -0.00412511 -0.00405553 -0.00398726 -0.00392025 -0.00385447 -0.00378988 -0.00372646 -0.00366417 -0.00360298 -0.00354286 -0.00348379 -0.00342574 -0.00336868 -0.00331258 -0.00325743 -0.00320319 -0.00314985 -0.00309739 -0.00304578 -0.002995 -0.00294503 -0.00289585 -0.00284745 -0.00279981 -0.0027529 -0.00270671 -0.00266123 -0.00261644 -0.00257232 -0.00252886 -0.00248604 -0.00244385 -0.00240228 -0.00236131 -0.00232093 -0.00228112 -0.00224188 -0.0022032 -0.00216505 -0.00212743 -0.00209033 -0.00205374 -0.00201765 -0.00198204 -0.00194691 -0.00191225 -0.00187805 -0.0018443 -0.00181099 -0.00177811 -0.00174566 -0.00171362 -0.00168199 -0.00165076 -0.00161992 -0.00158947 -0.00155939 -0.00152969 -0.00150035 -0.00147137 -0.00144274 -0.00141446 -0.00138651 -0.0013589 ! PC_GS_KP - Gain-schedule table: pitch controller kp gains -0.00882307 -0.00856411 -0.00831992 -0.00808927 -0.00787106 -0.00766432 -0.00746816 -0.00728178 -0.00710449 -0.00693562 -0.0067746 -0.00662088 -0.00647398 -0.00633346 -0.00619891 -0.00606996 -0.00594626 -0.00582751 -0.0057134 -0.00560368 -0.00549809 -0.00539641 -0.00529842 -0.00520393 -0.00511274 -0.0050247 -0.00493964 -0.00485741 -0.00477787 -0.0047009 -0.00462637 -0.00455416 -0.00448417 -0.0044163 -0.00435046 -0.00428655 -0.00422449 -0.0041642 -0.00410561 -0.00404864 -0.00399324 -0.00393933 -0.00388685 -0.00383576 -0.00378599 -0.00373749 -0.00369023 -0.00364414 -0.00359919 -0.00355534 -0.00351254 -0.00347076 -0.00342996 -0.00339011 -0.00335117 -0.00331312 -0.00327593 -0.00323956 -0.00320399 -0.00316919 -0.00313514 -0.00310181 -0.00306918 -0.00303724 -0.00300595 -0.0029753 -0.00294526 -0.00291583 -0.00288698 -0.0028587 -0.00283096 -0.00280376 -0.00277708 -0.0027509 -0.0027252 -0.00269999 -0.00267523 -0.00265093 -0.00262706 -0.00260362 -0.00258059 -0.00255797 -0.00253574 -0.0025139 -0.00249242 -0.00247131 -0.00245056 -0.00243015 -0.00241008 -0.00239033 -0.00237091 -0.0023518 -0.002333 -0.00231449 -0.00229628 -0.00227835 -0.0022607 -0.00224332 -0.0022262 -0.00220935 -0.00219274 -0.00217639 -0.00216028 -0.0021444 -0.00212876 -0.00211334 -0.00209814 -0.00208316 -0.0020684 -0.00205384 -0.00203948 -0.00202533 -0.00201136 -0.00199759 -0.00198401 -0.00197061 -0.00195739 -0.00194435 -0.00193148 -0.00191878 -0.00190624 -0.00189387 -0.00188166 -0.0018696 -0.0018577 -0.00184595 -0.00183434 -0.00182288 -0.00181157 -0.00180039 -0.00178935 -0.00177844 -0.00176767 -0.00175702 -0.00174651 -0.00173612 ! PC_GS_KI - Gain-schedule table: pitch controller ki gains -0 ! PC_GS_KD - Gain-schedule table: pitch controller kd gains -0 ! PC_GS_TF - Gain-schedule table: pitch controller tf gains (derivative filter) +0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ! PC_GS_KD - Gain-schedule table: pitch controller kd gains +0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ! PC_GS_TF - Gain-schedule table: pitch controller tf gains (derivative filter) 1.5707 ! PC_MaxPit - Maximum physical pitch limit, [rad]. -0.087266 ! PC_MinPit - Minimum physical pitch limit, [rad]. 0.13962 ! PC_MaxRat - Maximum pitch rate (in absolute value) in pitch controller, [rad/s]. @@ -73,7 +73,7 @@ 97 ! WE_GearboxRatio - Gearbox ratio [>=1], [-] 4.0469564E+07 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2] 1.225 ! WE_RhoAir - Air density, [kg m^-3] -"../5MW_Baseline/ServoData/Cp_Ct_Cq.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) +"../5MW_Baseline/Cp_Ct_Cq.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) 320 40 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios 23 ! WE_FOPoles_N - Number of first-order system poles used in EKF 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]