I'm going to set a convective outlet boundary condition for the incompressible flow around a 3d airfoil, but I'm a little bit confused. I read the section about this type of boundary in the theory PDF file which is given below:
I want to set this condition for three velocity components which means:
According to the text, the user must specify the (convective celerity) which is the freestream velocity () in my case and also which I think is the value of at the outlet boundary face at the previous time step so I set previous iteration values of , and, at the outlet boundary as s.
I used the following codes:
Code: Select all
double precision, dimension(:,:), pointer :: previous_vel
call field_get_val_prev_v(ivarfl(iu), previous_vel)
...
call getfbr("OUTLET", nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
iel = ifabor(ifac)
itypfb(ifac) = iindef
icodcl(ifac,iu) = 2
rcodcl(ifac,iu,1) = Uref
rcodcl(ifac,iu,2) = previous_vel(1,iel)
icodcl(ifac,iv) = 2
rcodcl(ifac,iv,1) = Uref
rcodcl(ifac,iv,2) = previous_vel(2,iel)
icodcl(ifac,iw) = 2
rcodcl(ifac,iw,1) = Uref
rcodcl(ifac,iw,2) = previous_vel(3,iel)
enddo
1- The value of which is in my case, should be set as rcodcl(ifac,ivar,1) or rcodcl(ifac,ivar,2)?
2- What is the proper value for itypfb in this case (incompressible turbulent flow around an airfoil with convective outlet)? I used itypfb(ifac) = iindef because I didn't know what else to choose.
Please correct me if there is any mistake.
Thank you in advance for your support.
Regards,
Mohammad