Replies: 7 comments 20 replies
-
Did you change anything in the user file? |
Beta Was this translation helpful? Give feedback.
-
I changed the mesh distribution in the wall normal direction to a smooth tanh function. This works with the original mesh but so far did not worked with any other mesh. |
Beta Was this translation helpful? Give feedback.
-
I think there is discrepancy here. t seems that the original mesh has a different size in z direction. although in turbulent_channel.f90 file the size in z direction is said to be 4/3 pi. The initial condition is also based on a size of 4/3pi in z direction. |
Beta Was this translation helpful? Give feedback.
-
I looked at the code for the initial condition: So of course, it would be important that the 4pi and 4/3pi correpsond to the actual domain size used; if not you will have a discontinuity in the domain which is never good. So make sure that the alpha and beta are the correct fundamental wavenumbers for your case. Then we select one wavenumber. I don't like this initial condition very much, and I would add a bit of random noise on top of that as well. You can create some randomness by coming up wiht some carzy function of coordinates, e.g. random = sin(x2-500*tan(y3-2z)+100zz**3*x+exp(x)) or so, and just add it to the velcoity (with a scale of e.g. 1e-2). So the basic idea is to have a low frequency disturbance, and a high-requency noise on top. |
Beta Was this translation helpful? Give feedback.
-
ok, I will try to run the case in the examples directory, and see what the problem could be. I suggest that we stick to the sizes previously used. KMM87 had 4pi x 2pi, and MKM99 had 4pi x 4/3 pi for the low Re, and 2pi x pi for the higher Reynolds numbers. I think the length in x should be 4pi, and I will test for 4/3pi and 2pi as the width. |
Beta Was this translation helpful? Give feedback.
-
I worked a bit on the intiial condition, and I issued a PR, #1352. You can have a look there and try it out. It should get turbulent for different sizes. You just need to update the domain width in the f90 file, and then also adapt the wavenumbers (probably not even needed). |
Beta Was this translation helpful? Give feedback.
-
I performed the simulation with the new initial condition and could observe the transition to the turbulent regime. Since I used a finer mesh with a larger time step, I had to reduce the values of eps to avoid divergence. |
Beta Was this translation helpful? Give feedback.
-
Hi,
![u velocity](https://private-user-images.githubusercontent.com/161873038/346273644-2e4cb67b-fa88-455e-9676-3796d07327c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODUxMzUsIm5iZiI6MTczOTU4NDgzNSwicGF0aCI6Ii8xNjE4NzMwMzgvMzQ2MjczNjQ0LTJlNGNiNjdiLWZhODgtNDU1ZS05Njc2LTM3OTZkMDczMjdjNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMjAwMzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNmU1MjcxYWYxZTcxZjVjZTRjZDUzZmY4NjA0ODZkZTI1YTFiZmE5MzBhOGNjYjM1N2Q3ZTA1Y2U0ZDJkMTA1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.GNRz7Grj9aZ4MfstPnBiK91TibkHVg42BnhpZ0Vf25Y)
I am trying to simulate turbulent flow inside a channel at Re_tau=180. The available mesh has 18 elements in each direction. I tried to generate a finer mesh with genmeshbox but then the transition to turbulence does not occur and the flow somehow dampens.
I noticed that when I create a mesh with the same number of elements, this problem does not appear. If I only change the mesh distribution in y direction there will be no problem too. Only when I try to increase mesh elements this problem appears.
I would like to know others' opinion in this regard. What could be the cause of this? I look forward to any suggestion.
best,
Kamyar
Beta Was this translation helpful? Give feedback.
All reactions