{"id":1074,"date":"2022-05-02T14:08:05","date_gmt":"2022-05-02T05:08:05","guid":{"rendered":"https:\/\/bohyo.mydns.jp\/?p=1074"},"modified":"2022-05-02T14:24:02","modified_gmt":"2022-05-02T05:24:02","slug":"ubuntu20-04%ef%bc%88wsl2%ef%bc%89%e3%81%a7openfoamv2112%e3%82%92%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/bohyo.mydns.jp\/?p=1074","title":{"rendered":"Ubuntu20.04\uff08WSL2\uff09\u3067OpenFOAMv2112\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u305f\u8a71"},"content":{"rendered":"<h1><span style=\"color: #ff0000;\">\u3044\u304f\u3089\u306a\u3093\u3067\u3082\u3044\u3064\u3082\u3068\u6bdb\u8272\u304c\u9055\u3044\u3059\u304e\u308b\u3060\u308d\u5225\u30b5\u30a4\u30c8\u3067\u3084\u308c<\/span>\uff08\u6328\u62f6\uff09<\/h1>\n<p>\u5225\u30b5\u30a4\u30c8\u7acb\u3066\u3066\u3082\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u3001\u305d\u308c\u306a\u3089\u5199\u771f\u3060\u3051\u72ec\u7acb\u3055\u305b\u3066\u3053\u306e\u30b5\u30a4\u30c8\u3068\u306e\u95a2\u4fc2\u306f\u4e00\u5207\u660e\u793a\u3057\u306a\u3044\u3067\u3084\u308a\u307e\u3059\u304b\u306d\u2026\u2026\u3002<\/p>\n<h2>OpenFOAM\u3068\u306f\uff1f<\/h2>\n<p>\u8aac\u660e\u304c\u96e3\u3057\u3044\u306e\u3067\u30b0\u30b0\u3063\u3066\u304f\u3060\u3055\u3044\uff08\uff09<br \/>\n\u3055\u3066\u3001OpenFOAM\u3068\u3044\u3046\u306e\u306f\u6d41\u4f53\/\u7269\u7406\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u5f79\u7acb\u3064\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u305f\u304f\u3055\u3093\u5165\u3063\u3066\u3044\u308b\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3067\u3059\u3002<br \/>\n\u6d41\u4f53\u89e3\u6790\u30bd\u30d5\u30c8\u3068\u304b\u8a00\u3063\u3061\u3083\u3046\u3068\u6012\u3089\u308c\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u7528\u9014\u304c\u5e83\u3044\u3088\u3063\u3066\u8a00\u3044\u305f\u3044\u3093\u3067\u3059\u304b\u306d\uff08\u9069\u5f53\uff09\u3002<br \/>\n\u6d41\u4f53\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3046\u3068\u6620\u50cf\u4f5c\u54c1\u3084\u30b2\u30fc\u30e0\u3067\u304d\u308c\u3044\u306a\u6c34\u9762\u3092\u8868\u73fe\u3059\u308b\u3068\u304d\u306b\u805e\u304f\u3068\u601d\u3046\u3093\u3067\u3059\u3051\u3069\u3001\u307e\u3041\u305d\u3046\u3044\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u8eab\u306e\u56de\u308a\u306e\u3082\u306e\uff08\u7a7a\u6c17\u3001\u6c34\u3001\u8840\u6db2\u3001\u30aa\u30a4\u30eb\u3001\u30ac\u30b9\uff09\u3001\u3060\u3044\u305f\u3044\u6d41\u4f53\u3067\u3059\uff08\u8981\u51fa\u5178\uff09\u3002<strong>\u3064\u307e\u308a\u6d41\u4f53\u3092\u7a76\u3081\u308c\u3070\u4e16\u306e\u4e2d\u306e\u3053\u3068\u304c\u3060\u3044\u305f\u3044\u5206\u304b\u308b\u306e\u3067\u3059\uff08\u500b\u4eba\u306e\u611f\u60f3\uff09<\/strong>\u3002<br \/>\n<a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%83%9F%E3%83%AC%E3%83%8B%E3%82%A2%E3%83%A0%E6%87%B8%E8%B3%9E%E5%95%8F%E9%A1%8C\">\u30df\u30ec\u30cb\u30a2\u30e0\u554f\u984c<\/a>\uff08\u89e3\u3051\u305f\u3089\uff11\uff10\uff10\u4e07\u30c9\u30eb\uff09\u306e\u3072\u3068\u3064\u3001\u300c\u30ca\u30d3\u30a8\u30fb\u30b9\u30c8\u30fc\u30af\u30b9\u65b9\u7a0b\u5f0f\u306e\u89e3\u306e\u5b58\u5728\u3068\u4e00\u610f\u6027\u300d\u306f\u6d41\u4f53\u306e\u904b\u52d5\u65b9\u7a0b\u5f0f\u306e\u304a\u8a71\u3067\u3059\u3002\u6570\u5b66\u3067\u3082\u5927\u4e8b\u306a\u30c6\u30fc\u30de\u306a\u3093\u3067\u3059\u306d\u3002<br \/>\n\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u901a\u3057\u3066\u3053\u306e\u554f\u984c\u3092\u691c\u8a0e\u3059\u308b\u3001\u306a\u3093\u3066\u3053\u3068\u3082\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<br \/>\n\u3064\u307e\u308a\u9811\u5f35\u308c\u3070OpenFOAM\u3067\u306a\u3093\u3067\u3082\u8a08\u7b97\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3059\uff08\u904e\u8a00\uff09\u3002<br \/>\n\u7a7a\u6c17\u3092\u5bfe\u8c61\u306b\u3059\u308c\u3070\u3001F1\u3068\u304b\u30e2\u30fc\u30bf\u30fc\u30b9\u30dd\u30fc\u30c4\u3060\u3068\u7a7a\u529b\u6027\u80fd\u3092\u8a55\u4fa1\u3059\u308b\u305f\u3081\u306e\u6d41\u4f53\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3002<br \/>\n\u6c34\u3092\u5bfe\u8c61\u306b\u3059\u308c\u3070\u3001\u8239\u306e\u62b5\u6297\u3092\u4e0b\u3052\u308b\u305f\u3081\u306e\u6d41\u4f53\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3002<br \/>\n\u30aa\u30a4\u30eb\u3060\u3063\u305f\u3089\u8eca\u30fb\u30d0\u30a4\u30af\u306e\u30ae\u30a2\u3068\u304b\uff1f<br \/>\n\u3082\u3063\u3068\u3044\u3048\u3070\u30a8\u30f3\u30b8\u30f3\u306e\u4e2d\u3068\u304b\uff1f<br \/>\n\u307e\u3041EV\u306e\u6642\u4ee3\u306a\u3093\u3067\u30a8\u30f3\u30b8\u30f3\u3068\u304b\u3082\u3046\u3084\u3063\u3066\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u306d\uff08\u9069\u5f53\uff09<\/p>\n<p>\u3061\u306a\u307f\u306b\u6d41\u4f53\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u3053\u3068\u306f\u30ab\u30c3\u30b3\u3088\u304fCFD\uff08Computational Fluid Dynamics\uff08\u8a08\u7b97\u6d41\u4f53\u529b\u5b66\uff09\uff09\u3068\u8a00\u3063\u305f\u308a\u3059\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u6628\u4eca\u306f\u30de\u30b7\u30f3\u30b9\u30da\u30c3\u30af\u304c\u30ac\u30f3\u30ac\u30f3\u5411\u4e0a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u304a\u624b\u5143\u306e\u30d1\u30bd\u30b3\u30f3\u3067\u3082\u305d\u308c\u306a\u308a\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\nOpenFOAM\u306f\u7121\u6599\u3067\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u7cf8\u53e3\u306b\u306a\u308c\u3070\u3068\u601d\u3063\u3066\u30e1\u30e2\u4ee3\u308f\u308a\u306b\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\u5fc5\u8981\u306a\u3082\u306e<\/h2>\n<p>\uff11\uff0eLinux\u3068\u3044\u3046\u3082\u306e\u306e\u5b58\u5728\u3092\u77e5\u3063\u3066\u3044\u308b\u3053\u3068<br \/>\n\uff12\uff0e\u56f0\u3063\u305f\u3089\u3068\u308a\u3042\u3048\u305aGoogle\u691c\u7d22\u3057\u3066\u6839\u6c17\u3088\u304f\u7b54\u3048\u3092\u63a2\u3059\u529b<\/p>\n<p>\u982d\u3067\u8003\u3048\u308b\u5fc5\u8981\u306a\u3044\u3067\u3059\u3002\u53f3\u304b\u3089\u5de6\u3078\u3002<\/p>\n<h2>\u4e00\u822c\u7684\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>\u307e\u305a\u3001\u304a\u624b\u5143\u306bWSL2+Ubuntu20.04\u74b0\u5883\u3092\u7528\u610f\u3057\u307e\u3059\u3002\uff08\u53c2\u8003\uff1a<a href=\"https:\/\/www.kagoya.jp\/howto\/it-glossary\/develop\/wsl2_linux\/\">https:\/\/www.kagoya.jp\/howto\/it-glossary\/develop\/wsl2_linux\/<\/a>\uff09<br \/>\n\u3042\u3068\u306f<a href=\"https:\/\/zenn.dev\/yoshikz\/articles\/ebb9e07ab34a89\">\u3053\u306e\u30b5\u30a4\u30c8<\/a>\u306e\u624b\u9806\u306b\u5f93\u3048\u3070apt\u3067\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30d3\u30eb\u30c9\u3059\u308b\u5834\u5408<\/h2>\n<p>\u30d3\u30eb\u30c9\u3068\u306f\u3001OpenFOAM\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u81ea\u5206\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u81ea\u5206\u3060\u3051\u306eOpenFOAM\uff08\u8a9e\u5f0a\u3042\u308a\uff09\u3092\u4f5c\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u305f\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u308b\u306f\u305a\u306e\u3067\u3001\u666e\u901a\u306b\u4e0a\u8a18\u306eapt\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u308a\u306f\u65e9\u3044\u304b\u3082\uff1f<br \/>\n\u3061\u306a\u307f\u306b\u3053\u3053\u3067\u9ad8\u901f\u5316\u3057\u305f\u3044\u5834\u5408\u306fCPU\u306b\u5fdc\u3058\u305f\u30b3\u30f3\u30d1\u30a4\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8abf\u67fb\u3059\u308b\u3079\u304d\u3067\u3059\u3002<br \/>\n\u30d3\u30eb\u30c9\u304c\u5fc5\u8981\u306a\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5236\u9650\u304c\u3042\u308b\u72b6\u6cc1\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u3068\u304d\uff08\u4f1a\u793e\u306e\u30de\u30b7\u30f3\u306b\u3044\u308c\u305f\u3044\uff09\u3068\u304b\u3001\u5171\u7528\u306e\u5927\u578b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u5b9f\u884c\u3057\u3066\u3066\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u3046\u30bd\u30d5\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u52dd\u624b\u306b\u5909\u3048\u305f\u308a\u3059\u308b\u3068\u554f\u984c\u306b\u306a\u308b\u3068\u304d\u3068\u304b\uff08\u3053\u306e\u5834\u5408\u306fOpenFOAM\u3060\u3051\u3067\u306f\u306a\u304f\u30b3\u30f3\u30d1\u30a4\u30e9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09\u3067\u3059\u306d\u3002<br \/>\n\u4eca\u56de\u306f\u500b\u4eba\u5229\u7528\u3067\u3059\u3057\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5236\u9650\u3082\u306a\u3044\u306f\u305a\u3001\u306a\u304a\u304b\u3064WSL2\u306f\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u7c21\u5358\u306b\u74b0\u5883\u3092\u518d\u69cb\u7bc9\u3067\u304d\u308b\u306e\u3067apt\u3092\u30ac\u30f3\u30ac\u30f3\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/qiita.com\/yotakagi77\/items\/111ca4b5bda996ef437e\">CentOS\u306bOpenFOAM v2106\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n<pre><code>$ sudo apt install cmake gcc g++ bison flex m4 zlib1g-dev openmpi-bin<\/code><\/pre>\n<p>\u9762\u5012\u306a\u306e\u3067cmake\u3084openmpi\u3082apt\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002flex\u3068\u304bbison\u304c\u5b9f\u969b\u306b\u5fc5\u8981\u306a\u306e\u304b\u3088\u304f\u308f\u304b\u3063\u3066\u307e\u305b\u3093\u304c\u3002<br \/>\n\uff08\u3082\u3063\u3068\u3044\u3046\u3068\u3001OpenMPI\u3082\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09<br \/>\n\u4eca\u56de\u306f~\/OpenFOAM\u4ee5\u4e0b\u3067\u30d3\u30eb\u30c9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre><code>$ cd\r\n$ mkdir OpenFOAM\r\n$ cd OpenFOAM\r\n$ wget https:\/\/dl.openfoam.com\/source\/v2112\/OpenFOAM-v2112.tgz\r\n$ tar zxvf OpenFOAM-v2112.tgz\r\n$ wget https:\/\/dl.openfoam.com\/source\/v2112\/ThirdParty-v2112.tgz\r\n$ tar zxvf ThirdParty-v2112.tgz\r\n$ mv ThirdParty-v2112 OpenFOAM-v2112\/ThirdParty\r\n<\/code><\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3092\u6574\u3048\u307e\u3059\u3002<\/p>\n<pre><code>\r\n$ cd OpenFOAM-v2112\r\n$ source etc\/bashrc\r\n<\/code><\/pre>\n<p>\u3067\u300c\u307e\u3060OpenFOAM\u5165\u3063\u3066\u306a\u3044\u3088\u300d\u3068\u3044\u3046\u610f\u5473\u306e\u82f1\u8a9e\u306e\u8b66\u544a\u304c\u3067\u3066\u304f\u308c\u3070OK\u3067\u3059\u3002<br \/>\n\u4ed6\u306e\u8b66\u544a\u304c\u51fa\u3066\u304d\u3066\u3044\u308b\u5834\u5408\u306f\u305d\u306e\u8b66\u544a\u306b\u5bfe\u51e6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>$ cd ThirdParty\r\n$ .\/Allwmake\r\n$ .\/makeAdios2 sources\/adios\/ADIOS2-2.7.1\r\n<\/code><\/pre>\n<p>Adios2\u3060\u3051makeAdios2\u306e\u4e2d\u8eab\u304c\u6700\u65b0\u7248\u306b\u5bfe\u5fdc\u3057\u3066\u306a\u304f\u3066\u3046\u307e\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u3066\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\nThirdParty\u306e\u4ed6\u306e\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u5834\u5408\u306f\u81ea\u5206\u3067\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code>$ cd ..\/\r\n$ .\/Allwmake -j -l\r\n<\/code><\/pre>\n<p>-j\u306f\u4e26\u5217\u30b3\u30f3\u30d1\u30a4\u30eb\u3001-l\u306f\u30d3\u30eb\u30c9\u30ed\u30b0\u3092\u6b8b\u3059\u3088\u3001\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<br \/>\n\u30d3\u30eb\u30c9\u306b\u306f\u6570\u6642\u9593\u304b\u304b\u308a\u307e\u3059\u3002\u554f\u984c\u306a\u3051\u308c\u3070<\/p>\n<blockquote><p>========================================<br \/>\nFinished compile of visualization with OpenFOAM-v2112<br \/>\nGcc system compiler<br \/>\nlinux64GccDPInt32Opt, with SYSTEMOPENMPI sys-openmpi<\/p>\n<p>2022-04-29 23:44:00 +0900<br \/>\n========================================<br \/>\nOpenFOAM-v2112<br \/>\nGcc system compiler<br \/>\nlinux64GccDPInt32Opt, with SYSTEMOPENMPI sys-openmpi<\/p>\n<p>api = 2112<br \/>\npatch = 0<br \/>\nbin = 312 entries<br \/>\nlib = 152 entries<\/p>\n<p>========================================<\/p><\/blockquote>\n<p>\u3068\u51fa\u3066\u304f\u308c\u3070\u7d42\u308f\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u3066\u4f55\u3082\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3053\u306a\u3051\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre><code>$ source etc\/bashrc\r\n<\/code><\/pre>\n<h2>\uff08\u672a\u89e3\u6c7a\uff09foamInstallationTest\u304c\u901a\u3089\u306a\u3044<\/h2>\n<p>\u7121\u4e8b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3066\u3044\u308b\u306f\u305a\u3001\u306a\u306e\u3067\u3059\u304c\u3001foamInstallationTest\u3092\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u5f8c\u8ff0\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u52d5\u4f5c\u3059\u308b\u306e\u3067\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u6c17\u6301\u3061\u304c\u60aa\u3044\u3067\u3059\u3002gcc\u3068\u304b\u5165\u3063\u3066\u306a\u3044\u308f\u3051\u306a\u3044\u3093\u3060\u304c\uff1f\uff1f<\/p>\n<pre><code>$ foamInstallationTest\r\n\r\nSoftware Components\r\n-------------------------------------------------------------------------------\r\nSoftware     Version    Location\r\n-------------------------------------------------------------------------------\r\nflex      *** not installed ***\r\n\r\nmake      *** not installed ***\r\n\r\nwmake     *** not installed ***\r\n\r\ngcc       *** not installed ***\r\n          CRITICAL ERROR\r\n\r\ng++       *** not installed ***\r\n\r\n-------------------------------------------------------------------------------\r\nicoFoam   *** not installed ***\r\n          CRITICAL ERROR\r\n\r\n\r\nSummary\r\n-------------------------------------------------------------------------------\r\nBase configuration ok.\r\nThe foam installation contains 2 critical error(s).\r\n\r\nReview the output for warning messages and consult\r\nthe installation guide for troubleshooting.\r\n\r\nDone\r\n<\/code><\/pre>\n<h2>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/h2>\n<p>OpenFOAM\u306f\u7d50\u69cb\u8a2d\u5b9a\u304c\u9762\u5012\u3067\u3059\u3002\u30d7\u30ed\u304c\u901a\u5e38\u4f7f\u3046\u3088\u3046\u306a\u30bd\u30d5\u30c8\u3060\u3068\u30de\u30a6\u30b9\u30dd\u30c1\u30dd\u30c1\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3068\u3053\u308d\u3092\u3044\u3061\u3044\u3061\u30c6\u30ad\u30b9\u30c8\u3067\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<br \/>\n\u30bc\u30ed\u304b\u3089\u3084\u308b\u306e\u306f\u5927\u5909\u306a\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bwork\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u3001\u305d\u3053\u3067\u4f5c\u696d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ cd \r\n$ mkdir work #\u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\r\n$ cd work\r\n$ cp -r $FOAM_TUTORIALS\/incompressible\/simpleFoam\/motorBike\/ .\/\r\n<\/code><\/pre>\n<p>$FOAM_TUTORIALS\u4ee5\u964d\u3001$\u306e\u524d\u306b\\\u304c\u3064\u3044\u3066\u3057\u307e\u3063\u3066\u30bf\u30d6\u88dc\u5b8c\u51fa\u6765\u306a\u3044\u5834\u5408\u3001<\/p>\n<pre><code>$ shopt -s direxpand<\/code><\/pre>\n<p>\u3068\u6253\u3066\u3070$FOAM_TUTORIALS\u304c\u5c55\u958b\u3055\u308c\u3066\u30bf\u30d6\u4fdd\u7ba1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u51fa\u5178\uff1a<a href=\"https:\/\/linux.just4fun.biz\/?Linux%E7%92%B0%E5%A2%83%E8%A8%AD%E5%AE%9A\/Tab%E3%82%AD%E3%83%BC%E3%81%AB%E3%82%88%E3%82%8B%E8%A3%9C%E5%AE%8C%E3%81%A7%24%E3%81%AB%E3%82%A8%E3%82%B9%E3%82%B1%E3%83%BC%E3%83%97%E6%96%87%E5%AD%97%E3%81%8C%E8%BF%BD%E5%8A%A0%E3%81%95%E3%82%8C%E3%82%8B%E3%81%AE%E3%82%92%E5%81%9C%E6%AD%A2%E3%81%99%E3%82%8B\">Linux\u74b0\u5883\u8a2d\u5b9a\/Tab\u30ad\u30fc\u306b\u3088\u308b\u88dc\u5b8c\u3067$\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u304c\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3092\u505c\u6b62\u3059\u308b<\/a>\uff09<\/p>\n<pre><code>$ cd motorBike\r\n$ .\/Allrun\r\n<\/code><\/pre>\n<p>\u3067Running\u2026\u2026\u3068\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5f53\u5206\u5f85\u3064\u3068\u7d42\u308f\u308a\u307e\u3059\u3002<br \/>\n\u5f85\u3061\u304d\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u4eba\u306f\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7acb\u3061\u4e0a\u3052\u3066\u540c\u3058\u5834\u6240\u3078\u884c\u304f\u3068<\/p>\n<pre><code>$ cd work\/motorBike\r\n$ ls\r\n<\/code><\/pre>\n<p>log.\u2026\u2026\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u6ca2\u5c71\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u884c\u4e2d\u306e\u30b3\u30de\u30f3\u30c9\u306e\u30ed\u30b0\u3092\u898b\u308c\u3070\u9032\u5c55\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3044\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u3066\u3044\u305f\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u53ef\u8996\u5316\u306b\u3064\u3044\u3066\u306fparaView\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\nparaView\u306e\u5c0e\u5165\u306f\u304b\u306a\u308a\u7169\u96d1\u306a\u306e\u3067\u3001<br \/>\n<a href=\"https:\/\/zenn.dev\/yoshikz\/articles\/ebb9e07ab34a89\">\u3053\u306e\u30b5\u30a4\u30c8<\/a><br \/>\n\u306e\u624b\u9806\u306b\u5f93\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u30bf\u30a4\u30d7\u306e\u5c0e\u5165\u3060\u3068paraFoam\u30b3\u30de\u30f3\u30c9\u306f\u52d5\u304b\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u7121\u4e8b\u306b\u3054\u3061\u3083\u3054\u3061\u3083\u53ef\u8996\u5316\u3059\u308b\u3068<\/p>\n<p><a href=\"https:\/\/bohyo.mydns.jp\/wp-content\/uploads\/2022\/05\/test.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1084\" src=\"https:\/\/bohyo.mydns.jp\/wp-content\/uploads\/2022\/05\/test-300x170.gif\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/bohyo.mydns.jp\/wp-content\/uploads\/2022\/05\/test-300x170.gif 300w, https:\/\/bohyo.mydns.jp\/wp-content\/uploads\/2022\/05\/test-1024x581.gif 1024w, https:\/\/bohyo.mydns.jp\/wp-content\/uploads\/2022\/05\/test-768x436.gif 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\uff08\u30af\u30ea\u30c3\u30af\u3067GIF\u30a2\u30cb\u30e1\uff09\u3002<br \/>\n\u3061\u306a\u307f\u306bGIF\u30a2\u30cb\u30e1\u3092\u4f5c\u308c\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f<br \/>\n$FOAM_TUTORIALS\/incompressible\/pisoFoam\/LES\/motorBike\/<br \/>\n\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306f\u5b9f\u884c\u306b\uff15\uff0c\uff16\u6642\u9593\u4ee5\u4e0a\u304b\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u898b\u308c\u3066\u4f55\u304c\u697d\u3057\u3044\u3063\u3066\u3001<span style=\"color: #ff0000;\"><strong>\u3044\u3084\u3001\u305f\u306e\u3057\u304f\u306a\u3044\uff1f<\/strong><\/span><\/p>\n<p>\u306f\u3044\u3002<\/p>\n<p>\u3082\u3063\u3068\u3044\u308d\u3044\u308d\u306a\u3053\u3068\u304c\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u3042\u306a\u305f\u306f\u76ee\u306e\u524d\u306e\u7aef\u672b\u3067OpenFOAM\u3068\u6253\u3061\u8fbc\u3093\u3067\u8abf\u3079\u307e\u304f\u308c\u3070\u3001\u304d\u3063\u3068\u7acb\u6d3e\u306aCFD\u4f7f\u3044\u306b\u306a\u308c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u66f8\u304d\u75b2\u308c\u305f\u306e\u3067\u3053\u306e\u304f\u3089\u3044\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u305f\u3076\u3093\u300c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\uff01\u300d\u3068\u304b\u300c\u3053\u306e\u624b\u9806\u304a\u304b\u3057\u3044\u300d\u3068\u304b\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u304a\u6c17\u3065\u304d\u306e\u969b\u306f\u30b3\u30e1\u30f3\u30c8\u3084Twitter\u306a\u3069\u3067\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<br \/>\nOpenFOAM\u306f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u5145\u5b9f\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u3064\u306a\u304c\u308a\u3092\u63a2\u3059\u306e\u3082\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4ed5\u4e8b\u3067CFD\u3084\u3063\u3066\u308b\u4eba\u306f\u6016\u3044\u4eba\u304c\u591a\u3044\u3093\u3067\u3059\u3051\u3069\uff08\u8981\u51fa\u5178\uff09\u3001Open\u7cfb\u3084\u3063\u3066\u308b\u4eba\u306f\u512a\u3057\u3044\u4eba\u304c\u591a\u3044\u6c17\u304c\u3057\u307e\u3059\uff08\u500b\u4eba\u306e\u611f\u60f3\uff09\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u4eca\u65e5\u306f\u672c\u5f53\u306f\u30c4\u30fc\u30ea\u30f3\u30b0\u306b\u884c\u304f\u4e88\u5b9a\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u30d1\u30f3\u30af\u3057\u3066\u305f\u306e\u3067\u8ae6\u3081\u3066\u8a18\u4e8b\u66f8\u304d\u307e\u3057\u305f<\/strong><\/span>\uff08\uff09\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4eca\u65e5\u306f\u3053\u306e\u8fba\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u304f\u3089\u306a\u3093\u3067\u3082\u3044\u3064\u3082\u3068\u6bdb\u8272\u304c\u9055\u3044\u3059\u304e\u308b\u3060\u308d\u5225\u30b5\u30a4\u30c8\u3067\u3084\u308c\uff08\u6328\u62f6\uff09 \u5225\u30b5\u30a4\u30c8\u7acb\u3066\u3066\u3082\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u3001\u305d\u308c\u306a\u3089\u5199\u771f\u3060\u3051\u72ec\u7acb\u3055\uff08\u4ee5\u4e0b\u7565\uff09<\/p>\n","protected":false},"author":1,"featured_media":1084,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,21,10,3],"tags":[],"class_list":["post-1074","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openfoam","category-computer","category-notes","category-diary"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1074"}],"version-history":[{"count":0,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1074\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/1084"}],"wp:attachment":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}