I have some problems to set a pressure inlet for my simulation.
I started my simulation with a velocity inlet, but now, I am more interested about setting a pressure inlet instead. So I changed the usclim.f90 file, and now it seems Code_Saturne only takes into account
the velocity inlet I set for the first time.
Here is my code:
Code: Select all
iphas=1
call getfbr('inlet', nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
iel = ifabor(ifac)
itypfb(ifac,iphas) = ientre
icodcl(ifac,ipr(iphas))=1.d0
rcdocl(ifac,ipr(iphas),1)=380.d0
icodcl(ifac,iu(iphas)) = 3.d0
icodcl(ifac,iv(iphas)) = 3.d0
icodcl(ifac,iw(iphas)) = 3.d0
enddo
I really don't know what I am doing wrong, so if you have any idea...
Best regards
Stéphane