Now I am trying 2D simulation of a building's room by k-omega SST.
Here, I am doing pressure-driven flow. (I imposed Dirichlet pressure value at inlet and outlet.) When I assigned 10m/s as inlet velocity in GUI, 4m as hydraulic diameter in the GUI, and pressure by subroutine:
Code: Select all
call getfbr('window1_extruded', nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
itypfb(ifac) = ientre
!Dirichlet B.C for pressure:
icodcl(ifac,ipr) = 1
rcodcl(ifac,ipr,1) = 101325.633
!Neumann B.C for velocity:
icodcl(ifac,iu)= 3
icodcl(ifac,iv)= 3
icodcl(ifac,iw)= 3
enddo
However, when I changed 4m/s to 1m/s as a velocity in the GUI, this solution became divergence even though I used completely same files and computational condition.
If my subroutine overwrite correctly, velocity in GUI never affects its simulation result.
However, this cannot be true.
For another reason for this, is the possibility that my subroutine code is wrong?
Let me post succeeded case (velocity:10m/s, hydraulic diameter:4m) and divergent case (velocity:1m/s, hydraulic diameter: 4m) and could someone test this simulation?
Succeeded case: Divergent case: The difference between them is only inlet velicuty (10m/s or 1m/s) in GUI.
Best regards,
Tsubasa