-
Hello, I hope you are all doing well. I am currently conducting simulations of flow in a periodic channel using Incompact3D. I am attempting to replicate the results presented in the paper by Flageul et al. (https://www.sciencedirect.com/science/article/pii/S0142727X15000910). Specifically, I want to impose a constant heat flux on both walls using Neumann boundary conditions. Below, I have included my input file for reference. Additionally, I should mention that in the file transeq.f90, immediately after the line !X PENCILS, where the following statement appears: dphi1(:,:,:,1) = ta1(:,:,:) + tc1(:,:,:), I have added a source term as follows: dphi1(:,:,:,1) = ta1(:,:,:) + tc1(:,:,:) + ux1(:,:,:). I would like to know if the way I have configured the Neumann boundary conditions is correct, as the results I am obtaining are incorrect, and I honestly do not know what might be wrong. Thank you in advance for your time and help. ######################################### ! -- mode: f90 -- !=================== ! Flow type (1=Lock-exchange, 2=TGV, 3=Channel, 4=Periodic hill, 5=Cylinder, 6=dbg-schemes) ! Domain decomposition ! Mesh ! Domain ! Flow parameters ! Time stepping ! Enable modelling tools ! Boundary and initial conditions nclx1 = 0 /End !==================== ! Spatial derivatives ! Time scheme ! Dissipation control /End !================= ! Basic I/O validation_restart = F /End !================= wrotation = 0.12 ! rotation speed to trigger turbulence /End !================= flag_all_digits = T ! By default, only 6 digits, 16 when True /End !######################## !================ ! Boundary Conditions --> alpha_sc T +- beta_sc dT/dy = g_sc ! Bottom ! Top sc(1) = 0.71 ! Schmidt number (or Prandt Number) nclxS1 = 0 /End !================ iles = 0 ! LES Model (1: Phys Smag, 2: Phys WALE, 3: Phys dyn. Smag, 4: iSVV, 5: dyn SEV) /End &CASE ########################################################### |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, Have you tried to run a laminar channel flow in 2D with an imposed heat flux to check your input file ? In your input file, the value selected for the imposed flux is probably incorrect. See https://github.com/mathrack/incompact3d/blob/master/neuma/schemes.f90#L1149. Check the detailed implementation of the boundary condition for implicit time schemes in the current code. I think the code is imposing the outward wall-normal derivative. If you are not sure to understand what the code is doing, you can try to deactivate the convective term and simply look at the diffusion of the scalar. Please note that the source code and the input file for the cited paper is available at https://github.com/mathrack/incompact3d and https://repo.ijs.si/CFLAG/incompact3d. As a side remark, when imposing the flux at the top and bottom walls, one might observe a slow temporal drift of the temperature. To overcome this slow temporal drift, one can enforce a constant value for the domain-averaged temperature. If the equilibrium between the imposed flux and the source term is good, the correction will be small. Cheers, |
Beta Was this translation helpful? Give feedback.
Hello,
Have you tried to run a laminar channel flow in 2D with an imposed heat flux to check your input file ? In your input file, the value selected for the imposed flux is probably incorrect. See https://github.com/mathrack/incompact3d/blob/master/neuma/schemes.f90#L1149. Check the detailed implementation of the boundary condition for implicit time schemes in the current code. I think the code is imposing the outward wall-normal derivative.
If you are not sure to understand what the code is doing, you can try to deactivate the convective term and simply look at the diffusion of the scalar.
Please note that the source code and the input file for the cited paper is available at https://gi…