簡易檢索 / 詳目顯示

研究生: 藍威翔
Lan, Wei-Hsiang
論文名稱: 物理感知提示詞引導之圓柱繞流擴散生成
Physics-Aware Prompt-Conditioned Diffusion for Cylinder Flow Field Generation
指導教授: 李崇綱
Li, Chung-Gang
學位類別: 碩士
Master
系所名稱: 工學院 - 機械工程學系
Department of Mechanical Engineering
論文出版年: 2026
畢業學年度: 114
語文別: 中文
論文頁數: 76
中文關鍵詞: 潛空間擴散模型物理感之神經網路流場生成卡門渦街條件式生成
外文關鍵詞: Latent Diffusion Models, Physics-Informed Neural Networks, Flow Field Generation, Stable Diffusion, Kármán Vortex Street, Conditional Generation
相關次數: 點閱:47下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 隨著深度學習技術在計算流體力學(CFD)領域的應用日益興起,構建高保真且具備物理感知能力的神經代理模型已成為提升模擬效率的關鍵。本研究旨在探討生成式擴散模型在流場預測中的物理準確性,並系統性比較四種建模策略的方法論差異與適用限制。
    研究初期採用 Stable Diffusion 1.5 進行流場圖像生成,實驗結果顯示,儘管該模型能生成與目標幾何高度相似的視覺結果,但其本質僅限於像素層級的紋理模仿,缺乏對流體力學基本規律的理解,導致預測結果呈現物理失真。為建立數值比較基準,本研究開發一套輕量化卷積神經網路(CNN),導入雷諾數條件通道與空間座標資訊,並配合納維—斯托克斯方程殘差作為物理損失函數進行約束訓練。實驗顯示,CNN 在訓練工況下具備合理的速度場重建能力,然而在物理損失引入後的訓練中期,模型易收斂至對稱性平凡解,揭示了純判別式架構缺乏全局物理先驗的根本限制。
    本研究進一步將物理損失約束嵌入 Stable Diffusion 1.5 的潛空間架構中。對比實驗揭露了深層的機制性衝突:去噪損失梯度與物理損失梯度在擴散模型參數空間中存在方向競爭,導致物理殘差雖大幅降低,速度場重建精度卻同步惡化,卡門渦街特徵在整個訓練過程中始終無法有效重建。本研究將此現象定義為數值拮抗(Numerical Antagonism),並將其識別為以數值損失約束生成式擴散模型的方法論根本限制。
    針對數值拮抗問題,本研究提出 Physics-Aware Prompt 策略,將物理知識從損失函數層次提升至語意條件層次,透過思維鏈六階段流場演化描述引導去噪 U-Net 的生成方向,從根本上消除梯度競爭。定性評估結果顯示,生成流場呈現清晰的交替渦核結構、合理的渦脫落相位多樣性,以及比 CNN 更豐富的尾流非線性細節,驗證了語意層次物理條件引導的可行性。

    This study investigates physically consistent flow field generation using conditional latent diffusion models, with cylinder wake flow as the primary benchmark. A systematic com-parison is conducted across four modeling strategies: a baseline Stable Diffusion 1.5 mod-el, a lightweight CNN with physics-informed constraints, a physics-informed diffusion model (SD1.5+PINN), and a Physics-Aware Prompt strategy based on Chain-of-Thought semantic design.
    The CNN baseline achieves strong quantitative reconstruction accuracy but exhibits con-vergence slowdown in the physics loss stagnation region when physics constraints are in-troduced, revealing the fundamental limitation of deterministic mapping without global physical priors. Incorporating PINN constraints into the diffusion model reduces physics residuals substantially; however, gradient competition between the denoising loss and physics loss in the diffusion model parameter space leads to a counterintuitive outcome where physical residuals decrease while velocity field accuracy degrades—a phenomenon this study terms numerical antagonism—and the Kármán vortex street structure remains unrecoverable throughout training.
    The Physics-Aware Prompt strategy resolves this conflict by encoding physical knowledge at the semantic level through structured natural-language descriptions partitioned into six Chain-of-Thought flow evolution stages. Conditioning the denoising process via cross-attention layers replaces loss-level physical penalties with semantic-level generative guid-ance, eliminating gradient competition at its source. Qualitative evaluation demonstrates clear reconstruction of alternating vortex cores, reasonable phase diversity across generat-ed samples, and richer nonlinear wake details compared to both baselines.

    摘要 I Abstract III 致謝 VII 目錄 VIII 表目錄 XI 圖目錄 XII 符號說明 XIV 第一章 緒論 1 1.1 研究背景與動機 1 1.2 相關文獻回顧 2 1.3 研究路徑與技術演進 3 1.3.1 第一階段:生成式模型之視覺初步探測 3 1.3.2 第二階段:數據驅動之卷積模型基準 3 1.3.3 第三階段:生成式物理資訊神經網路之初步整合 4 1.3.4 第四階段:物理感知提示詞策略之提出 4 第二章 深度學習架構與訓練優化策略 5 2.1 輕量化卷積神經網路 (Lightweight CNN) 5 2.2 Stable Diffusion 1.5之潛空間去噪架構 7 2.3 潛空間編碼器(VAE)與去噪 UNet 機制 8 2.4 速度場輸出頭(UVHeadCombined) 11 2.5條件生成與語意嵌入機制 13 2.5.1 Prompt Embedding 與 Text Encoder 13 2.5.2 Cross-Attention 條件融合機制 14 第三章 物理感知流場生成方法 16 3.1 數值模擬與資料建構 16 3.1.1 BCM 與 IBM 流場數據生成方法 16 3.1.2 統御方程式 17 3.1.3 邊界條件 18 3.2 多物理流場表示與前處理 19 3.2.1 十二通道物理張量設計 20 3.2.2 流場數據正規化與分位數映射 21 3.2.3 幾何資訊與物理參數條件化 21 3.3 物理一致性損失函數設計 22 3.3.1 多重物理損失函數設計 23 3.3.2 渦度加權損失與 Slip Penalty 23 3.3.3 Ring Mask 與 Halo Cells 修正 24 3.4 訓練穩定化與物理權重調控策略 25 3.4.1 Gradient Clipping 與 Grad-norm Skip 26 3.4.2 學習率排程與 Cosine Annealing 27 3.4.3 Layer-wise Fine-tuning 與模型解凍策略 29 3.4.4 自適應物理權重調控 30 3.5 Physics-Aware Prompt 策略 31 3.5.1 Physics-Aware Prompt 設計理念 32 3.5.2 Prompt Embedding 與 Cross-Attention 條件注入 32 3.5.3 提示詞演化歷程與 CoT 六階段語意設計 34 第四章 結果討論與分析 38 4.1 輕量化CNN基準模型訓練分析 38 4.1.1 訓練收斂行為分析 38 4.1.2 物理殘差收斂分析 40 4.1.3 速度場重建誤差分析 42 4.2 SD1.5+PINN 架構實驗結果 43 4.2.1 訓練收斂行為分析 43 4.2.2 數值拮抗現象分析 45 4.3 Physics-Aware Prompt 策略之生成結果分析 48 4.3.1 生成流場之定性分析 48 4.3.2 Physics-Aware Prompt 策略之方法論意義 50 4.4 三種方法之比較討論 51 第五章 結論與未來展望 53 5.1 結論 53 5.2 未來展望 54 參考文獻 56

    [1] R. Rombach, et al., "High-resolution image synthesis with latent diffusion models." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). p. 10684–10695. 2022.
    [2] J. Ho, A. Jain, and P. Abbeel, "Denoising diffusion probabilistic models." Advances in Neural Information Processing Systems (NeurIPS). 33: p. 6840–6851. 2020.
    [3] A. Vaswani, et al., "Attention is all you need." Advances in Neural Information Processing Systems (NeurIPS). 30: p. 5998–6008. 2017.
    [4] A. Radford, et al., "Learning transferable visual models from natural language supervision." Proceedings of the International Conference on Machine Learning (ICML). 139: p. 8748–8763. 2021.
    [5] O. Ronneberger, P. Fischer, and T. Brox, "U-Net: Convolutional networks for biomedical image segmentation." Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI). p. 234–241. 2015.
    [6] M. Raissi, P. Perdikaris, and G.E. Karniadakis, "Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations." Journal of Computational Physics. 378: p. 686–707. 2019.
    [7] S. Wang, X. Yu, and P. Perdikaris, "When and why PINNs fail to train: A neural tangent kernel perspective." Journal of Computational Physics. 449: p. 110768. 2022.
    [8] D. Shu, Z. Li, and A. Barati Farimani, "A physics-informed diffusion model for high-fidelity flow field reconstruction." Journal of Computational Physics. 478: p. 111972. 2023.
    [9] N. Thuerey, et al., "Deep learning methods for Reynolds-averaged Navier–Stokes simulations of airfoil aerodynamics." AIAA Journal. 58(1): p. 25–36. 2020.
    [10] H. Gao, L. Sun, and J.X. Wang, "PhyGeoNet: Physics-informed geometry-adaptive convolutional neural networks for solving parametric PDEs on arbitrary domains." Journal of Computational Physics. 428: p. 110079. 2021.
    [11] C.H.K. Williamson, "Vortex dynamics in the cylinder wake." Annual Review of Fluid Mechanics. 28(1): p. 477–539. 1996.
    [12] C.-G. Li, T. Makoto, and K. Onishi, "Feasibility investigation of compressible direct numerical simulation with a preconditioning method at extremely low Mach numbers." International Journal of Computational Fluid Dynamics. 28(6-10): p. 411–419. 2014.
    [13] C.G. Li, et al., "Compressible direct numerical simulation with a hybrid boundary condition of transitional phenomena in natural convection." International Journal of Heat and Mass Transfer. 90: p. 654–664. 2015.
    [14] C.G. Li, et al., "A sharp interface immersed boundary method for thin-walled geometries in viscous compressible flows." International Journal of Mechanical Sciences. 253. 2023.
    [15] K. Komatsu, et al., "Parallel processing of the Building-Cube Method on a GPU platform." Computers & Fluids. 45(1): p. 122–128. 2011.
    [16] M.D. de Tullio, et al., "An immersed boundary method for compressible flows using local grid refinement." Journal of Computational Physics. 225(2): p. 2098–2117. 2007.
    [17] R. Ghias, R. Mittal, and H. Dong, "A sharp interface immersed boundary method for compressible viscous flows." Journal of Computational Physics. 225(1): p. 528–553. 2007.
    [18] J.-H. Bastek, W. Sun, and D.M. Kochmann, "Physics-informed diffusion models." Proceedings of the International Conference on Learning Representations (ICLR 2025). 2025.
    [19] Z. Dong, Z. Lu, and Y. Yang, "Fine-tuning a large language model for automating computational fluid dynamics simulations." Theoretical and Applied Mechanics Letters. 15: p. 100594. 2025.
    [20] R. Li, et al., "Self-guided diffusion model for accelerating computational fluid dynamics." Proceedings of the International Conference on Machine Learning (ICML). 2025.
    [21] J. Hu, Z. Lu, and Y. Yang, "Generative prediction of flow fields around an obstacle using the diffusion model." Physical Review Fluids. 10(9): p. 094903. 2025.
    [22] J. Qiu, et al., "Pi-fusion: Physics-informed diffusion model for learning fluid dynamics." arXiv preprint arXiv:2406.03711. 2024.
    [23] A. Zhou, et al., "Text2PDE: Latent diffusion models for accessible physics simulation." arXiv preprint arXiv:2410.01153. 2024.

    下載圖示
    校外:立即公開
    QR CODE