Skip to content

Commit

Permalink
AD: default value for skew redistr mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Branlard committed May 6, 2024
1 parent b377678 commit eb0329c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/user/aerodyn/examples/ad_primary_example.dat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ False CompAA - Flag to compute AeroAcoustics calculation [us
--- Skew correction
1 Skew_Mod - Skew model {0=No skew model, -1=Remove non-normal component for linearization, 1=skew model active}
True SkewMomCorr - Turn the skew momentum correction on or off [used only when Skew_Mod=1]
1 SkewRedistr_Mod - Type of skewed-wake correction model (switch) {0=no redistribution, 1=Glauert/Pitt/Peters} [used only when Skew_Mod=1]
1 SkewRedistr_Mod - Type of skewed-wake correction model (switch) {0=no redistribution, 1=Glauert/Pitt/Peters, default=1} [used only when Skew_Mod=1]
"default" SkewRedistrFactor - Constant used in Pitt/Peters skewed wake model {or "default" is 15/32*pi} (-) [used only when Skew_Mod=1 and SkewRedistr_Mod=1]
--- BEM algorithm
True TipLoss - Use the Prandtl tip-loss model? (flag) [unused when WakeMod=0 or 3]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/aerodyn/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ The feature will be documented at a later time.
Link to old inputs: the previous behavior would be `SkewMomCorr=False`

**SkewRedistr_Mod**
``SkewRedistr_Mod`` allows to turn on and off the induced velocity redistribution model, and give room for other models to be selected/implemented.
``SkewRedistr_Mod`` allows to turn on and off the induced velocity redistribution model, and give room for other models to be selected/implemented. Default=1.

- 0: no redistribution
- 1: Glauert (Pitt-Peters) redistribution model
Expand Down
4 changes: 2 additions & 2 deletions modules/aerodyn/src/AeroDyn_IO.f90
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ SUBROUTINE ParsePrimaryFileInfo( PriPath, InitInp, InputFile, RootName, NumBlade
endif

! SkewRedistr_Mod - Type of skewed-wake correction model (switch) {0: no redistribution, 1=Glauert/Pitt/Peters, 2=Vortex Cylinder} [unsed only when SkewMod=1]
call ParseVar( FileInfo_In, CurLine, "SkewRedistr_Mod", InputFileData%SkewRedistr_Mod, ErrStat2, ErrMsg2, UnEc )
call ParseVarWDefault( FileInfo_In, CurLine, "SkewRedistr_Mod", InputFileData%SkewRedistr_Mod, 1, ErrStat2, ErrMsg2, UnEc )
if (newInputMissing('SkewRedistr_Mod', CurLine, errStat2, errMsg2)) then
call WrScr(' Setting SkewRedistr_Mod to 1 as the input is Missing (legacy behavior).')
InputFileData%SkewRedistr_Mod = 1
Expand All @@ -815,7 +815,7 @@ SUBROUTINE ParsePrimaryFileInfo( PriPath, InitInp, InputFile, RootName, NumBlade
! SkewModFactor - Constant used in Pitt/Peters skewed wake model {or "default" is 15/32*pi} (-) [used only when SkewMod=2; unused when WakeMod=0 or 3]
call ParseVarWDefault( FileInfo_In, CurLine, "SkewModFactor", InputFileData%SkewModFactor, (15.0_ReKi * pi / 32.0_ReKi), ErrStat2, ErrMsg2, UnEc )
if( legacyInputPresent('SkewModFactor', CurLine, ErrStat2, ErrMsg2, 'Rename this parameter to SkewRedistrFactor')) then

! pass
else
call ParseVarWDefault( FileInfo_In, CurLine, "SkewRedistrFactor", InputFileData%SkewModFactor, (15.0_ReKi * pi / 32.0_ReKi), ErrStat2, ErrMsg2, UnEc ); if (Failed()) return
call ParseCom (FileInfo_in, CurLine, sDummy, errStat2, errMsg2, UnEc, isLegalComment); if (Failed()) return
Expand Down

0 comments on commit eb0329c

Please sign in to comment.