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
Velocity direction normal to the inlet.
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: Velocity direction normal to the inlet.
[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.
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.