Skip to content

Commit 20168d4

Browse files
author
Sebastiaan Mulders
authored
Merge pull request #6 from nikhar-abbas/master
Lots of updates!
2 parents dffc519 + 20ec624 commit 20168d4

File tree

14 files changed

+1200
-324
lines changed

14 files changed

+1200
-324
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Scripts/CompileDISCONHereCopyRun\.cmd
1515

1616
# Temp Files
1717
*~
18+
.DS_Store

DISCON/DISCON_glin64.so

17.4 KB
Binary file not shown.

Parameter_files/Cp_Ct_Cq.txt

Lines changed: 137 additions & 0 deletions
Large diffs are not rendered by default.

Parameter_files/DTU10MW/DISCON.IN

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
! Turbine: DTU fixed bottom wind turbine
1+
! !!!!! OUTDATED !!!!! Turbine: DTU fixed bottom wind turbine
22
! NJA - Might want to make a more formal header for this
33

44
!------- DEBUG ------------------------------------------------------------
5-
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
5+
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
66

77
!------- CONTROLLER FLAGS -------------------------------------------------
8-
2 ! F_LPFType - 1 = first-order low-pass filter, 2 = second-order low-pass filter
9-
0 ! F_NotchType - 0 = disable, 1 = enable: notch on the measured generator speed,
10-
0 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) 0 = off / 1 = (1P reductions) / 2 = (1P+2P reductions)
11-
1 ! VS_ControlMode - Generator torque control mode in above rated conditions, 0 = constant torque / 1 = constant power
12-
0 ! Y_ControlMode - Yaw control mode: (0 = no yaw control, 1 = yaw rate control, 2 = yaw-by-IPC)
8+
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)
9+
0 ! F_NotchType - Notch on the measured generator speed {0: disable, 1: enable}
10+
0 ! IPC_ControlMode - Turn Individual Pitch Control (IPC) for fatigue load reductions (pitch contribution) {0: off, 1: 1P reductions, 2: 1P+2P reductions}
11+
1 ! VS_ControlMode - Generator torque control mode in above rated conditions {0: constant torque, 1: constant power}
12+
1 ! PC_ControlMode - Blade pitch control mode {0: No pitch, fix to fine pitch, 1: active PI blade pitch control}
13+
0 ! Y_ControlMode - Yaw control mode {0: no yaw control, 1: yaw rate control, 2: yaw-by-IPC}
14+
1 ! SS_Mode - Setpoint Smoother mode {0: no setpoint smoothing, 1: introduce setpoint smoothing}
1315

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

2023
!------- BLADE PITCH CONTROL ----------------------------------------------
2124
13 ! PC_GS_n - Amount of gain-scheduling table entries
@@ -39,10 +42,10 @@
3942
0.087266 ! IPC_IntSat - Integrator saturation (maximum signal amplitude contribution to pitch from IPC), [rad]
4043
8E-10 0 ! IPC_KI - Integral gain for the individual pitch controller: first parameter for 1P reductions, second for 2P reductions [-]
4144
0.436332313 0 ! IPC_aziOffset - Phase offset added to the azimuth angle for the individual pitch controller, [rad].
42-
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]
45+
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]
4346

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

62+
!------- Setpoint Smoother ------------------------------------------------
63+
30 ! SS_VSGainBias - Variable speed torque controller gain bias, [(rad/s)/rad]. ! These are values from the NREL5MW (though may still be okay)
64+
0.0001 ! SS_PCGainBias - Collective pitch controller gain bias, [(rad/s)/Nm].
65+
5966
!------- WIND SPEED ESTIMATOR ---------------------------------------------
6067
89.166 ! WE_BladeRadius - Blade length [m]
6168
4 ! WE_CP_n - Amount of parameters in the Cp array
6269
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
6370
20 ! WE_Gamma - Adaption gain of the wind speed estimator algorithm [m/rad]
64-
50 ! WE_GearboxRatio - Gearbox ratio, >=1 [-]
71+
50 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]
6572
2.0E+08 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS [kg m^2]
6673
1.225 ! WE_RhoAir - Air density [kg m^-3]
6774

0 commit comments

Comments
 (0)