Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
cbc03dd
Update AeroDyn.f90
robynnemurrayNREL Mar 8, 2017
35b2161
Update AeroDyn_IO.f90
robynnemurrayNREL Mar 8, 2017
cb428f3
Update AeroDyn_Registry.txt
robynnemurrayNREL Mar 8, 2017
7ebc735
Update AirfoilInfo_Registry.txt
robynnemurrayNREL Mar 8, 2017
323cbe3
Update BEMT.f90
robynnemurrayNREL Mar 8, 2017
ebb42cf
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 8, 2017
12ba1d1
Update BEMT_Registry.txt
robynnemurrayNREL Mar 8, 2017
52b80b6
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 8, 2017
9e2c177
Update AeroDyn_Registry.txt
robynnemurrayNREL Mar 9, 2017
ed930dc
Update AeroDyn.f90
robynnemurrayNREL Mar 9, 2017
ec4cc78
Update AeroDyn_IO.f90
robynnemurrayNREL Mar 9, 2017
8a4b251
Update AirfoilInfo_Registry.txt
robynnemurrayNREL Mar 9, 2017
fe4c1d6
Update BEMT_Registry.txt
robynnemurrayNREL Mar 9, 2017
612d47d
Update BEMT.f90
robynnemurrayNREL Mar 9, 2017
44f74af
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 9, 2017
aaeb837
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 14, 2017
beb780b
Compute Cm and Cpmin
robynnemurrayNREL Mar 14, 2017
afe344b
Update AirfoilInfo.f90
robynnemurrayNREL Mar 14, 2017
189d2df
Update AeroDyn_IO.f90
robynnemurrayNREL Mar 14, 2017
8620d4c
Update BEMT.f90
robynnemurrayNREL Mar 14, 2017
72a10ad
Update BEMT.f90
robynnemurrayNREL Mar 14, 2017
9934921
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 14, 2017
b8cd5c4
Update AirfoilInfo_Registry.txt
robynnemurrayNREL Mar 14, 2017
59f6ebc
Update AeroDyn_Driver.f90
robynnemurrayNREL Mar 14, 2017
1517424
Update BEMT.f90
robynnemurrayNREL Mar 14, 2017
cbe05c0
Update BEMT.f90
robynnemurrayNREL Mar 14, 2017
7fc54e9
Update BEMT.f90
robynnemurrayNREL Mar 14, 2017
2733d1b
Update BEMT.f90
robynnemurrayNREL Mar 20, 2017
87872f2
Cavitation
robynnemurrayNREL Mar 20, 2017
ea6d0a1
BEMT_CalcOutputs includes cavitation check
robynnemurrayNREL Mar 20, 2017
aca6695
Update AeroDyn.f90
robynnemurrayNREL Mar 24, 2017
5d9e453
Update AeroDyn_IO.f90
robynnemurrayNREL Mar 24, 2017
fda7399
Update AeroDyn_Registry.txt
robynnemurrayNREL Mar 24, 2017
e25d94e
Update AirfoilInfo.f90
robynnemurrayNREL Mar 24, 2017
76a63d6
Update AirfoilInfo_Registry.txt
robynnemurrayNREL Mar 24, 2017
10d833f
Update BEMT.f90
robynnemurrayNREL Mar 24, 2017
8896b79
Update BEMTUncoupled.f90
robynnemurrayNREL Mar 24, 2017
e1ba813
Update BEMT_Registry.txt
robynnemurrayNREL Mar 24, 2017
2a4fc03
Merge pull request #1 from robynnemurrayNREL/March-24
robynnemurrayNREL Mar 24, 2017
49e84e2
Updating files to remove redundancies
robynnemurrayNREL Mar 28, 2017
cdaf84b
Cleaned up code
robynnemurrayNREL Apr 20, 2017
8d15e7e
Cleaned up code
robynnemurrayNREL Apr 20, 2017
a73096c
Cleaned up
robynnemurrayNREL Apr 20, 2017
ac114e5
Cleaned up
robynnemurrayNREL Apr 20, 2017
0d06f68
Cleaned up code
robynnemurrayNREL Apr 20, 2017
372d825
Updated with cavitation outputs
robynnemurrayNREL Apr 20, 2017
83b3cc1
AeroDyn V15.04- Updated to include cavitation check
robynnemurrayNREL Mar 8, 2017
621629c
Merge branch 'PullBranch' of https://github.com/robynnemurrayNREL/Ope…
robynnemurrayNREL Apr 20, 2017
23911d0
Added Spd sound back in
robynnemurrayNREL Apr 20, 2017
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update BEMT.f90
  • Loading branch information
robynnemurrayNREL authored Mar 8, 2017
commit 323cbe350ec656ad66a64ea80b5a4e1c81eb4cb6
45 changes: 42 additions & 3 deletions modules-local/aerodyn/src/BEMT.f90
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ subroutine BEMT_SetParameters( InitInp, p, errStat, errMsg )

!p%DT = InitInp%DT
p%airDens = InitInp%airDens
p%kinVisc = InitInp%kinVisc
p%kinVisc = InitInp%kinVisc
p%Patm = InitInp%Patm
p%Pvap = InitInp%Pvap
p%CavitCheck = InitInp%CavitCheck
p%FluidDepth = InitInp%FluidDepth
p%skewWakeMod = InitInp%skewWakeMod
p%useTipLoss = InitInp%useTipLoss
p%useHubLoss = InitInp%useHubLoss
Expand All @@ -219,6 +223,7 @@ subroutine BEMT_SetParameters( InitInp, p, errStat, errMsg )
p%numReIterations = InitInp%numReIterations
p%maxIndIterations = InitInp%maxIndIterations
p%aTol = InitInp%aTol
p%InCol_Cpmin = InitInp%InCol_Cpmin

end subroutine BEMT_SetParameters

Expand Down Expand Up @@ -465,6 +470,9 @@ subroutine BEMT_AllocOutput( y, p, errStat, errMsg )
call allocAry( y%Cm, p%numBladeNodes, p%numBlades, 'y%Cm', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)
call allocAry( y%Cl, p%numBladeNodes, p%numBlades, 'y%Cl', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)
call allocAry( y%Cd, p%numBladeNodes, p%numBlades, 'y%Cd', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)
call allocAry( y%Cpmin, p%numBladeNodes, p%numBlades, 'y%Cpmin', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)
call allocAry( y%SigmaCavit, p%numBladeNodes, p%numBlades, 'y%SigmaCavit', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)
call allocAry( y%SigmaCavitCrit, p%numBladeNodes, p%numBlades, 'y%SigmaCavitCrit', errStat2, errMsg2); call setErrStat(errStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName)

if (ErrStat >= AbortErrLev) RETURN

Expand Down Expand Up @@ -726,6 +734,12 @@ subroutine BEMT_Init( InitInp, u, p, x, xd, z, OtherState, AFInfo, y, misc, Inte
call WrScr( 'Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. BladeNode = '//trim(num2lstr(i))//', Blade = '//trim(num2lstr(j)) )
end if

if ( p%CavitCheck ) then !Turn off unsteady aerodynamics if we are doing a cavitation check
OtherState%UA_Flag(i,j) = .false.
call WrScr( 'Warning: Turning off Unsteady Aerodynamics because doing cavitation check' )
call WrScr( 'To run Unsteady Aerodynamics, set CavitCheck to FALSE in input file' )
end if

end do
end do

Expand Down Expand Up @@ -1082,7 +1096,7 @@ subroutine BEMT_CalcOutput( t, u, p, x, xd, z, OtherState, AFInfo, y, m, errStat


real(ReKi) :: Re, fzero
real(ReKi) :: Rtip ! maximum rlocal value for node j over all blades
real(ReKi) :: Rtip,SigmaCavitCrit, SigmaCavit ! maximum rlocal value for node j over all blades

integer(IntKi) :: i ! Generic index
integer(IntKi) :: j ! Loops through nodes / elements
Expand Down Expand Up @@ -1238,8 +1252,33 @@ subroutine BEMT_CalcOutput( t, u, p, x, xd, z, OtherState, AFInfo, y, m, errStat
y%Cl(i,j), y%Cd(i,j), y%Cm(i,j), errStat2, errMsg2 )
call SetErrStat(ErrStat2,ErrMsg2,ErrStat,ErrMsg,RoutineName//trim(NodeTxt))
if (errStat >= AbortErrLev) return



if ( p%CavitCheck ) then ! This calculates the cavitation number for the airfoil at the node in quesiton, and compares to the critical cavitation number based on the vapour pressure and submerged depth

SigmaCavitCrit= ( ( p%Patm + ( 9.81_ReKi * (p%FluidDepth - ( u%rlocal(i,j))* cos(u%psi(j) )) * p%airDens)) - p%Pvap ) / ( 0.5_ReKi * p%airDens * y%Vrel(i,j)**2) ! Critical value of Sigma, cavitation if we go over this
SigmaCavit= -1* y%Cpmin(i,j) ! Actual cavitation number on blade node j

if (SigmaCavitCrit < SigmaCavit) then
call WrScr( NewLine//'FAILED CAVITATION CHECK'//' Node # = '//trim(num2lstr(i)//'Blade # = '//trim(num2lstr(j))))
end if

if (y%Vrel(i,j) == 0) then !if Vrel = 0 in certain cases when Prandtls tip and hub loss factors are used, use the relative verlocity without induction
SigmaCavitCrit= ( ( p%Patm + ( 9.81_ReKi * (p%FluidDepth - ( u%rlocal(i,j))* cos(u%psi(j) )) * p%airDens)) - p%Pvap ) / ( 0.5_ReKi * p%airDens * (sqrt((Vx**2 + Vy**2)))**2) ! Critical value of Sigma, cavitation if we go over this
end if

y%SigmaCavit(i,j)= SigmaCavit
y%SigmaCavitCrit(i,j)=SigmaCavitCrit

end if

end if






! Compute Cx, Cy given Cl, Cd and phi
! NOTE: For these calculations we force the useAIDrag and useTIDrag flags to .TRUE.
Expand Down Expand Up @@ -1932,4 +1971,4 @@ end subroutine BEMT_UnCoupledSolve


end module BEMT