I am running into a problem while adapting a 2D U-channel flow into 3D. I am using this NS solver and the buildlayers command to ‘extrude’ the previously used 2D geometry. When checking the results it seems as if there is virtually no flow between the inlet and outlet.
I have noticed that the mesh refinement (including the amount of layers set in the buildlayers command) influence the result in an unexpected manner, with a higher refinement causing a seemingly more turbulent flow at the in- and outlet.
I have attached the correctly working 2D script and the faulty 3D script, as well as a reference image from the 2D result and two images of the 3D result with buildlayers set to 10 and 30 layers, respectively, here (Sorry, I cannot attach anything here yet since I am a new user).
However, I’m still worried about the trunc function and split mesh in FreeFem++ do not work properly in 3D. Because, I encountered the similar problems as you.
Turns out the issue is not resolved after all. Low mesh refinement initially made me believe things were working correctly, but now after refining it, the issue remains exactly as before.
I am still very clueless as to why there seems to be no connected flow between inlet and outlet and any help is highly appreciated!
I have attached the correctly working 2D script and the faulty 3D script (now reading in the also attached mesh), as well as a reference image from the 2D result and a slice from the 3D result, here.
Thank you!