Posted on 2023-03-12 18:19
eryar 閱讀(1164)
評論(0) 編輯 收藏 引用 所屬分類:
2.OpenCASCADE
McCad - BRep to CSG

McCad是一個開源工具,能自動將BRep模型轉(zhuǎn)換成CSG模型。隨著核動力技術(shù)的發(fā)展,不斷開展新型反應(yīng)堆的研究,反應(yīng)堆的燃料形式和堆芯布置都較為復(fù)雜,由于蒙特卡羅(MC)方法具有強大的幾何處理能力和較高的計算精確度,它是模擬分析這些復(fù)雜堆芯的有效手段。通過使用McCad將復(fù)雜BRep模型轉(zhuǎn)換成CSG模型,CSG表示的模型可作為核反應(yīng)堆芯計算蒙特卡羅(MC)方法的輸入。

McCad基于OpenCASCADE內(nèi)核已經(jīng)持續(xù)開發(fā)了20年,基于LGPL協(xié)議開源,感興趣的小伙伴可以下載嘗試一下:
https://github.com/inr-kit/McCAD-Library
BRep轉(zhuǎn)CSG個人感覺沒有完美的解決方案,但是應(yīng)用范圍很廣。如果轉(zhuǎn)換效果好,其實還有一個用途,就是將BRep轉(zhuǎn)換的CSG模型導(dǎo)入到PDMS中,從而解決通過機械設(shè)備接口MEI導(dǎo)入STEP/IGES后PDMS模型數(shù)據(jù)變大的問題。

McCad is an open source tool for automatic conversion of B-Rep models into CSG.
McCad has been continuously developed for more than two decades. It provides automatic conversion of Boundary Representation (BREP) CAD models into Constructive Solid Geometry (CSG), the latter of which is an input syntax often used in Monte Carlo (MC) radiation transport codes. The conversion process, from BREP to CSG, is essential for high-fidelity nuclear analysis of complex nuclear facilities. McCad can convert CAD files in STEP format to different input syntaxes used with MC codes such as MCNP, TRIPOLI, Geant4, etc., so that the manual efforts on building a complex simulation model can be avoided. McCad provides an advanced algorithm to decompose complex solids into its constituent convex primitives, and generates the void space description between the solids, which is required by MC codes.
It relies on OpenCASCADE CAD kernel to perform CAD manipulations and Boolean operations. McCad has been integrated into the SALOME platform, with a detailed manual provided. It is an open-source code released under LGPL license. This code has been currently used for nuclear research institutes crossing continents, for nuclear analyses on fission reactors, fusion facilities and neutron source facilities.