I still on the first tutorial with Code Saturne on the window version. I'm having trouble with the users defined boundary condition by using a subroutine. I tried the following code to define the temperature on the inlet. I'm an expert with python script but comparing to the EXAMPLE file it seem to be similar.
Code: Select all
call getfbr('1', nlelt, lstelt)
if (ttcabs.lt.3.8d0) then
do ielt = 1, nlelt
ifac = lstelt(ielt)
rcodcl(ifac,isca(1),1) = 20.d0 + 100.d0*ttcabs
enddo
else
do ielt = 1, nlelt
ifac = lstelt(ielt)
rcodcl(ifac,isca(1),1) = 400.d0
enddo
endif
I see in few post that could be a version problem. I use the 4.0 version on windows.
Best regards
Gautier