Hi, Higashi here.
In my last experiment with a model of U-bend flow, I increased the number of times each cell can pass information to a neighbor from one to three. The rectangular steps in the temperature field became a little less obvious. Yet when I compared predictions with CFD over the whole duct, the errors had actually grown.
Could three hops still be too few? This time I tried five rounds of message passing on both the fine and middle graphs and compared one, three and five hops under the same conditions.

What changes between one, three and five hops?
In this MeshGraphNets model, cells exchange information across shared faces. One pass reaches the immediate neighbor. A second pass can reach that neighbor’s neighbor. The fine cells then pool their information into the middle groups they belong to, which in turn pass it up to the coarse groups. Each cell also receives information back down through its own parent group before it makes a prediction.
Take the inlet cell in the diagram. On the fine graph, its information can reach 6 cells with one hop, 44 with three hops and 146 with five. All three models still make eight passes on the coarse graph, enough to reach all ten groups spanning the duct. I wanted to see whether gathering more detail before pooling it into the coarse graph would help the model capture the bend flow and the movement of warm air. The earlier setup and results are in my comparison of one and three hops.
The U-bend has a 6 mm square cross section and makes two right-angle turns. The mesh spacing is 0.5 mm, with 19,872 fluid cells in the standard geometry. The air starts at rest at 300 K. The walls are adiabatic, and both the speed and temperature at the inlet vary periodically.
The model takes the three velocity components, static pressure, temperature and two turbulence quantities in each cell, along with the inlet conditions for the next 0.1 s, and predicts those seven quantities one step ahead. I started from the initial state and fed each prediction back in for ten steps, reaching one second.
The fine and middle graphs each reuse their own weights at every pass, so all three models have 50,359 trainable parameters. The training set covered 12 conditions, obtained by adding cases with different temperature amplitudes to the four original CFD cases. I trained each model for 24 epochs. For each of three random seeds, the models started from matching weights and saw the training data in the same order.
What happens to the fast air in the bend and the warm air at the outlet?
The rows below show CFD followed by the one-, three- and five-hop predictions. Air enters at the lower left, turns around at the right and leaves at the upper left. Look just downstream of the bend in the speed maps on the left. CFD shows a yellow-green band of fast air. The band is still hard to pick out in the five-hop prediction.

How big is the difference? Between 0.75 mm and 2.75 mm from the inner wall, moving toward the middle of the bend, the CFD speed increases by 1.56 m/s. At the same positions, the increase is 0.04 m/s with one hop, 0.10 m/s with three and 0.08 m/s with five. All three models give too little change across this part of the duct.
For the temperature map on the right, I checked how much the outlet warmed up over the final 0.1 s. Its area-averaged temperature rose by 13.03 K in CFD. The models gave 9.76 K with one hop, 3.92 K with three and 7.17 K with five. Five hops captured more of the warm air arriving at the outlet than three. In this particular run, one hop still came closest.
Do five hops remove the rectangular temperature steps?
In the previous experiment, the color on the temperature map changed abruptly at some coarse-group boundaries. I checked 112 faces along those boundaries on the same slice and measured the average absolute temperature difference between the two cells sharing each face.

The mean jump was 0.31 K in CFD. Averaged over the three training runs, it was 1.91 K with one hop, 1.15 K with three and 1.26 K with five. Going from one to three hops brought the jump closer to CFD. A further two hops did not shrink it any more.
Which model comes closest over the whole duct?
Next I compared the entire duct under three inlet conditions held out of training. The horizontal axis below shows the number of hops and the vertical axis shows the root mean square error (RMSE) against CFD over one second. A downward slope would mean the extra hops were helping.

For temperature and velocity alike, the lines slope upward in all three cases. In the table, I first calculated the RMSE for each inlet condition and training run, then averaged those values with equal weight. Duct temperature error accounts for cell volume. Velocity error combines all three components.
| Measure | 1 hop | 3 hops | 5 hops |
|---|---|---|---|
| Duct temperature RMSE (K) | 4.59 | 4.98 | 5.82 |
| Duct velocity RMSE (m/s) | 0.389 | 0.425 | 0.461 |
| Mean outlet temperature RMSE (K) | 6.41 | 7.82 | 7.25 |
| Training time per run (s) | 78 | 143 | 222 |
For duct temperature and velocity, the five-hop error was larger than the one-hop error in all nine case–run pairs. The outlet tells a different story. With inlet peaks of 1.5 m/s and 350 K, the RMSE of the mean outlet temperature over one second was 5.55 K with one hop, 6.25 K with three and 4.91 K with five. If my only question in that case had been “How warm is the air coming out of the duct?”, I would have picked the five-hop model.
What held the five-hop model back?
I wondered whether the difference simply built up as the models fed their own predictions back in. To check, I gave each model the correct CFD field at every step and asked it to predict just the next 0.1 s. Duct temperature error still went from 4.64 to 5.07 to 5.93 K, and velocity error from 0.337 to 0.360 to 0.382 m/s. The five-hop model was already struggling on a single step.
The five-hop model took about 2.8 times as long to train as the one-hop model and still underestimated how much the air slowed on the inside of the bend. Perhaps repeatedly mixing nearby information with the same weights also smooths out some of the local velocity differences we want to keep. The five-hop model also finished the same 24 epochs with a higher training error, so the training settings may have suited it less well. These runs leave both explanations open.
I started out wondering whether three hops were simply too few. For the flow field throughout this U-bend, the one-hop model trained faster and came closer to CFD than the five-hop model. Next I would like to keep message passing short in the fine cells to preserve the near-wall speed differences, let only the middle groups look farther afield and check the same bend profile again.


コメント