Page 1 of 1

Velocity direction normal to the inlet.

Posted: Fri Sep 24, 2010 12:33 pm
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

Re: Velocity direction normal to the inlet.

Posted: Tue Oct 05, 2010 12:21 am
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.