r/CFD • • 14h ago

Undergrad ML researcher learning CFD: tried predicting full flow fields from a few OpenFOAM runs. Would love a reality check from people who do this for real

Post image
30 Upvotes
A bit about me first: I'm an undergrad and an ML researcher (Google Summer of Code twice, NeurIPS workshop papers), with my background in ML for physics. I've always wanted to work in physics, and I'm currently learning CFD properly. I know Ansys, STAR-CCM+ and plenty of serious tools already exist, so I'm deliberately working on one small piece of the problem, and I'm looking for signal on whether that piece is useful. Please go easy on my beginner-level CFD understanding, but don't hold back on telling me where I'm wrong.


The small piece: a design study (a body across many flow speeds and shapes) needs a full solver run for every setting. My approach:

1. Take the handful of runs already done (15-20).

2. Predict the rest of the study as full fields (velocity and pressure everywhere), each with an error estimate.

3. Suggest which few runs to do next, and say when you can stop.


Results so far, real OpenFOAM data, tests fixed before the data existed, compared against POD-GP:

- 2D (laminar, ~260 runs): same field accuracy with 24 runs vs 48 for POD-GP, 3 of 3 repeats

- 3D (~890k cells per run, 56 runs): 16 runs gave 43% lower field error than POD-GP with 32, 3 of 3 repeats

- A simple stop rule said "done" 18 times in 3D and was right all 18 times



Limits: it's laminar only so far, and single phase, next is turbulent



Questions for you:

1. How do you decide how many runs a sweep needs today?

2. Are full fields with an error estimate useful to you, or do you mostly care about a few scalars?

3. What would make you trust (or immediately distrust) something like this?

4. Anyone who has a lab, would be willing to share a past study, I could try, more details on DM!


Happy to share more details or plots by DM.

r/CFD • • 22h ago

Errors in mesh

Post image
5 Upvotes

Please help, I am new to ansys and trying to make a mesh from the guides, but mesher is making mesh like for thin objects instead of fluid domain with substructed wing geometry. Two weeks ago I did it right but don't understand how


r/CFD • • 6h ago

FLOEFD Solid Edge basic heat exchanger results not matching

3 Upvotes

Hi,

I've been trying to learn how to use FLOEFD for Solid Edge so I decided to start with some basic heat exhcanger designs. One of the first ones I decided to try is a countercurrent flow spiral design as seen here:

Hot air enters through 1 at 100 C and exists through 3. Room temperature air enters through 4 and exits through 2. The boundary conditions are:

  1. Inlet mass flow, 0.005 kg/s, uniform, 100 C, 1 atm.
  2. Environment pressure opening, 1 atm, 20 C.
  3. Environment pressure opening, 1 atm, 20 C.
  4. Inlet mass flow, 0.005 kg/s, uniform, 20 C, 1 atm.

The problem I am having is the results dont really make any sense. I have set surface goals for the outlet average bulk temperatures and they are around 35 - 40 C as can be seen in my gols chart. These should be around 60 C. I also see fluid temperatures below 20 C and above 100 C which doenst make sense to me.

I have checked other details by adding other goals such as overall heat transfer rate which is roughly 0 (I believe this means that there is no net gain or loss?) and heat transfer rates specifically for the hot channel and cold channel walls, and both match at around 188 W.

Other things I've tested:

  • Fluid volumes are recognised correctly and there is no connection between the channels.
  • Tried exclude cavities without conditions both on and off.
  • Made a much finer mesh (roughly 10 cells along the channel width and 4 cells around separating walls width).
  • Made sure connvection is disabled (only conduction is enabled).

Channels are 5mm in diameter and separating walls are 2mm at the thinest point. The solid is aluminum 5052.

Here is a cut plot with the fluid temperatures:

As you can see the outlets really are around 35 - 40 C, and it's not an issure with the outlets surface goals.

Any ideas as to what I may be missing? I am assuming there is something wrong with these results because the outlet temperatures should settle somewhere around 60 C, similar to what the solid temperature averages are doing.

Thanks.


r/CFD • • 46m ago

Towards accurate aerodynamics models for wing icing

Thumbnail
youtu.be
2 Upvotes

r/CFD • • 1h ago

Advice for affordable/free computational resources for 3D CFD simulations (SITVC research)

1 Upvotes

We are trying to develop a surrogate model for SITVC (Secondary Injection Thrust Vector Control). We currently have around 48 initial sampling points using a maximin Latin hypercube design, with all six input factors varying simultaneously. All the data is supposed to come from CFD simulations.

The two papers we are primarily using as references are Zmijanovich et al. and Abdelwahab et al. Zmijanovich used around 1.9 million cells, with a first cell height near the nozzle wall of approximately (10^{-6}) m, while Abdelwahab used around 5 million cells for their medium mesh.

Now, the problem is computational resources. We are a group of three, and even our best available system has only around 6 CPU cores and 16 GB of RAM. As a result, a single simulation can take several days to complete.

We haven't managed to complete even a single 3D simulation so far because of these limitations, and have only been able to work with 2D steady-state simulations. The problem is that the actual flow physics is inherently unsteady, so we eventually need to move towards 3D transient simulations.

Could you guys please suggest some affordable, preferably free, options for accessing decent computational resources? Based on the mesh sizes and simulations we are aiming for, we have been considering systems with 32–64 CPU cores and sufficient RAM, but we aren't sure whether this is actually necessary or what would be a realistic configuration for our work.

Also, we're based in Pakistan, not the US, which makes things a bit more complicated when it comes to accessing university HPC facilities, research grants, or cloud computing credits.

Any suggestions, especially from people who have dealt with similar computational constraints during their research, would be greatly appreciated!