隨著電子產品朝向輕量化與高性能發展,IC 晶片亦趨於微小化,使IC 封裝設計面臨愈發複雜的挑戰。在封裝設計階段,模流分析可作為評估設 計與優化製程的重要工具,而在進行模流分析前,必須先將CAD 模型轉 換為實體網格,並利用求解器(Solver)進行計算。六面體網格(Hexahedron) 因具備良好的計算穩定性與精確性,被視為品質最佳的實體網格,但其自 動建構難度高,多依靠人工處理。由於六面體網格可由四邊形表面網格構 成,因此發展四邊形表面網格的自動建構技術,已成為未來重要的研究方 向。本研究旨在發展混合結構化與非結構化的四邊形網格自動建構方法, 透過將IC CAD 模型劃分為多個區域,依區域形狀與需求自動建構適當的 網格尺寸與類型,以提升模流分析的精確度與效率。為強化方法穩定性與 建構品質,本研究針對自動區域劃分流程進行優化,特別針對不合理的狹 長區域進行分類與合併處理,避免產生長寬比過大的低品質網格。同時, 導入高效率的Half-edge 資料結構,取代原先節點為主的儲存方式,提升 非結構化網格的建構效率。由結果顯示,原始方法及全非結構化網格各有 優缺點,而本方法能在整體網格品質與模流分析效率上取得較佳平衡,證 實本研究提出之優化策略具備良好的可行性。;As electronic products pursue lighter and higher-performance designs, IC chips are becoming more compact, increasing the complexity of IC packaging. In the design phase, mold flow analysis is essential for evaluating and optimizing the packaging process. This requires converting CAD models into solid meshes before simulation. Among mesh types, hexahedral meshes are known for their high stability and accuracy, but they are difficult to construct automatically and often rely on manual work. Since hexahedral meshes can be built from quadrilateral surface meshes, developing automated quadrilateral meshing techniques is a key research direction. This study proposes an automatic method for generating hybrid structured and unstructured quadrilateral meshes. The IC CAD model is divided into multiple regions, and mesh types and sizes are determined automatically based on regional geometry and analysis needs, aiming to improve simulation accuracy and meshing efficiency. To enhance the quality of meshing, the region partitioning process is optimized by identifying and merging elongated regions, which typically lead to low-quality elements with large aspect ratios. Additionally, a Half-edge data structure is introduced to replace the traditional node-based storage, significantly improving the construction efficiency of unstructured meshes. Simulation results show that while existing methods have their advantages, the proposed hybrid approach offers a better tradeoff between mesh quality and computational performance, demonstrating the practicality and effectiveness of this method.