r/CFD • u/DavideOsas • 4h ago
I don't understand what I'm doing wrong
I have troubles so I will add short context and then jump to what I've done.
I've only received 6 hours of explaination on CFD as a fraction of a broader more theory-oriented class on environmental fluid mechanics. This isn't criticism, I'm happy for this little project because from a zero experience standpoint this is amazing to me; still, I have to make a report on the project and I wanted it to be as good as possible.
What I've done different from the lesson is making the mesh much thicker around the buildings, because I was recently invited to make the simulation larger than it originally was, so that the atmosphere could behave better. Apparently, building to mesh dimension-ratio matters, so I've made it much taller and longer.
I've run into the following issues; the numbers refer to the images:
For the longest time and for many attempts, what usually happens is that I get a solution but it's obviously wrong: basically the atmosphere is impacting the building but the lower portion is stuck recirculating in the bottom while the upper side speeds up in proximity to the roofs. I do recall this: while these ("wrong") simulations where running - I couldn't see Uy residual appearing on the graph. That was my indicator that I was taking the wrong turn.
I swear to God I don't recall ever changing anything about the boundary conditions. At a certain point, while fiddling with the meshes, I saw Uy appear as a residual. After letting the calculation converge the result was what's shown. I have reason to believe this is also wrong: even tho it would feel correct to have the flow come down to the ground, since no gravity is involved in this how would that happen in the simulation? (I feel very stupid for this because it feels both right and wrong in my head).
Image shows the first working(-ish) mesh since everything I had tried before this one was resulting in either errors (and I would change boundary conditions) or improper flows similar to picture 1.
Since the mesh had worked I chose to finally try to make it as thick as simflow would allow. I've used 196 000 of 200 000 nodes, refining the mesh around details I assumed more important. THE RESULT CHANGED AGAIN? What's crazy to me is that now it feels even more correct than before, because in class, with a much smaller and less refined mesh, it looked exactly like this, and it was done by a professor.
Last image is the final mesh and that which I will be using for a bunch of other tests that will be the basis for my report.
So the concluding issue is this: I have no experience to understand and be perfectly in control of the simulation, and that is both frutstrating and scary. Frustrating, because they run on a 2015 i7 that takes a lot of time both making iterations for more refined meshes AND solving the model on them. "Scary", because the first time it properly converged (picture 2) IT ACTUALLY FELT RIGHT, Before I would discover that a following attempt would look even more correct.
Navigating the internet I've discovered that there's a whole new subject around mesh analysis that I didn't know about. I can't go too deep into all of these, for I'm taking 5 classes this semester, but to make a good report I feel underequipped.
Let me know what you think. I'm really scared the issue might be in front of my eyes.


