Skip to content

Commit bc0f7f7

Browse files
committed
Added user manual and minor fixes
2 parents 8c7ff20 + e955158 commit bc0f7f7

6 files changed

+33
-8
lines changed

Doc/Users/CACTUS_Manual_V1_1.docx

6.04 KB
Binary file not shown.

Doc/Users/CACTUS_Manual_V1_1.pdf

175 KB
Binary file not shown.

src/CACTUS.f95

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ PROGRAM CACTUS
367367
CALL UpdateBladeVel(iflg)
368368
end if
369369

370-
!If (Itower.EQ.1) Call UpdateTowerVelocity() !JCM: Matt to add this function...
370+
If (Itower.EQ.1) Call UpdateTowerVelocity() !JCM: Matt to add this function...
371371

372372
! Regression test
373373
if (RegTFlag == 1) then

src/UpdateTowerVelocity.f95

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
SUBROUTINE UpdateTowerVelocity()
2+
3+
use tower
4+
use configr
5+
6+
implicit none
7+
8+
real :: uFSt,vFSt,wFSt,utow,vtow,wtow
9+
integer :: i,ygcerr
10+
11+
12+
Do i = 1,tower_Npts
13+
14+
! Freestream velocity at tower location
15+
Call CalcFreestream(tower_x,tower_y(i),0.0,uFSt,vFSt,wFSt,ygcerr)
16+
17+
! Induced velocity at tower location
18+
Call CalcIndVel(NT,ntTerm,NBE,NB,NE,tower_x,tower_y(i),0.0,utow,vtow,wtow)
19+
20+
tower_Vx(i) = uFSt + utow
21+
22+
End Do
23+
24+
25+
Return
26+
27+
End SUBROUTINE UpdateTowerVelocity

src/bsload.f95

-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ SUBROUTINE bsload(nElem,IsBE,alpha,alpha5,alpha75,adotnorm,Re,umach,ur,CL,CD,CM2
7676

7777
ur=sqrt(urdn**2+urdc**2)
7878
alpha=atan2(urdn,urdc)
79-
! dal=alpha-AOA_Last(nelem1)
80-
! adotnorm=dal/DT*ElemChordR/(2.0*max(ur,0.001)) ! adot*c/(2*U)
8179
wPNorm=wP*ElemChordR/(2.0*max(ur,0.001)) ! wP*c/(2*U)
8280

8381
Re=ReM*ElemChordR*ur

src/input.f95

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ SUBROUTINE input(ErrFlag)
4141

4242
! Namelist input file declaration
4343
NAMELIST/ConfigInputs/RegTFlag,DiagOutFlag,GPFlag,FSFlag,nr,convrg,nti,iut,iWall,ivtxcor,VCRFB,VCRFT,VCRFS,ifc,convrgf,nric,ntif,iutf,ixterm,xstop, &
44-
Output_ELFlag,Output_DSFlag,WallOutFlag,Incompr,DSFlag,PRFlag&
45-
&,k1pos,k1neg,GPGridSF,FSGridSF,TSFilFlag,ntsf,&
44+
Output_ELFlag,Output_DSFlag,WallOutFlag,Incompr,DSFlag,PRFlag, &
45+
k1pos,k1neg,GPGridSF,FSGridSF,TSFilFlag,ntsf
46+
NAMELIST/CaseInputs/jbtitle,GeomFilePath,RPM,Ut,nSect,AFDPath, &
47+
hAG,dFS,rho,vis,tempr,hBLRef,slex,Cdpar,CTExcrM, &
48+
WakeOutFlag,WLI,Igust,gustamp,gusttime,gustX0, &
4649
Itower,tower_Npts,tower_x,tower_ybot,tower_ytop,tower_D,tower_CD
47-
NAMELIST/CaseInputs/jbtitle,GeomFilePath,RPM,Ut,nSect,AFDPath&
48-
&,hAG,dFS,rho,vis,tempr,hBLRef,slex,Cdpar,CTExcrM&
49-
&,WakeOutFlag,WLI,Igust,gustamp,gusttime,gustX0
5050

5151
! Input Defaults
5252
RegTFlag = 0

0 commit comments

Comments
 (0)