Skip to content

Commit

Permalink
Include blade root bending signal filter parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Jan 13, 2020
1 parent 39e0ec3 commit f2b0e50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ SUBROUTINE FlapControl(avrSWAP, CntrPar, LocalVar, objInst)
ELSEIF (CntrPar%Flp_Mode == 2) THEN
DO K = 1,3
! LPF Blade root bending moment (tau = 0.1, critically damped to attempt to mitigate phase delays)
RootMOOP_F(K) = SecLPFilter(LocalVar%rootMOOP(K),LocalVar%DT,62.8319, 0.7,LocalVar%iStatus, .FALSE.,objInst%instLPF)
RootMOOP_F(K) = SecLPFilter(LocalVar%rootMOOP(K),LocalVar%DT, CntrPar%F_FlpCornerFreq, CntrPar%F_FlpDamping, LocalVar%iStatus, .FALSE.,objInst%instLPF)

! Find derivative and derivative error of blade root bending moment
RootMyb_Vel(K) = (RootMOOP_F(K) - RootMyb_Last(K))/LocalVar%DT
RootMyb_VelErr(K) = 0 - RootMyb_Vel(K)!LocalVar%rootMOOP(K)
Expand Down
2 changes: 2 additions & 0 deletions src/ROSCO_Types.f90
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ MODULE ROSCO_Types
Real(4) :: F_SSCornerFreq ! Setpoint Smoother mode {0: no setpoint smoothing, 1: introduce setpoint smoothing}
Real(4) :: F_FlCornerFreq ! Corner frequency (-3dB point) in the second order low pass filter of the tower-top fore-aft motion for floating feedback control [rad/s].
Real(4) :: F_FlDamping ! Damping constant in the first order low pass filter of the tower-top fore-aft motion for floating feedback control [-].
Real(4) :: F_FlpCornerFreq ! Corner frequency (-3dB point) in the second order low pass filter of the blade root bending moment for flap control [rad/s].
Real(4) :: F_FlpDamping ! Damping constant in the first order low pass filter of the blade root bending moment for flap control[-].

REAL(4) :: FA_HPFCornerFreq ! Corner frequency (-3dB point) in the high-pass filter on the fore-aft acceleration signal [rad/s]
REAL(4) :: FA_IntSat ! Integrator saturation (maximum signal amplitude contrbution to pitch from FA damper), [rad]
Expand Down
1 change: 1 addition & 0 deletions src/ReadSetParameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ SUBROUTINE ReadControlParameterFileSub(CntrPar, accINFILE, accINFILE_size)!, acc
READ(UnControllerParameters,*) CntrPar%F_NotchBetaNumDen
READ(UnControllerParameters,*) CntrPar%F_SSCornerFreq
READ(UnControllerParameters,*) CntrPar%F_FlCornerFreq, CntrPar%F_FlDamping
READ(UnControllerParameters,*) CntrPar%F_FlpCornerFreq, CntrPar%F_FlpDamping
READ(UnControllerParameters, *)

!----------- BLADE PITCH CONTROLLER CONSTANTS -----------
Expand Down

0 comments on commit f2b0e50

Please sign in to comment.