OpenFOAM散热器自然散热问题
-
@李东岳 李老师,我尝试把迭代步数增加,能达到我想要的效果了(散热器颜色均匀),但是出现了另外的问题,现在迭代步数增加到30000步了,虽然温度云图已经稳定了,但是颜色条一直往上跑(附gif图),没有收敛的趋势,或许需要继续增加迭代步数。
这也带来两个疑问:
1)会不会是控制方程写错或边界条件写错导致不收敛;
2)这么多的迭代步数求解时间很长,即使用了并行计算(28核),也需要将近一小时的计算时间,显然不利于后续开展优化计算。有什么可以加快迭代计算方法吗?还是说自然散热求解本身就需要这么长的时间。我用商软计算只需要几分钟(数百次迭代)就可以计算出来了。
附图:温度变化动图 -
DILUPBiCGStab: Solving for Ux, Initial residual = 2.52879e-12, Final residual = 2.52879e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.759e-13, Final residual = 4.759e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 1.12742e-08, Final residual = 4.99184e-09, No Iterations 1 time step continuity errors : sum local = 9.26478e-12, global = -1.95551e-19, cumulative = -1.76865e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 4.08769e-12, Final residual = 4.08769e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 7.69458e-13, Final residual = 7.69458e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 3.05161e-09, Final residual = 3.05161e-09, No Iterations 0 time step continuity errors : sum local = 5.66373e-12, global = -3.93401e-18, cumulative = -1.76869e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 3.31261e-12, Final residual = 3.31261e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 6.5252e-13, Final residual = 6.5252e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 3.57218e-09, Final residual = 3.57218e-09, No Iterations 0 time step continuity errors : sum local = 6.6299e-12, global = -3.50639e-18, cumulative = -1.76873e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.81837e-12, Final residual = 2.81837e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 5.66173e-13, Final residual = 5.66173e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 5.30704e-09, Final residual = 5.30704e-09, No Iterations 0 time step continuity errors : sum local = 9.84979e-12, global = 8.65936e-19, cumulative = -1.76872e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.48061e-12, Final residual = 2.48061e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 5.01799e-13, Final residual = 5.01799e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 7.25581e-09, Final residual = 7.25581e-09, No Iterations 0 time step continuity errors : sum local = 1.34667e-11, global = -7.49204e-18, cumulative = -1.76879e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.20698e-12, Final residual = 2.20698e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.5362e-13, Final residual = 4.5362e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 8.96308e-09, Final residual = 8.96308e-09, No Iterations 0 time step continuity errors : sum local = 1.66353e-11, global = -2.10879e-18, cumulative = -1.76882e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 1.98591e-12, Final residual = 1.98591e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.17482e-13, Final residual = 4.17482e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 1.04578e-08, Final residual = 4.41247e-09, No Iterations 1 time step continuity errors : sum local = 8.18947e-12, global = -6.46356e-18, cumulative = -1.76888e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 4.01256e-12, Final residual = 4.01256e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 7.47198e-13, Final residual = 7.47198e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 2.55585e-09, Final residual = 2.55585e-09, No Iterations 0 time step continuity errors : sum local = 4.74361e-12, global = -9.69952e-19, cumulative = -1.76889e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 3.26589e-12, Final residual = 3.26589e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 6.35781e-13, Final residual = 6.35781e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 3.36828e-09, Final residual = 3.36828e-09, No Iterations 0 time step continuity errors : sum local = 6.25147e-12, global = -2.50355e-18, cumulative = -1.76892e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.81174e-12, Final residual = 2.81174e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 5.53575e-13, Final residual = 5.53575e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 5.49292e-09, Final residual = 5.49292e-09, No Iterations 0 time step continuity errors : sum local = 1.01948e-11, global = 1.63108e-18, cumulative = -1.7689e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.47921e-12, Final residual = 2.47921e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.92095e-13, Final residual = 4.92095e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 7.48208e-09, Final residual = 7.48208e-09, No Iterations 0 time step continuity errors : sum local = 1.38866e-11, global = -2.32211e-18, cumulative = -1.76892e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 2.20866e-12, Final residual = 2.20866e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.45864e-13, Final residual = 4.45864e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 9.21963e-09, Final residual = 9.21963e-09, No Iterations 0 time step continuity errors : sum local = 1.71115e-11, global = 1.08066e-18, cumulative = -1.76891e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 1.99261e-12, Final residual = 1.99261e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 4.10956e-13, Final residual = 4.10956e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 1.07404e-08, Final residual = 4.80571e-09, No Iterations 1 time step continuity errors : sum local = 8.91934e-12, global = -3.39057e-18, cumulative = -1.76895e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 4.25332e-12, Final residual = 4.25332e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 7.89251e-13, Final residual = 7.89251e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 2.91529e-09, Final residual = 2.91529e-09, No Iterations 0 time step continuity errors : sum local = 5.41074e-12, global = 8.02024e-19, cumulative = -1.76894e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 3.4724e-12, Final residual = 3.4724e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 6.68648e-13, Final residual = 6.68648e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 3.84833e-09, Final residual = 3.84833e-09, No Iterations 0 time step continuity errors : sum local = 7.14245e-12, global = 4.1512e-19, cumulative = -1.76893e-13 DILUPBiCGStab: Solving for Ux, Initial residual = 3.01207e-12, Final residual = 3.01207e-12, No Iterations 0 DILUPBiCGStab: Solving for Uy, Initial residual = 5.79223e-13, Final residual = 5.79223e-13, No Iterations 0 DILUPBiCGStab: Solving for T, Initial residual = 9.9999e-06, Final residual = 9.9999e-06, No Iterations 0 DICPCG: Solving for p_rgh, Initial residual = 6.1755e-09, Final residual = 6.1755e-09, No Iterations 0 time step continuity errors : sum local = 1.14616e-11, global = -6.35775e-18, cumulative = -1.769e-13 Time = 120000 ExecutionTime = 834.37 s ClockTime = 834 s