Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct frequency error in AeroDyn driver prescribed motions #2370

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Changes from 1 commit
Commits
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
4 changes: 2 additions & 2 deletions modules/aerodyn/src/AeroDyn_Driver_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ subroutine Dvr_ReadInputFile(fileName, dvr, errStat, errMsg )
call ParseVar(FileInfo_In, CurLine, 'amplitude'//sWT , wt%amplitude, errStat2, errMsg2, unEc); if(Failed()) return
call ParseVar(FileInfo_In, CurLine, 'frequency'//sWT , wt%frequency, errStat2, errMsg2, unEc); if(Failed()) return
call ParseVar(FileInfo_In, CurLine, 'baseMotionFilename'//sWT, wt%motionFileName, errStat2, errMsg2, unEc); if(Failed()) return
wt%frequency = wt%frequency * 2 *pi ! Hz to rad/s
wt%frequency = wt%frequency * 2 * pi ! Hz to rad/s
if (dvr%analysisType==idAnalysisRegular) then
if (wt%motionType==idBaseMotionGeneral) then
call ReadDelimFile(wt%motionFileName, 19, wt%motion, errStat2, errMsg2, priPath=priPath); if(Failed()) return
Expand Down Expand Up @@ -1313,7 +1313,7 @@ subroutine setSimpleMotion(wt, rotSpeed, bldPitch, nacYaw, DOF, amplitude, frequ
integer :: i
wt%degreeofFreedom = DOF
wt%amplitude = amplitude
wt%frequency = frequency * 2 *pi ! Hz to rad/s
wt%frequency = frequency
wt%nac%motionType = idNacMotionConstant
wt%nac%yaw = nacYaw* PI /180._ReKi ! deg 2 rad
wt%hub%motionType = idHubMotionConstant
Expand Down
Loading