Closed mhadziabdic closed 5 years ago
I found out that boundary condition for temperature is not written in backup file, so Compute_Temperature does not know anything about temperature boundary conditions.
I see now the problem, but I need your advice how to solve it. In Load_Boundary_Conditions, boundary type for temperature is read only if in_out is not restart. It is not clear for me why we split boundary type for momentum and temperature.
Boundary conditions for temperature (as well as other scalars) are split from momentum, because they can have a plethora of combinations. Imagine a wall with fixed heat flux, but fixed value for user scalar 1, and then flux again for user scalar 2, and so forth. We could have almost infinite number of combinations of boundary conditions for scalars, and they can't be associated with grid as the momentum can. Bear in mind that many users will be using scalars for many applications - chemical species, multiphase situations, to name the few.
Which case was this Hamo? Was it RANS or LES channel?
It was RANS channel. I am testing it now for channel with the latest code and again i have problem when periodic boundary condition is used. It is something related to boundary cells. There is one more problem which I noticed, Calculate_Face_Geometry.f90 does not compute near_wall_cells because wall and wall_flux BC is not recognized.
do s = 1, grid % n_faces c1 = grid % faces_c(1,s) c2 = grid % faces_c(2,s)
if(c2 < 0) then
if(Grid_Mod_Bnd_Cond_Type(grid,c2) .eq. WALL .or. &
Grid_Mod_Bnd_Cond_Type(grid,c2) .eq. WALLFL) then
grid % cell_near_wall(c1) = .true.
end if
end if
end do ! faces
There is a problem with Grid_Mod_Bnd_Cond_Type it seems.
I noticed one more thing, probably not related to this issue. Number of iteration for pressure is now ok, it is 0 or around 0, but for W and T it is 4 even residuals are very small, while for other variables is 0 or 1.
We had this issue five months ago. Did we resolve it in the meanwhile?
This case is resolved now and temperature equations is working now. Can be closed.
Regards,
Muhamed. Assoc. Prof. Muhamed Hadziabdic Mech. Engineering Program Coordinator Faculty of Engineering and Natural Sciences International University of Sarajevo Hrasnicka cesta 15, 71210, Ilidza, Sarajevo
mob. +387 61 228 489 mail: mhadziabdic@ius.edu.ba
On Fri, Nov 16, 2018 at 12:01 PM Bojan Niceno notifications@github.com wrote:
We had this issue five months ago. Did we resolve it in the meanwhile?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DelNov/T-Flows/issues/26#issuecomment-439359404, or mute the thread https://github.com/notifications/unsubscribe-auth/AeMU-kt0EdwIoRoe0l47cchFKkBNPvt0ks5uvpsYgaJpZM4UeKCC .
Everything goes fine when computation is run in one shot. But once the restart file is used temperature starts decreasing, probably as result of User_Mod_Source function. I modified Source.f90 in User_Mod sub-directory in Process dir, but not in the case directory. Could this somehow be a problem?
Source.f90 is modified as follows: