You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to replicate a working case from Nek5000 into nekRS. It's a simple flow through a cube. I am using the same .usr file that I was using in Nek5000. I also am not sure what to change in the *.udf, *.oudf and ci.inc file and I copied them from examples/channel as is. The usrdat, userbc, useric look like so:
subroutine userbc(ix,iy,iz,iside,ieg) ! set up boundary conditions
include 'SIZE'
include 'TOTAL'
include 'NEKUSE'
ux = 0.0
uy = 1.0
uz = 0.0
temp = 0.0
return
end
subroutine useric(ix,iy,iz,ieg) ! set up initial conditions
include 'SIZE'
include 'TOTAL'
include 'NEKUSE'
ux = 0.0
uy = 0.5
uz = 0.0
temp = 0.0
return
end
subroutine usrdat() ! This routine to modify element vertices
include 'SIZE'
include 'TOTAL'
!Set boundary conditions for Exodus mesh
do i=1,nelt
do j=1,2*ndim
id_face1 = bc(5,j,i,1) ! Velocity boundary conditions
if(id_face1.eq.1) then
cbc(j,i,1)='v '
elseif(id_face1.eq.2) then
cbc(j,i,1)='O '
elseif(id_face1.eq.3) then
cbc(j,i,1)='W '
endif
enddo
enddo
return
end
With this I get "ERROR: Invalid Boundary condition type! ierr=2". Also, is there any tutorial documentation that I can read through for basic question?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to replicate a working case from Nek5000 into nekRS. It's a simple flow through a cube. I am using the same .usr file that I was using in Nek5000. I also am not sure what to change in the *.udf, *.oudf and ci.inc file and I copied them from examples/channel as is. The usrdat, userbc, useric look like so:
With this I get "ERROR: Invalid Boundary condition type! ierr=2". Also, is there any tutorial documentation that I can read through for basic question?
Thank you
Nilay
Beta Was this translation helpful? Give feedback.
All reactions