# 建立 OpenFOAM Case - 0 - uniform time - U - p - nut - k - omega - constant - tranportProperties - turbulenceProperties - system - controlDict - fvSchemes - fvSolution - Files - Allclean - Allrun - airfoil.geo - airfoil_template.geo - foam.log ## OpenFOAM case 處理 - Case 建立好後將 airfoil.geo 轉成 msh 形式 `gmsh airfoil.geo -3 -format msh2 airfoil.msh` - 完成後再將 msh 轉成 PolyMesh 的格式 `gmshToFoam airfoil.msh` # dataGen 修改 ## Functions - New Points - find(ids) 從 id 資料夾中找出最後一筆寫入的 data ## NOTED - boundayProbes ```/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | ------------------------------------------------------------------------------- Description Writes out values of fields at a specified list of points, interpolated to specified boundary patches. \*---------------------------------------------------------------------------*/ #include "system/foamtest" points $pts; maxDistance 0.01; patches ("aerofoil"); fields (p); #includeEtc "caseDicts/postProcessing/probes/boundaryProbes.cfg" // ************************************************************************* // ``` - #include "system/foamtest" 如果讀不到檔案的話,可以嘗試加上位址 - OpenFOAM 舊的版本是使用 boundaryCloud,但版本 10 則是使用 boundaryProbes `foamGet boundaryProbes` 把 boundaryProbes 複製進 `/system` - `cp: cannot stat ...` - 檔案文件問題 `sudo ls -l` 查看文件權限 `chmod [ugoa...][+-][rwx] filename` 修改文件權限 - 路徑位址找不到 改成使用絕對路徑
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up