Velocity direction normal to the inlet.

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Norbert Modlinski

Velocity direction normal to the inlet.

Post by Norbert Modlinski »

Dear support and users
Is there any way to set a velocity direction normal to the inlet without setting speed vector direction in uspcl.f90 file?
Best regards
Norbert
Alexandre Douce

Re: Velocity direction normal to the inlet.

Post by Alexandre Douce »

[edit: D. Monfort,  5 oct. 2010, correct code example]
Hi Norbert,
You should use the array rcodcl in uscpcl.f90 in order to specify the velocity direction. If you want specify, a normal direction you can use the surfbo array:
do ifac = 1,nfac
  rcodcl(ifac, iu(iphas), 1) = -surfbo(1, ifac)
  rcodcl(ifac, iv(iphas), 1) = -surfbo(2, ifac)
  rcodcl(ifac, iw(iphas), 1) = -surfbo(3, ifac) 
enddo
Of course you have to impose the flow rate with iqimp and qimpat.
 
Post Reply