Skip to content

Commit e23a2a9

Browse files
author
dzalkind
committed
Get rid of control parameter view and let functions operate using objs
1 parent 407d6c1 commit e23a2a9

39 files changed

Lines changed: 1617 additions & 527 deletions

Examples/DISCON_awc.IN

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Controller parameter input file for the NREL-5MW wind turbine
2-
! - File written using ROSCO version 2.10.4 controller tuning logic on 03/28/26
2+
! - File written using ROSCO version 2.10.4 controller tuning logic on 04/13/26
33

44
!------- SIMULATION CONTROL ------------------------------------------------------------
55
1 ! LoggingLevel - 0: write no debug files, 1: write standard output .dbg-file, 2: LoggingLevel 1 + ROSCO LocalVars (.dbg2) 3: LoggingLevel 2 + complete avrSWAP-array (.dbg3)
@@ -28,7 +28,7 @@
2828
0 ! OL_Mode - Open loop control mode (0: no open loop control, 1: open loop control vs. time, 2: rotor position control)
2929
0 ! PA_Mode - Pitch actuator mode (0 - not used, 1 - first order filter, 2 - second order filter)
3030
0 ! PF_Mode - Pitch fault mode (0 - not used, 1 - constant offset on one or more blades)
31-
4 ! AWC_Mode - Active wake control (0 - not used, 1 - complex number method, 2 - Coleman transform method)
31+
5 ! AWC_Mode - Active wake control (0 - not used, 1 - complex number method, 2 - Coleman transform method)
3232
0 ! Ext_Mode - External control mode (0 - not used, 1 - call external dynamic library)
3333
0 ! ZMQ_Mode - Fuse ZeroMQ interface (0: unused, 1: Yaw Control)
3434
0 ! CC_Mode - Cable control mode [0- unused, 1- User defined, 2- Open loop control]
@@ -124,7 +124,7 @@
124124
97.0 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
125125
43702538.05700 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2]
126126
1.225 ! WE_RhoAir - Air density, [kg m^-3]
127-
"/workspace/ROSCO/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
127+
"/Users/dzalkind/Tools/ROSCO-C/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
128128
36 26 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios
129129
60 ! WE_FOPoles_N - Number of first-order system poles used in EKF
130130
3.000 3.290 3.579 3.869 4.159 4.448 4.738 5.028 5.317 5.607 5.897 6.186 6.476 6.766 7.055 7.345 7.634 7.924 8.214 8.503 8.793 9.083 9.372 9.662 9.952 10.241 10.531 10.821 11.110 11.400 11.853 12.307 12.760 13.213 13.667 14.120 14.573 15.027 15.480 15.933 16.387 16.840 17.293 17.747 18.200 18.653 19.107 19.560 20.013 20.467 20.920 21.373 21.827 22.280 22.733 23.187 23.640 24.093 24.547 25.000 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]
@@ -221,9 +221,9 @@
221221
1 ! AWC_NumModes - Number of user-defined AWC forcing modes
222222
1 ! AWC_n - Azimuthal mode number(s) (i.e., the number and direction of the lobes of the wake structure)
223223
1 ! AWC_harmonic - Harmonic(s) to apply in the AWC Inverse Coleman Transformation (only used when AWC_Mode = 2)
224-
0.0500 ! AWC_freq - Frequency(s) of forcing mode(s) [Hz]
225-
1.0000 ! AWC_amp - Pitch amplitude(s) of individual forcing mode(s) [deg]
226-
0.0000 ! AWC_clockangle - Initial angle(s) of forcing mode(s) [deg]
224+
0.05 ! AWC_freq - Frequency(s) of forcing mode(s) [Hz]
225+
2.0 ! AWC_amp - Pitch amplitude(s) of individual forcing mode(s) [deg]
226+
0.0 ! AWC_clockangle - Initial angle(s) of forcing mode(s) [deg]
227227
0.000000000000 ! AWC_phaseoffset - Azimuth offset in the Coleman transformation [deg]
228228
0.0100 0.0050 ! AWC_CntrGains - KP and KI/KR gain of the active wake controller [-]
229229

Examples/DISCON_filters.IN

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Controller parameter input file for the NREL-5MW wind turbine
2-
! - File written using ROSCO version 2.10.4 controller tuning logic on 03/28/26
2+
! - File written using ROSCO version 2.10.4 controller tuning logic on 04/13/26
33

44
!------- SIMULATION CONTROL ------------------------------------------------------------
55
1 ! LoggingLevel - 0: write no debug files, 1: write standard output .dbg-file, 2: LoggingLevel 1 + ROSCO LocalVars (.dbg2) 3: LoggingLevel 2 + complete avrSWAP-array (.dbg3)
@@ -124,7 +124,7 @@
124124
97.0 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
125125
43702538.05700 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2]
126126
1.225 ! WE_RhoAir - Air density, [kg m^-3]
127-
"/workspace/ROSCO/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
127+
"/Users/dzalkind/Tools/ROSCO-C/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
128128
36 26 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios
129129
60 ! WE_FOPoles_N - Number of first-order system poles used in EKF
130130
3.000 3.290 3.579 3.869 4.159 4.448 4.738 5.028 5.317 5.607 5.897 6.186 6.476 6.766 7.055 7.345 7.634 7.924 8.214 8.503 8.793 9.083 9.372 9.662 9.952 10.241 10.531 10.821 11.110 11.400 11.853 12.307 12.760 13.213 13.667 14.120 14.573 15.027 15.480 15.933 16.387 16.840 17.293 17.747 18.200 18.653 19.107 19.560 20.013 20.467 20.920 21.373 21.827 22.280 22.733 23.187 23.640 24.093 24.547 25.000 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]

Examples/DISCON_flp.IN

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Controller parameter input file for the NREL-5MW wind turbine
2-
! - File written using ROSCO version 2.10.4 controller tuning logic on 03/28/26
2+
! - File written using ROSCO version 2.10.4 controller tuning logic on 04/13/26
33

44
!------- SIMULATION CONTROL ------------------------------------------------------------
55
1 ! LoggingLevel - 0: write no debug files, 1: write standard output .dbg-file, 2: LoggingLevel 1 + ROSCO LocalVars (.dbg2) 3: LoggingLevel 2 + complete avrSWAP-array (.dbg3)
@@ -24,7 +24,7 @@
2424
0 ! Fl_Mode - Floating specific feedback mode (0: no nacelle velocity feedback, 1: feed back translational velocity, 2: feed back rotational velocity)
2525
0 ! TD_Mode - Tower damper mode (0- no tower damper, 1- feed back translational nacelle accelleration to pitch angle
2626
0 ! TRA_Mode - Tower resonance avoidance mode (0- no tower resonsnace avoidance, 1- use torque control setpoints to avoid a specific frequency
27-
2 ! Flp_Mode - Flap control mode (0: no flap control, 1: steady state flap angle, 2: Proportional flap control, 2: Cyclic (1P) flap control)
27+
3 ! Flp_Mode - Flap control mode (0: no flap control, 1: steady state flap angle, 2: Proportional flap control, 2: Cyclic (1P) flap control)
2828
0 ! OL_Mode - Open loop control mode (0: no open loop control, 1: open loop control vs. time, 2: rotor position control)
2929
0 ! PA_Mode - Pitch actuator mode (0 - not used, 1 - first order filter, 2 - second order filter)
3030
0 ! PF_Mode - Pitch fault mode (0 - not used, 1 - constant offset on one or more blades)
@@ -50,7 +50,7 @@
5050
0.17952 ! F_YawErr - Low pass filter corner frequency for yaw controller [rad/s].
5151
0.0000 1.0000 ! F_FlCornerFreq - Natural frequency and damping in the second order low pass filter of the tower-top fore-aft motion for floating feedback control [rad/s, -].
5252
0.01042 ! F_FlHighPassFreq - Natural frequency of first-order high-pass filter for nacelle fore-aft motion [rad/s].
53-
0.5000 0.7000 ! F_FlpCornerFreq - Corner frequency and damping in the second order low pass filter of the blade root bending moment for flap control
53+
0.5 0.7 ! F_FlpCornerFreq - Corner frequency and damping in the second order low pass filter of the blade root bending moment for flap control
5454
0.20944 ! F_VSRefSpdCornerFreq - Corner frequency (-3dB point) in the first order low pass filter of the generator speed reference used for TSR tracking torque control [rad/s].
5555

5656
!------- BLADE PITCH CONTROL ----------------------------------------------
@@ -124,7 +124,7 @@
124124
97.0 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
125125
43702538.05700 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2]
126126
1.225 ! WE_RhoAir - Air density, [kg m^-3]
127-
"/workspace/ROSCO/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
127+
"/Users/dzalkind/Tools/ROSCO-C/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
128128
36 26 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios
129129
60 ! WE_FOPoles_N - Number of first-order system poles used in EKF
130130
3.000 3.290 3.579 3.869 4.159 4.448 4.738 5.028 5.317 5.607 5.897 6.186 6.476 6.766 7.055 7.345 7.634 7.924 8.214 8.503 8.793 9.083 9.372 9.662 9.952 10.241 10.531 10.821 11.110 11.400 11.853 12.307 12.760 13.213 13.667 14.120 14.573 15.027 15.480 15.933 16.387 16.840 17.293 17.747 18.200 18.653 19.107 19.560 20.013 20.467 20.920 21.373 21.827 22.280 22.733 23.187 23.640 24.093 24.547 25.000 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]

Examples/DISCON_ipc.IN

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Controller parameter input file for the NREL-5MW wind turbine
2-
! - File written using ROSCO version 2.10.4 controller tuning logic on 03/28/26
2+
! - File written using ROSCO version 2.10.4 controller tuning logic on 04/13/26
33

44
!------- SIMULATION CONTROL ------------------------------------------------------------
55
1 ! LoggingLevel - 0: write no debug files, 1: write standard output .dbg-file, 2: LoggingLevel 1 + ROSCO LocalVars (.dbg2) 3: LoggingLevel 2 + complete avrSWAP-array (.dbg3)
@@ -9,7 +9,7 @@
99

1010
!------- CONTROLLER FLAGS -------------------------------------------------
1111
1 ! F_LPFType - 1: first-order low-pass filter, 2: second-order low-pass filter, [rad/s] (currently filters generator speed and pitch control signals
12-
1 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) (0: off, 1: 1P reductions, 2: 1P+2P reductions)
12+
2 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) (0: off, 1: 1P reductions, 2: 1P+2P reductions)
1313
2 ! VS_ControlMode - Generator torque control mode in above rated conditions (0- no torque control, 1- k*omega^2 with PI transitions, 2- WSE TSR Tracking, 3- Power-based TSR Tracking, 4- Torque-based TSR Tracking)
1414
1 ! VS_ConstPower - Do constant power torque control, where above rated torque varies, 0 for constant torque)
1515
0 ! VS_FBP - Fixed blade pitch configuration mode (0- variable pitch (disabled), 1- constant power overspeed, 2- WSE-lookup reference tracking, 3- torque-lookup reference tracking)
@@ -37,12 +37,12 @@
3737
!------- FILTERS ----------------------------------------------------------
3838
1.57080 ! F_LPFCornerFreq - Corner frequency (-3dB point) in the low-pass filters, [rad/s]
3939
0.00000 ! F_LPFDamping - Damping coefficient (used only when F_FilterType = 2) [-]
40-
0 ! F_NumNotchFilts - Number of notch filters placed on sensors
41-
0.0000 ! F_NotchFreqs - Natural frequency of the notch filters. Array with length F_NumNotchFilts
40+
1 ! F_NumNotchFilts - Number of notch filters placed on sensors
41+
1.0000 ! F_NotchFreqs - Natural frequency of the notch filters. Array with length F_NumNotchFilts
4242
0.0000 ! F_NotchBetaNum - Damping value of numerator (determines the width of notch). Array with length F_NumNotchFilts, [-]
43-
0.0000 ! F_NotchBetaDen - Damping value of denominator (determines the depth of notch). Array with length F_NumNotchFilts, [-]
44-
0 ! F_GenSpdNotch_N - Number of notch filters on generator speed
45-
0 ! F_GenSpdNotch_Ind - Indices of notch filters on generator speed
43+
0.2500 ! F_NotchBetaDen - Damping value of denominator (determines the depth of notch). Array with length F_NumNotchFilts, [-]
44+
1 ! F_GenSpdNotch_N - Number of notch filters on generator speed
45+
1 ! F_GenSpdNotch_Ind - Indices of notch filters on generator speed
4646
0 ! F_TwrTopNotch_N - Number of notch filters on tower top acceleration signal
4747
0 ! F_TwrTopNotch_Ind - Indices of notch filters on tower top acceleration signal
4848
0.62830 ! F_SSCornerFreq - Corner frequency (-3dB point) in the first order low pass filter for the setpoint smoother, [rad/s].
@@ -72,8 +72,8 @@
7272
9.120 11.400 ! IPC_Vramp - Start and end wind speeds for cut-in ramp function. First entry: IPC inactive, second entry: IPC fully active. [m/s]
7373
2 ! IPC_SatMode - IPC Saturation method (0 - no saturation (except by PC_MinPit), 1 - saturate by PS_BldPitchMin, 2 - saturate sotfly (full IPC cycle) by PC_MinPit, 3 - saturate softly by PS_BldPitchMin)
7474
0.3 ! IPC_IntSat - Integrator saturation (maximum signal amplitude contribution to pitch from IPC), [rad]
75-
0.0 0.0 ! IPC_KP - Proportional gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions, [-]
76-
0.0 0.0 ! IPC_KI - Integral gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions, [-]
75+
0.1 0.05 ! IPC_KP - Proportional gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions, [-]
76+
0.01 0.005 ! IPC_KI - Integral gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions, [-]
7777
0.000 0.000 ! IPC_aziOffset - Phase offset added to the azimuth angle for the individual pitch controller, [rad].
7878
0.0 ! IPC_CornerFreqAct - Corner frequency of the first-order actuators model, to induce a phase lag in the IPC signal (0: Disable), [rad/s]
7979

@@ -124,7 +124,7 @@
124124
97.0 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
125125
43702538.05700 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2]
126126
1.225 ! WE_RhoAir - Air density, [kg m^-3]
127-
"/workspace/ROSCO/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
127+
"/Users/dzalkind/Tools/ROSCO-C/Examples/Tune_Cases/../Test_Cases/NREL-5MW/Cp_Ct_Cq.NREL5MW.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq) (absolute path or relative to this file)
128128
36 26 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios
129129
60 ! WE_FOPoles_N - Number of first-order system poles used in EKF
130130
3.000 3.290 3.579 3.869 4.159 4.448 4.738 5.028 5.317 5.607 5.897 6.186 6.476 6.766 7.055 7.345 7.634 7.924 8.214 8.503 8.793 9.083 9.372 9.662 9.952 10.241 10.531 10.821 11.110 11.400 11.853 12.307 12.760 13.213 13.667 14.120 14.573 15.027 15.480 15.933 16.387 16.840 17.293 17.747 18.200 18.653 19.107 19.560 20.013 20.467 20.920 21.373 21.827 22.280 22.733 23.187 23.640 24.093 24.547 25.000 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]

0 commit comments

Comments
 (0)