Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
cd741dd
Update DISCON.IN
Jul 5, 2019
7632034
Update DISCON.IN
Jul 5, 2019
6efbb10
Updated binaries
Jul 24, 2019
9a5fe1c
Merge branch 'master' of https://github.com/nikhar-abbas/DRC_Fortran
nikhar-abbas Sep 16, 2019
08ba4ab
Re-org
nikhar-abbas Sep 16, 2019
00b08ce
Include SetpointSmoother - hard coded
nikhar-abbas Sep 17, 2019
28908df
Call SetpointSmoother
nikhar-abbas Sep 17, 2019
ba3c4da
Reorg to compile Filters first
nikhar-abbas Sep 17, 2019
677790f
Comment updates
nikhar-abbas Sep 18, 2019
a4eb203
Include SS_DelOmegaF in LocalVar
nikhar-abbas Sep 18, 2019
e4e0c3c
Comment updates
nikhar-abbas Sep 18, 2019
a65d967
Include ControllerBlocks module
nikhar-abbas Sep 18, 2019
f009b17
Comment cleanup
nikhar-abbas Sep 18, 2019
d1af1f3
Comment updates
nikhar-abbas Sep 18, 2019
8b13796
Introduce pitch controller flag
nikhar-abbas Sep 18, 2019
66b1f84
Implement setpoint smoothing
nikhar-abbas Sep 18, 2019
9f410b7
Note as OUTDATED. Note: Fix to be same as NREL5MW
nikhar-abbas Sep 19, 2019
67fe9ba
Include PC_ControlMode
nikhar-abbas Sep 19, 2019
c7856d7
Include setpoint smoother in input file
nikhar-abbas Sep 19, 2019
118bfdf
Update binaries
nikhar-abbas Sep 19, 2019
28f729f
Add setpoint smoother inputs
nikhar-abbas Sep 19, 2019
a5d6748
Comment cleanup
nikhar-abbas Sep 19, 2019
34b09f3
Comment cleanup
nikhar-abbas Sep 19, 2019
e1d77da
Comment Cleanup
nikhar-abbas Sep 19, 2019
593e30a
Comment Cleanup
nikhar-abbas Sep 19, 2019
cc017f8
Add filtered hub wind speed option to wind speed estimator
nikhar-abbas Sep 19, 2019
e68a2ee
Debug wind speed estimator
nikhar-abbas Sep 19, 2019
066b118
Comment Cleanup
nikhar-abbas Sep 20, 2019
91b0fd0
Update binaries
nikhar-abbas Sep 20, 2019
cfa8efe
Cleanup for clarity
nikhar-abbas Sep 20, 2019
f59093e
WE_CornerFreq update
nikhar-abbas Sep 20, 2019
44cb23a
Cleanup
nikhar-abbas Sep 20, 2019
9ee1c1b
Comment Updates
nikhar-abbas Sep 20, 2019
67b3856
Cleanup for clarity
nikhar-abbas Sep 20, 2019
4d9f4d5
Include TSR tracking VS torque controller
nikhar-abbas Sep 20, 2019
1ca7f47
Comment cleanup
nikhar-abbas Sep 20, 2019
f32cf39
Debug TSR tracking controller
nikhar-abbas Sep 20, 2019
b2e9d02
Saturate torque controller at rated torque
nikhar-abbas Sep 20, 2019
dc86fe1
Update wind speed filter cornering freq
nikhar-abbas Sep 20, 2019
b99a486
Update binaries - still need SOME tuning
nikhar-abbas Sep 20, 2019
9c3acfe
Comment updates
nikhar-abbas Sep 23, 2019
26d91e8
Merge branch 'dev_TorquePI'
nikhar-abbas Sep 23, 2019
aa48706
Include matrix inverse and identity matrix, functions
nikhar-abbas Sep 24, 2019
4461993
Add EKF wind speed estimator - stable, but poor
nikhar-abbas Sep 24, 2019
60cfaf9
Add degrees to radians
nikhar-abbas Sep 25, 2019
1f111a3
Use updated Cp Lookup force real numbers
nikhar-abbas Sep 25, 2019
7cf4280
Read Cp data from input file
nikhar-abbas Sep 25, 2019
4a87292
Update to use PerfData
nikhar-abbas Sep 25, 2019
cb2b93f
Add CpData for NREL 5MW
nikhar-abbas Sep 25, 2019
a53f95c
Comment updates
nikhar-abbas Sep 25, 2019
fb336d5
Algorithm update
nikhar-abbas Sep 25, 2019
e559e9a
Comment Updates
nikhar-abbas Sep 25, 2019
0fac735
Update binaries
nikhar-abbas Sep 25, 2019
26d3117
Include Peak Shaving
nikhar-abbas Sep 25, 2019
3f4b5e0
Code Reorg
nikhar-abbas Sep 26, 2019
7dc12fa
Parameter updates
nikhar-abbas Sep 26, 2019
5b2bdd7
Update binaries
nikhar-abbas Sep 26, 2019
82daa5f
Move peak shaving to ControllerBlocks
nikhar-abbas Sep 27, 2019
5b4c8bc
Use ControllerBlocks
nikhar-abbas Sep 27, 2019
b68998b
Include towertop motion
nikhar-abbas Sep 27, 2019
f784ae4
Comment Updates
nikhar-abbas Sep 27, 2019
580cb7b
Update binaries
nikhar-abbas Sep 27, 2019
1786a4a
ignore .DS_Store
nikhar-abbas Sep 27, 2019
5cb37e1
Merge branch 'dev_PeakShaving'
nikhar-abbas Sep 27, 2019
8673f3c
Parameter updates
nikhar-abbas Oct 8, 2019
e9c7f74
Cleanup Peak Shaving
nikhar-abbas Oct 8, 2019
0ba7479
Rate limit pitch signal
nikhar-abbas Oct 8, 2019
fac36d7
Use previous pitch command instead of avrSWAP
nikhar-abbas Oct 8, 2019
cdfedc0
Update binaries
nikhar-abbas Oct 8, 2019
ad89ebf
Normalize DelOmega
nikhar-abbas Oct 18, 2019
736e023
Saturate at VS_RefSpd, Initialize Torque
nikhar-abbas Oct 18, 2019
2a24127
Debug Setpoint Smoother
nikhar-abbas Oct 18, 2019
fbb697f
Update binaries
nikhar-abbas Oct 18, 2019
b9d67a5
Cleanup
nikhar-abbas Oct 22, 2019
20ec624
Include NREL5MW Performance Tables
nikhar-abbas Oct 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Scripts/CompileDISCONHereCopyRun\.cmd

# Temp Files
*~
.DS_Store
Binary file modified DISCON/DISCON_glin64.so
Binary file not shown.
137 changes: 137 additions & 0 deletions Parameter_files/Cp_Ct_Cq.txt

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions Parameter_files/DTU10MW/DISCON.IN
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
! Turbine: DTU fixed bottom wind turbine
! !!!!! OUTDATED !!!!! Turbine: DTU fixed bottom wind turbine
! NJA - Might want to make a more formal header for this

!------- DEBUG ------------------------------------------------------------
0 ! LoggingLevel - 0 = write no debug files, 1 = write standard output .dbg-file, 2 = write standard output .dbg-file and complete avrSWAP-array .dbg2-file
0 ! LoggingLevel - {0: write no debug files, 1: write standard output .dbg-file, 2: write standard output .dbg-file and complete avrSWAP-array .dbg2-file

!------- CONTROLLER FLAGS -------------------------------------------------
2 ! F_LPFType - 1 = first-order low-pass filter, 2 = second-order low-pass filter
0 ! F_NotchType - 0 = disable, 1 = enable: notch on the measured generator speed,
0 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) 0 = off / 1 = (1P reductions) / 2 = (1P+2P reductions)
1 ! VS_ControlMode - Generator torque control mode in above rated conditions, 0 = constant torque / 1 = constant power
0 ! Y_ControlMode - Yaw control mode: (0 = no yaw control, 1 = yaw rate control, 2 = yaw-by-IPC)
2 ! F_LPFType - {1: first-order low-pass filter, 2: second-order low-pass filter}, [rad/s] (currently filters generator speed and pitch control signals)
0 ! F_NotchType - Notch on the measured generator speed {0: disable, 1: enable}
0 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) {0: off, 1: 1P reductions, 2: 1P+2P reductions}
1 ! VS_ControlMode - Generator torque control mode in above rated conditions {0: constant torque, 1: constant power}
1 ! PC_ControlMode - Blade pitch control mode {0: No pitch, fix to fine pitch, 1: active PI blade pitch control}
0 ! Y_ControlMode - Yaw control mode {0: no yaw control, 1: yaw rate control, 2: yaw-by-IPC}
1 ! SS_Mode - Setpoint Smoother mode {0: no setpoint smoothing, 1: introduce setpoint smoothing}

!------- FILTERS ----------------------------------------------------------
2.5132741 ! F_LPFCornerFreq - Corner frequency (-3dB point) in the low-pass filters, filtering generator speed and pitch control signals, [rad/s]
0.7 ! F_LPFDamping - Damping coefficient if F_FilterType = 2, unused otherwise
2.5132741 ! F_LPFCornerFreq - Corner frequency (-3dB point) in the low-pass filters, [Hz]
0.7 ! F_LPFDamping - Damping coefficient [used only when F_FilterType = 2]
0 ! F_NotchCornerFreq - Natural frequency of the notch filter, [rad/s]
0 0 ! F_NotchBetaNumDen - These two notch damping values (numerator and denominator, resp) determines the width and depth of the notch [-]
0 0 ! F_NotchBetaNumDen - Two notch damping values (numerator and denominator, resp) - determines the width and depth of the notch, [-]
0.1 ! F_SSCornerFreq - Corner frequency (-3dB point) in the first order low pass filter for the setpoint smoother, [Hz].

!------- BLADE PITCH CONTROL ----------------------------------------------
13 ! PC_GS_n - Amount of gain-scheduling table entries
Expand All @@ -39,10 +42,10 @@
0.087266 ! IPC_IntSat - Integrator saturation (maximum signal amplitude contribution to pitch from IPC), [rad]
8E-10 0 ! IPC_KI - Integral gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions [-]
0.436332313 0 ! IPC_aziOffset - Phase offset added to the azimuth angle for the individual pitch controller, [rad].
2.5 ! IPC_CornerFreqAct - Corner frequency of the first-order actuators model, to induce a phase lag in the IPC signal. Set 0 to disable. [rad/s]
2.5 ! IPC_CornerFreqAct - Corner frequency of the first-order actuators model, to induce a phase lag in the IPC signal {0: Disable}, [rad/s]

!------- VS TORQUE CONTROL ------------------------------------------------
0.944 ! VS_GenEff - Generator efficiency mechanical power -> electrical power, this should match the efficiency defined in the generator properties! [-]
0.944 ! VS_GenEff - Generator efficiency mechanical power -> electrical power, [should match the efficiency defined in the generator properties!], [-]
212900 ! VS_ArSatTq - Above rated generator torque PI control saturation, [Nm]
150000.0 ! VS_MaxRat - Maximum torque rate (in absolute value) in torque controller, [Nm/s].
250000.0 ! VS_MaxTq - Maximum generator torque in Region 3 (HSS side), [Nm].
Expand All @@ -56,12 +59,16 @@
-27338.24 ! VS_KP - Proportional gain for generator PI torque controller, used in the transitional 2.5 region, [1/(rad/s) Nm]
-6134.68 ! VS_KI - Integral gain for generator PI torque controller, used in the transitional 2.5 region, [1/rad Nm]

!------- Setpoint Smoother ------------------------------------------------
30 ! SS_VSGainBias - Variable speed torque controller gain bias, [(rad/s)/rad]. ! These are values from the NREL5MW (though may still be okay)
0.0001 ! SS_PCGainBias - Collective pitch controller gain bias, [(rad/s)/Nm].

!------- WIND SPEED ESTIMATOR ---------------------------------------------
89.166 ! WE_BladeRadius - Blade length [m]
4 ! WE_CP_n - Amount of parameters in the Cp array
14.571319658214513 42.809556250371465 2.456512501523107 0.003127994078720 ! WE_CP - Parameters that define the parameterized CP(lambda) function XXX Needs to be updated, these are values of the NREL5MW XXX
20 ! WE_Gamma - Adaption gain of the wind speed estimator algorithm [m/rad]
50 ! WE_GearboxRatio - Gearbox ratio, >=1 [-]
50 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
2.0E+08 ! 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]

Expand Down
Loading