call neknek_exchange -- in userchk
include 'NEKNEK' -- in some subroutines.
So, I presume that I should comment these out. But, will this disrupt the rest of the code if I am to use turbJet as a stand alone code?
Thanks
Nadeem
C-----------------------------------------------------------------------
subroutine userbc (ix,iy,iz,iside,ieg)
include 'SIZE'
include 'TOTAL'
include 'NEKUSE'
include 'NEKNEK'
integer e, bID
e = gllel(ieg)
bID = boundaryID(iside,e)
pa = 0.0
if (cbu.eq.'o ') then
U0 = 1.0 ! characteristic velocity
delta = 0.1 ! small positive constant
pa = dongOutflow(ix,iy,iz,e,iside,U0,delta)
elseif (bID.eq.3) then ! coflow
ux = 0.0
uy = 0.0
uz = sstep(0.0, U_CO, 0.6, 0.035, r)
else ! jet
ux = valint(ix,iy,iz,e,1)
uy = valint(ix,iy,iz,e,2)
uz = valint(ix,iy,iz,e,3)
endif
return
end
C-----------------------------------------------------------------------
subroutine useric (ix,iy,iz,ieg)
include 'SIZE'
include 'TSTEP'
include 'NEKUSE'
if (r.le.0.5) then
uz = 24*(0.5**4 - r**4)
else
uz = sstep(0.0, U_CO, 0.6, 0.035, r)
endif
return
end
C-----------------------------------------------------------------------
subroutine usrdat2
include 'SIZE'
include 'TOTAL'
c set velocity BCs
call setbc(1,1,'int') ! upstream inflow
call setbc(2,1,'W ') ! upstream pipe wall
call setbc(3,1,'v ') ! coflow
call setbc(4,1,'SYM') ! lateral farfield
call setbc(5,1,'o ')
c call setbc(5,1,'O ')
call neknek_setup
return
end
C-----------------------------------------------------------------------