Hi, Higashi here.
In my last U-bend experiment, MeshGraphNets picked up the warm air lingering in the return leg. But when I zoomed in, I could see rectangles in the temperature field lining up with the boundaries of the coarse graph. The air also slowed down more sharply on the inside of the bend in CFD than it did in the prediction.
This time I increased the number of times neighboring cells exchange information from one to three on both the fine and middle graphs. The diagram below shows what that changes.

What changes when information can travel three hops?
Each fine cell passes information up to the middle group it belongs to. The middle groups then pass their information up to a coarser graph. In the original model, neighbors exchanged information once on the fine graph and once on the middle graph. Here they do it three times on each. A cell can pass on what it has just received, so a message can travel three links along a chain of cells that share faces. I described the full model in my earlier MeshGraphNets experiment on U-bend flow and temperature.
Starting from the inlet cell in the diagram, the fine graph can now reach 44 cells, up from 6. At the middle level, the count rises from 6 groups to 32. Both models still take eight steps on the coarse graph, enough to reach the whole duct. I wanted to see whether gathering more local information before pooling it into the coarse graph would bring the finer details of the temperature and velocity fields closer to CFD.
Training on the same data and predicting one second ahead
The U-bend is the same as before. A duct with a 6 mm square cross section makes two right-angle turns. The mesh spacing is 0.5 mm, giving 19,872 fluid cells in the standard geometry. The air starts at rest at 300 K. The inlet speed and temperature vary periodically, and the walls are adiabatic.
I reused the same network three times at the fine level and did the same with the network at the middle level. Both models therefore have 50,359 trainable parameters. I trained them for 24 epochs on the same 12 conditions, matching their initial weights and the order of the training data. I repeated this comparison with three random seeds.
The inputs include the three velocity components, static pressure, temperature and two turbulence quantities in each cell, along with the known inlet conditions over the next interval. The model predicts those seven quantities 0.1 seconds ahead. During testing, I fed each prediction back in and repeated the process ten times to reach one second.
Did the rectangles in the temperature field fade?
The rows below show CFD, the original one-hop model and the new three-hop model. Start with temperature on the right. This is the slice at 1.0 s for the case with a peak inlet speed of 1.5 m/s and a peak inlet temperature of 350 K. The two models shown started from the same weights.

To put a number on those rectangles, I measured the temperature difference between adjacent cells. Averaged over the 112 faces that cross a coarse-group boundary, the absolute difference was 0.31 K in CFD, 2.88 K with one hop and 1.17 K with three hops. The boundary jump fell by about 60% in this example. Within the coarse groups, the difference changed from 0.35 K to 0.48 K, closer to the CFD value of 0.53 K.
I checked the same slice for the other two training runs. In one, the boundary jump fell from 1.60 K to 0.78 K. In the other, it rose from 1.25 K to 1.49 K. Averaged over the three runs, the jump shrank by about 40%, from 1.91 K to 1.15 K. The improvement depended on the training run.
Did the models also get better at predicting when warm air would reach the outlet? In the example pictured, the area-averaged outlet temperature rose by 13.03 K in CFD during the last 0.1 s. The one-hop model gave 9.76 K and the three-hop model gave 3.92 K. The rectangles became less obvious even as the predicted rise at the outlet grew too small.
How sharply does the air slow down inside the bend?
For the case with inlet peaks of 2 m/s and 325 K, I took a profile across the bend on the right, from the inner to the outer wall. The curve shows speed, calculated from all three velocity components.

At 0.75 mm from the inner wall, CFD gave 1.26 m/s, the one-hop model 2.60 m/s and the three-hop model 2.23 m/s. At that point, three hops brought the lower speed near the wall closer to CFD. Move toward the center, though, and the picture changes. At 2.75 mm the speeds were 2.82 m/s in CFD, 2.63 m/s with one hop and 2.33 m/s with three. CFD gained about 1.56 m/s between those two points. The three-hop model gained only about 0.10 m/s. The slope is still a long way off.
Which model was closer over the full second?
Finally, I compared the whole duct under three inlet conditions held out of training. The table covers ten times from 0.1 to 1.0 s. For temperature I used root mean square error (RMSE) weighted by cell volume. For velocity I combined the errors in all three components. The values are averages over the three training runs. Lower means closer to CFD.
| Peak inlet speed and temperature | Duct temperature (K) | Duct velocity (m/s) | Mean outlet temperature (K) |
|---|---|---|---|
| 2 m/s, 325 K | 3.72 → 4.13 | 0.399 → 0.436 | 7.38 → 9.30 |
| 2 m/s, 330 K | 3.41 → 3.81 | 0.398 → 0.430 | 6.31 → 7.92 |
| 1.5 m/s, 350 K | 6.63 → 7.00 | 0.369 → 0.410 | 5.55 → 6.25 |
Average temperature and velocity errors increased under all three inlet conditions. Across the nine combinations of inlet condition and training run, temperature error rose in eight, and velocity error rose in all nine. I also repeated the test by giving the models the correct CFD field each time and asking for just the next 0.1 s. The average errors still increased under all three conditions. Some of the difference was already there before the models started feeding their own predictions back in.
Average training time rose from about 78 seconds to 143 seconds. The weight count stayed the same, but each extra pass still had to do the work on every cell of the fine graph.
What surprised me was that I could reduce the temperature jumps I had set out to fix and still make the outlet temperature worse. In the bend, one reading near the wall improved, but the speed profile stayed too flat. I changed the fine and middle graphs together this time. To see which level made the difference, I would try three hops on one level at a time and compare this same slice again.

コメント