{"id":13437,"date":"2021-09-20T10:10:24","date_gmt":"2021-09-20T01:10:24","guid":{"rendered":"https:\/\/ocse2.com\/?p=13437"},"modified":"2021-10-04T20:16:14","modified_gmt":"2021-10-04T11:16:14","slug":"dexcs%e3%83%a9%e3%83%b3%e3%83%81%e3%83%a3%e3%83%bc-v2-5-%e8%a3%bd%e4%bd%9c%e3%83%a1%e3%83%a2-%e8%a7%a3%e6%9e%90%e3%83%bb%e9%9b%9b%e5%bd%a2%e3%82%b1%e3%83%bc%e3%82%b9%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/ocse2.com\/?p=13437","title":{"rendered":"DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc v2.5 \u88fd\u4f5c\u30e1\u30e2 \/ \u89e3\u6790\u30fb\u96db\u5f62\u30b1\u30fc\u30b9\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p><!-- admax --><br \/>\n<script src=\"\/\/adm.shinobi.jp\/s\/f441a8efe75e3127b36ac8c4fda493f7\"><\/script><br \/>\n<!-- admax --><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8ab2\u984c\u306e\u80cc\u666f<\/h2>\n\n\n\n<p>\u3053\u308c\u307e\u3067FreeCAD\u30e2\u30c7\u30eb\u306e\u5b58\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u89e3\u6790\u30b1\u30fc\u30b9\u30d5\u30a9\u30eb\u30c0\u3067\u3042\u308b\u3068\u3057\u3066\u69d8\u3005\u306a\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u30fb\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u304d\u305f\u3002\u307e\u305f\u6700\u521d\u306bFreeCAD\u30e2\u30c7\u30eb\u306e\u5b58\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u306a\u3044\u5834\u5408\u306b\u306f\u3001DEXCS\u306e\u6a19\u6e96\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u554f\u984c\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/opt\/DEXCS\/template\/dexcs\uff09\u3092\u96db\u5f62\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<p>\u6700\u7d42\u7684\u306b\u3001\u89e3\u6790\u30b1\u30fc\u30b9\u30d5\u30a9\u30eb\u30c0\u3068\u3001\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u4efb\u610f\u306b\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u8003\u3048\u308b\u306e\u304c\u666e\u901a\u3067\u3042\u308d\u3046\u3002\u5f93\u6765\u306eDEXCS\u30de\u30af\u30ed\u306b\u304a\u3044\u3066\u306f\u3001\u89e3\u6790\u30b1\u30fc\u30b9\u30d5\u30a9\u30eb\u30c0\u3092\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u306f\u6709\u3057\u3066\u3044\u305f\u304c\u3001\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u7279\u5b9a\u306e\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u5185\u3078\u51fa\u529b\u3059\u308b\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3067\u5bfe\u51e6\u3057\u3066\u304d\u3066\u304a\u308a\u3001\u5b9f\u8cea\u7684\u306a\u4f7f\u3044\u65b9\u306e\u4e0a\u3067\u5927\u304d\u306a\u9055\u3044\u306f\u306a\u3044\u304c\u3001\u5185\u90e8\u4ed5\u69d8\u3092\u77e5\u3089\u306a\u3044\u4eba\u304b\u3089\u898b\u305f\u4e0a\u3067\u306e\u89e3\u308a\u6613\u3055\u304c\u5927\u304d\u304f\u9055\u3046\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u3082\u5b9f\u88c5\u3057\u305f\u3044\u3002<\/p>\n\n\n\n<p>\u5c11\u3057\u4f59\u8ac7\u306b\u306a\u308b\u304c\u3001\u3053\u306e\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u30e1\u30cb\u30e5\u30fc\u304c\u51fa\u6765\u305f\u3068\u3057\u3066\u3001\u5c06\u6765\u7684\u306a\u62e1\u5f35\u6a5f\u80fd\u3068\u3057\u3066\u3001TreeFoam\u306e\u300cnewCase\u306e\u4f5c\u6210\u300d\u30e1\u30cb\u30e5\u30fc\u63f4\u7528\u3057\u3066\u3001\u3053\u3053\u3067\u9078\u3093\u3060\u30b1\u30fc\u30b9\u3092\u63a1\u7528\u3059\u308b\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u308b\u304c\u3001\u4e00\u901a\u308a\u306e\u6a5f\u80fd\u304c\u5b9f\u88c5\u3067\u304d\u305f\u5f8c\u306e\u8ab2\u984c\u3068\u3057\u305f\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2021\/09\/b30096040ee46ce2a7f07d08f4446da4.png\" alt=\"\" class=\"wp-image-13438\" width=\"636\" height=\"503\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u73fe\u72b6\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u30b3\u30f3\u30dc\u30d3\u30e5\u30fc\u306b\u304a\u3044\u3066\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\uff08dexcsCfdAnalysis\uff09\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u6b04\u306b[Output Path]\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2021\/09\/b6be4f6bacfc0c19f50e9c53fe960eb6.png\" alt=\"\" class=\"wp-image-13439\" width=\"342\" height=\"399\"\/><\/figure><\/div>\n\n\n\n<p>\u3053\u306e\u8868\u793a\u30c6\u30ad\u30b9\u30c8\u6b04\u53f3\u7aef\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u30d5\u30a9\u30eb\u30c0\u9078\u629e\u30c0\u30a4\u30e4\u30ed\u30b0\u304c\u73fe\u308c\u3066\u3001\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3067\u304d\u308b\u3002\u3053\u306e\u9078\u629e\u306f\u6709\u52b9\u3067\u3001\u4ee5\u4e0b\u30e1\u30c3\u30b7\u30e5\u4f5c\u6210\u301c\u30bd\u30eb\u30d0\u30fc\u5b9f\u884c\u306f\u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3067\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u4e8b\u306f\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u3002\u4f46\u3057\u3001\u3053\u306e\u30ef\u30fc\u30af\u30d9\u30f3\u30c1\u4e0a\u3067\u306e\u64cd\u4f5c\u306b\u9650\u5b9a\u3055\u308c\u308b\u3082\u306e\u3067\u3001DEXCS\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3\u306b\u3088\u308b\u64cd\u4f5c\u306b\u306f\u53cd\u6620\u3055\u308c\u3059\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff08\u306e\u306f\u73fe\u6bb5\u968e\u3067\u306f\u4ed5\u65b9\u7121\u3044\uff09\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3001\u300c\u7de8\u96c6\u300d\u21d2\u300c\u8a2d\u5b9a\u300d\u753b\u9762\u306b\u304a\u3044\u3066[CfdOF]\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u753b\u9762\u304c\u73fe\u308c\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2021\/09\/4d95e143b3a927a52b4630a583155ad4.png\" alt=\"\" class=\"wp-image-13440\" width=\"788\" height=\"517\"\/><\/figure><\/div>\n\n\n\n<p>\u3053\u3053\u306b\u3001[Default output directory]\u3068\u3042\u308a\u3001\u3053\u308c\u3082\u540c\u69d8\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u3053\u3067\u5909\u66f4\u3057\u305f\u3068\u3057\u3066\u3082\u3001\u5148\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u72b6\u6cc1\u304b\u3089\u3001\u8ab2\u984c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6574\u7406\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3053\u308c\u306b\u306f\u3001Output directory \u306b\u95a2\u3059\u308b\u4e0a\u8a182\u3064\u306e\u8a2d\u5b9a\u6b04\u306b\u4f75\u8a18\u3055\u308c\u308b\u5f62\u3067\u3001Template Case \u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u666e\u901a\u3067\u3042\u308d\u3046\u3002<\/li><li>\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u6b04\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3068\u3001\u300c\u8a2d\u5b9a\u753b\u9762\u300d\u3067\u8a2d\u5b9a\u3057\u305f\u3053\u308c\u3089\u306e\u5024\u3092\u9023\u52d5\u3055\u305b\u308b\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u3002<\/li><li>DEXCS\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3\u3067\u3001Output directory \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a8d\u8b58\u3055\u305b\u308b\u65b9\u6cd5\u304c\u5fc5\u8981\u3002<\/li><li>\u300c\u8a2d\u5b9a\u753b\u9762\u300d\u3092CfdOF \u30aa\u30ea\u30b8\u30ca\u30eb\u304b\u3089\u3001dexcsCfdOF \u306b\u5909\u66f4\u3057\u305f\u3044\u3002\u6a5f\u80fd\u9762\u3067\u672c\u8cea\u7684\u306a\u554f\u984c\u3067\u306f\u306a\u3044\u304c\u3002<\/li><\/ol>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u4e0a\u8ff0\u306e\u9806\u3068\u306f\u4e0d\u540c\u3067\u3042\u308b\u304c\u3001\u6539\u9020\u70b9\u3092\u8a18\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8a2d\u5b9a\u753b\u9762\uff08initGui.py \u21d2dexcsCfdPreferencePage.py\uff09<\/h3>\n\n\n\n<p>initGui.py \u306b\u304a\u3044\u3066\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from dexcsCfdPreferencePage import <span class=\"has-inline-color has-vivid-cyan-blue-color\">dexcsCfdPreferencePage<\/span>\nICONS_PATH = os.path.join(dexcsCfdTools.get_module_path(), \"Gui\", \"Resources\", \"icons\")\nQtCore.QDir.addSearchPath(\"icons\", ICONS_PATH)\nFreeCADGui.addPreferencePage(<span class=\"has-inline-color has-vivid-cyan-blue-color\">dexcsCfdPreferencePage<\/span>, \"<span class=\"has-inline-color has-vivid-red-color\">dexcsCfdOF<\/span>\")<\/code><\/pre>\n\n\n\n<p>\u30a2\u30a4\u30b3\u30f3\u306f\u3001Gui\/Resources\/icons\u30d5\u30a9\u30eb\u30c0\u4e2d\u306b\u53ce\u7d0d\u3055\u308c\u3066\u3001CfdOF\u306e\u30aa\u30ea\u30b8\u30ca\u30eb\u30a2\u30a4\u30b3\u30f3\uff08preference-cfdof.png\uff09\u305d\u306e\u3082\u306e\u3092\u5909\u66f4\u3059\u308b\u306e\u306f\u8e8a\u8e87\u308f\u308c\u305f\u306e\u3067\u3001\u65b0\u305f\u306bpreference-dexcscfdof.png\u3092\u7528\u610f\u3057\u3066\u53ce\u7d0d\u3057\u305f\u3002<\/p>\n\n\n\n<p>dexcsCfdPreferencePage.py \u306b\u304a\u3044\u3066\u306f\u3001<span style=\"font-size: revert; color: initial;\">Template Case \u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b<\/span>\u3057\u305f\u3044\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306fDEXCS\u6a19\u6e96\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff08\/opt\/DEXCS\/template\/dexcs\uff09\u3068\u3057\u305f\u3044\u306e\u3067\u3001\u6700\u521d\u306b\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30e9\u30e1\u30bf\u3068\u3057\u3066\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DEXCS_TEMPLATE = \"\/opt\/DEXCS\/template\/dexcs\"<\/code><\/pre>\n\n\n\n<p>\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u3002\u4ee5\u4e0b\u3001OutputDirectory\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3057\u3066\u3044\u308b\u7b87\u6240\u3092\u898b\u3064\u3051\u3066\u3001\u305d\u306e\u4e0b\u306bTemplateCase\u306b\u3064\u3044\u3066\u540c\u69d8\u306b\u8ffd\u52a0\u3057\u305f\u3060\u3051\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(103\u884c\u76ee\u3042\u305f\u308a)\nself.form.tb_choose_output_dir.clicked.connect(self.chooseOutputDir)\nself.form.le_output_dir.textChanged.connect(self.outputDirChanged)\n<span class=\"has-inline-color has-vivid-red-color\">self.form.tb_choose_template_case.clicked.connect(self.chooseTemplateCase)\nself.form.le_template_case.setText(DEXCS_TEMPLATE)\nself.form.le_template_case.textChanged.connect(self.templateCaseChanged)<\/span><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>(209\u884c\u76ee\u3042\u305f\u308a)\ndef outputDirChanged(self, text):\n    self.output_dir = text\n\n<span class=\"has-inline-color has-vivid-red-color\">def templateCaseChanged(self, text):\n    self.template_case = text<\/span><\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u5909\u66f4\u306b\u3088\u3063\u3066\u3001\u6539\u5909\u3055\u308c\u305f\u8a2d\u5b9a\u753b\u9762\u3092\u4ee5\u4e0b\u306b\u793a\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2021\/09\/17ab7c169e9d84653ec5863c5f2f2048.png\" alt=\"\" class=\"wp-image-13442\" width=\"792\" height=\"539\"\/><\/figure><\/div>\n\n\n\n<p>\u306a\u304a\u3001\u753b\u9762\u30c7\u30fc\u30bf\uff08dexcsCfdPreferencePage.ui\uff09\u306f\u3001QtDesigner\u3092\u4f7f\u3063\u3066\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u30c7\u30fc\u30bf\uff08CfdReferencePage.ui\uff09\u3092\u6539\u5909\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3002\u305d\u306e\u969b\u306b\u3001HISA\u306a\u308bSoftware\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u9805\u76ee\u304c\u3042\u308a\u3001dexcsCfdOf\u3067\u306f\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u524a\u9664\u3092\u8a66\u307f\u305f\u304c\u3001FreeCAD\u306e\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u8868\u793a\u3067\u7acb\u3061\u4e0a\u304c\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u305d\u306e\u539f\u56e0\u89e3\u660e\u306f\u5f53\u9762\u30da\u30f3\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u5148\u3078\u9032\u3081\u308b\u3053\u3068\u3068\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306b\u304a\u3051\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u8ffd\u52a0\uff08dexcsCfdAnalysis.py\uff09<\/h3>\n\n\n\n<p>\u3053\u3061\u3089\u3082Output&#8230;\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u306b\u7d9a\u3051\u3066\u3001Template\u306b\u4fc2\u308b\u8a18\u8ff0\u306b\u5909\u66f4\u3057\u305f\u3060\u3051\u3067\u3042\u308b\uff08<span class=\"has-inline-color has-vivid-red-color\">\u6731\u5b57<\/span>\u90e8\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(54\u884c\u76ee\u3042\u305f\u308a)\nmodel = FreeCAD.ActiveDocument.FileName\n#print(model)\nmodelDir = os.path.dirname(model)\n<span class=\"has-inline-color has-vivid-red-color\">templateCase = \"\/opt\/DEXCS\/template\/dexcs\"\n<\/span>addObjectProperty(obj, \"OutputPath\", modelDir, \"App::PropertyPath\", \"\",\n                  \"Path to which cases are written (blank to use system default)\")\n<span class=\"has-inline-color has-vivid-red-color\">addObjectProperty(obj, \"TemplateCase\", templateCase, \"App::PropertyPath\", \"\",\n                  \"Path to Template case Dir (blank to use system default)\")<\/span><\/code><\/pre>\n\n\n\n<p>\u306a\u304a\u3001\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u5148\u306e\u300c\u8a2d\u5b9a\u300d\u753b\u9762\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3068\u306e\u9023\u52d5\u307e\u3067\u306f\u8003\u3048\u3066\u3044\u306a\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u753b\u9762\u3067\u5909\u66f4\u3057\u305f\u30d1\u30e9\u30e1\u30bf\u3092\u4f7f\u3063\u3066\u3001\u30e1\u30c3\u30b7\u30e5\u4f5c\u6210\u3084\u89e3\u6790\u5b9f\u884c\u304c\u3001\u6240\u5b9a\u306e\u52d5\u4f5c\u3059\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u3066\u3044\u304f\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001OutputDirectory\u306b\u95a2\u3059\u308b\u30d1\u30e9\u30e1\u30bf\u306e\u7528\u8a9e\u306f\u3001\u5fc5\u305a\u3057\u3082\u7d71\u4e00\u3055\u308c\u3066\u3044\u306a\u3044\uff08Path\u304c\u4f7f\u308f\u308c\u3066\u3044\u305f\u308a\u3001\u5c0f\u6587\u5b57\u3067\u59cb\u307e\u3063\u3066\u3044\u305f\u308a\u3059\u308b\uff09\u304c\u3001\u5f53\u9762\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u5408\u308f\u305b\u3066\u304a\u304f\u5fc5\u8981\u306f\u3042\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u6790\u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>\u89e3\u6790\u30b1\u30fc\u30b9\u306f\u30e1\u30c3\u30b7\u30e5\u4f5c\u6210\u30bf\u30b9\u30af\u753b\u9762(_dexcsTaskPanelCfdMsh.py)\u3067[Write]\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-green-cyan-color\">#cart_mesh = self.cart_mesh\n<\/span><span class=\"has-inline-color has-vivid-red-color\">self.analysis = dexcsCfdTools.getParentAnalysisObject(self.mesh_obj)\noutput_path = dexcsCfdTools.getOutputPath(self.analysis)<\/span> <span class=\"has-inline-color has-vivid-red-color\">+ os.path.sep\ntemplate_case = dexcsCfdTools.getTemplateCase(self.analysis)\n<\/span>try:\n    QApplication.setOverrideCursor(Qt.WaitCursor)\n    FreeCADGui.doCommand(\"dexcsCfMesh = dexcsCfMeshTools.MainControl()\")\n<span class=\"has-inline-color has-vivid-green-cyan-color\">    #FreeCADGui.doCommand(\"dexcsCfMesh.perform(\"+ \"'\" + cart_mesh.meshCaseDir + \"'\" + \")\")\n<\/span><span class=\"has-inline-color has-vivid-red-color\">    FreeCADGui.doCommand(\"dexcsCfMesh.perform(\"+ \"'\" + output_path + \"', '\" + template_case + \"'\" + \")\")       <\/span>\n<\/code><\/pre>\n\n\n\n<p><span class=\"has-inline-color has-vivid-green-cyan-color\">\u7dd1\u5b57<\/span>\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u305f\u90e8\u5206\u3092\u3001<span class=\"has-inline-color has-vivid-red-color\">\u6731\u5b57<\/span>\u306b\u5909\u66f4\u3057\u305f\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u3001dexcsCfMesh\uff08\u30aa\u30ea\u30b8\u30ca\u30eb\u306eDEXCS\u30de\u30af\u30ed\u3092\u6539\u9020\u3057\u305f\u3082\u306e\uff09\u306eperform()\u95a2\u6570\u306b\u3066\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308b\u304c\u3001\u3053\u308c\u307e\u3067\u51fa\u529b\u5148\uff08output_path\uff09\u3060\u3051\u3092\u6307\u5b9a\u3057\u3066\u3044\u305f\u306e\u306b\u5bfe\u3057\u3001\u4f75\u305b\u3066template_case\u3082\u5f15\u6570\u306b\u52a0\u3048\u305f\u3068\u3044\u3046\u70b9\u3002\u305d\u3057\u3066\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306b\u3066\u6307\u5b9a\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u306e\u53d6\u5f97\u65b9\u6cd5\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u89e3\u6790\u306e\u51fa\u529b\u5148\uff08output_case\uff09\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u3067\u306f\u3001<span class=\"has-inline-color has-black-color\">cart_mesh.meshCaseDir <\/span>\u3068\u3044\u3046\u5f62\u3067\u3001\u5225\u9014\u5b9a\u7fa9\u3057\u3066\u3042\u308b\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3002\u3053\u308c\u306b\u5408\u308f\u305b\u3066<span class=\"has-inline-color has-black-color\">template_case<\/span>\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\u4e8b\u3082\u8003\u3048\u3089\u308c\u305f\u304c\u3001\u305d\u306e\u65b9\u6cd5\u304c\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3002\u305d\u3053\u3067\u8a66\u884c\u932f\u8aa4\u306e\u672b\u3001\u3053\u3053\u306b\u8a18\u3057\u305f\u65b9\u6cd5\u306b\u8fbf\u308a\u7740\u3044\u305f\u3002<\/p>\n\n\n\n<p>\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u4e0a\u306etemplate_case\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u3001<span class=\"has-inline-color has-black-color\">dexcsCfdTools.getTemplateCase(self.analysis)\u3092\u4f7f\u3063\u3066\u3044\u308b\u304c\u3001output_path \u3092\u53d6\u5f97\u3059\u308bdexcsCfdTools.getOutputPath(self.analysis)\u306b\u5023\u3063\u3066\u3001dexcsCfdTools.py \u4e2d\u306e\u3001<\/span>def getDefaultOutputPath():\u3068\u3001def getOutputPath(analysis):\u30d6\u30ed\u30c3\u30af\u306e\u4e0b\u306b<span class=\"has-inline-color has-black-color\">\u3001\u5909\u6570\u540d\u304c\u7570\u306a\u308b\u3060\u3051\u3067\u5168\u304f\u540c\u3058\u624b\u7d9a\u306e<\/span><span class=\"has-inline-color has-vivid-red-color\"><span class=\"has-inline-color has-vivid-red-color\">def getDefaultTemplateCase(): <\/span><\/span>\u3068\u3001<span class=\"has-inline-color has-vivid-red-color\">def getTemplateCase(analysis):<\/span>\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(75\u884c\u76ee\u3042\u305f\u308a)\n<span class=\"has-inline-color has-vivid-red-color\">DEXCS_TEMPLATE = \"\/opt\/DEXCS\/template\"<\/span>\n\ndef getDefaultOutputPath():\n    prefs = getPreferencesLocation()\n    output_path = FreeCAD.ParamGet(prefs).GetString(\"DefaultOutputPath\", \"\")\n    #print('output_path = ' + output_path)\n    if not output_path:\n        #output_path = tempfile.gettempdir()\n        output_path = os.path.dirname(FreeCAD.ActiveDocument.FileName) \n    output_path = os.path.normpath(output_path)\n    return output_path\n\n<span class=\"has-inline-color has-vivid-red-color\">def getDefaultTemplateCase():\n    prefs = getPreferencesLocation()\n    template_case = FreeCAD.ParamGet(prefs).GetString(\"DefaultTemplateCase\", \"\")\n    #print('template_case = ' + template_case)\n    if not template_case:\n        #template_case = tempfile.gettempdir()\n        template_case = DEXCS_TEMPLATE\n    template_case = os.path.normpath(template_case)\n    return template_case<\/span>\n\ndef getOutputPath(analysis):\n    if analysis and 'OutputPath' in analysis.PropertiesList:\n        output_path = analysis.OutputPath\n    else:\n        output_path = \"\"\n    if not output_path:\n        output_path = getDefaultOutputPath()\n    output_path = os.path.normpath(output_path)\n    return output_path\n\n<span class=\"has-inline-color has-vivid-red-color\">def getTemplateCase(analysis):\n    if analysis and 'TemplateCase' in analysis.PropertiesList:\n        template_case = analysis.TemplateCase\n    else:\n        template_case = \"\"\n    if not template_case:\n        template_case = getDefaultTemplateCase()\n    template_case = os.path.normpath(template_case)\n    return template_case<\/span><\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u5909\u66f4\u306b\u4f34\u3063\u3066\u3001dexcsCfMesh\uff08\u30aa\u30ea\u30b8\u30ca\u30eb\u306eDEXCS\u30de\u30af\u30ed\u3092\u6539\u9020\u3057\u305f\u3082\u306e\uff09\u306eperform()\u95a2\u6570\u306e\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u308b\u304c\u3001\u5909\u66f4\u306f\u308f\u305a\u304b\u3067\u3001\u4ee5\u4e0b<span class=\"has-inline-color has-vivid-red-color\">\u6731\u5b57<\/span>\u90e8\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(1601\u884c\u76ee\u3042\u305f\u308a)\ndef perform(self, CaseFilePath<span class=\"has-inline-color has-vivid-red-color\">, TemplateCase<\/span>):<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>(1648\u884c\u76ee\u3042\u305f\u308a)        \n<span class=\"has-inline-color has-vivid-red-color\">if TemplateCase:\n    templateSolver =  TemplateCase\nelse:   <\/span>\n    templateSolver = self.SOLVER_PATH_TEMPLATE<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u306b\u3066\u3001\u89e3\u6790\u30b1\u30fc\u30b9\uff08\u51fa\u529b\u5148\uff09\u3001\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30e1\u30c3\u30b7\u30e5\u4f5c\u6210\u3001\u89e3\u6790\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002\u3042\u3068\u306f\u3001<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u8a2d\u5b9a\u753b\u9762\u3067\u306e\u8a2d\u5b9a\u5024\u3068\u4e0a\u8a18\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u3092\u9023\u52d5\u3055\u305b\u308b<\/li><li>DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc\u306e\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3\u306e\u52d5\u4f5c\u3092\u6574\u5408\u3055\u305b\u308b<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u8a2d\u5b9a\u753b\u9762\u518d\u8003<\/h3>\n\n\n\n<p>\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u8a2d\u5b9a\u753b\u9762\u3067\u306e\u8a2d\u5b9a\u5024\u3068\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u304c\u9023\u52d5\u3057\u3066\u3044\u306a\u3044\u70b9\u304c\u554f\u984c\u3067\u306f\u3042\u3063\u305f\u304c\u3001\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3092\u8003\u3048\u308b\u3068\u3001\u5358\u306b\u9023\u52d5\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u3082\u306a\u3055\u305d\u3046\u3060\u3002\u3064\u307e\u308a\u3001\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u8a2d\u5b9a\u753b\u9762\u306f\u5e38\u6642\u5229\u7528\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u3002\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3067\u51fa\u529b\u30d5\u30a9\u30eb\u30c0\u3092\u5909\u66f4\u3057\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u3001\u305d\u308c\u304c\u6052\u4e45\u7684\u306a\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3082\u8003\u3048\u3082\u306e\u3067\u3042\u308b\u3002\u305d\u3053\u3067\u3001\u89e3\u6790\u30d5\u30a9\u30eb\u30c0\u3068\u96db\u5f62\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\uff08\u30d5\u30a9\u30eb\u30c0\uff09\u306b\u3064\u3044\u3066\u306f\u3001\u4f7f\u7528\u65b9\u6cd5\u3068\u3057\u3001\u4ee5\u4e0b\u306e\u8003\u3048\u65b9\u3092\u57fa\u672c\u306b\u3059\u308b\u3068\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3092\u65b0\u898f\u4f5c\u6210\u3057\u305f\u5834\u5408\u306b\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u8a2d\u5b9a\u753b\u9762\u3067\u8a2d\u5b9a\u3057\u305f\u3082\u306e\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3068\u3057\u3001\u305d\u306e\u8a2d\u5b9a\u3092\u5f15\u304d\u7d99\u3050\u3002\u305d\u306e\u5f8c\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u306b\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3060\u304c\u3001\u5909\u66f4\u3057\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u307e\u3067\u306f\u5909\u66f4\u3057\u306a\u3044\uff08\u4e00\u65b9\u5411\u306e\u9023\u52d5\u306e\u307f\uff09\u3002<\/p>\n\n\n\n<p>\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u8a2d\u5b9a\u306e\u521d\u671f\u5024\u306f\u3001user.cfg \u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u4f7f\u7528\u3059\u308b\u304c\u3001\u89e3\u6790\u30b1\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u306b\u306e\u307f\u305d\u308c\u3092\u63a1\u7528\u3059\u308b\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306b\u306f\u3001[model_dir]\u304c\u63a1\u7528\u3055\u308c\u3001\u30e2\u30c7\u30eb\u306e\u5b58\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u4e8b\u3092\u793a\u3059\u3088\u3046\u306b\u3059\u308b\uff08\u4e0b\u56f3\u53c2\u7167\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2021\/09\/bb796526409ce559d7af42eb04c92895.png\" alt=\"\" class=\"wp-image-13444\" width=\"752\" height=\"559\"\/><\/figure><\/div>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306e\u306b\u3001\u3053\u308c\u307e\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u306eCfdOF\u3067\u306f\u89e3\u6790\u30d5\u30a9\u30eb\u30c0\u306f\u7279\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u3092\u60f3\u5b9a\u3057\u3066\u3044\u305f\u70ba\u3001\u672c\u6539\u9020\u3067\u306f\u66ab\u5b9a\u7684\u306bInitGui.py def __init__(self) \u306b\u304a\u3044\u3066\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>prefs = dexcsCfdTools.getPreferencesLocation()\nFreeCAD.ParamGet(prefs).SetString(\"DefaultOutputPath\", \"\")<\/code><\/pre>\n\n\n\n<p>\u3068\u3057\u3066\u3001user.cfg \u306e\u5024\u306b\u4f9d\u3089\u306a\u3044\u3067\u3001\u3053\u3053\u3067\u30c7\u30fc\u30bf\u3092\u30af\u30ea\u30a2\u3057\u3066\u3044\u305f\u304c\u3001\u3053\u306e\u90e8\u5206\u3092\u5143\u306b\u623b\u3057\u305f\u3002\u307e\u305f\u3001\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u8a2d\u5b9a\u753b\u9762\u306e\u8868\u793a\u306b\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(156\u884c\u76ee\u3042\u305f\u308a)\nself.output_dir = dexcsCfdTools.getDefaultOutputPath()<\/code><\/pre>\n\n\n\n<p>\u304c\u4f7f\u308f\u308c\u308b\u306e\u3067\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def getDefaultOutputPath():\n    prefs = getPreferencesLocation()\n    output_path = FreeCAD.ParamGet(prefs).GetString(\"DefaultOutputPath\", \"\")\n    <span class=\"has-inline-color has-vivid-red-color\">if not output_path:<\/span>\n        <span class=\"has-inline-color has-vivid-red-color\">output_path = 'model_dir'<\/span>\n    output_path = os.path.normpath(output_path)\n    return output_path<\/code><\/pre>\n\n\n\n<p>\u3068\u3057\u3001\u3055\u3089\u306b\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u304c\u30ed\u30fc\u30c9\u3055\u308c\u305f\u969b\u306b\u8a2d\u5b9a\u3055\u308c\u308b\u51fa\u529b\u30d5\u30a9\u30eb\u30c0\u540d\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    def initProperties(self, obj):\n        model = FreeCAD.ActiveDocument.FileName\n        <span class=\"has-inline-color has-vivid-red-color\">prefs = dexcsCfdTools.getPreferencesLocation()\n        model_Dir = FreeCAD.ParamGet(prefs).GetString(\"DefaultOutputPath\", \"\")\n        if os.path.exists(model_Dir):\n            modelDir = model_Dir<\/span>\n        else:\n            modelDir = os.path.dirname(model)\n        templateCase = FreeCAD.ParamGet(prefs).GetString(\"DefaultTemplateCase\", \"\")<\/code><\/pre>\n\n\n\n<p>\u30d7\u30ec\u30d5\u30a1\u30ec\u30f3\u30b9\u8a2d\u5b9a\u753b\u9762\uff08user.cfg\u306b\u8a18\u8f09\uff09\u306e\u8868\u793a\u306b\u3066\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3001\u5b9f\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u3092\u3057\u3066\u3001\u5b9f\u5728\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u63a1\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3<\/h3>\n\n\n\n<p>\u89e3\u6790\u30b1\u30fc\u30b9\uff08\u51fa\u529b\u5148\uff09\u3092\u30e2\u30c7\u30eb\u304c\u53ce\u7d0d\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u5916\u306b\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306b\u3001DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc\u306e\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3\u304c\u8d77\u52d5\u3057\u306a\u3044\u306e\u306f\u3001\u3053\u306e\u6642\u70b9\u3067\u306f\u305d\u3046\u3044\u3046\u4ed5\u69d8\u3067\u3042\u308b\u306e\u3067\u4ed5\u65b9\u306a\u3044\u3002DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc\u3067\u306f\u3001\u30e2\u30c7\u30eb\u304c\u53ce\u7d0d\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001.CaseFileDict\u3092\u53ce\u7d0d\u3057\u3066\u3001\u3053\u3053\u306b\u51fa\u529b\u5148\u3092\u8a18\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u6642\u70b9\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u3089\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u30e1\u30c3\u30b7\u30e5\u4f5c\u6210\u30bf\u30b9\u30af\u753b\u9762(_dexcsTaskPanelCfdMsh.py)\u3067[Write]\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u6642\u306b\u3001\u51fa\u529b\u5148\u304c\u78ba\u5b9a\u3057\u305f\u5f8c\u3067\u3001\u4ee5\u4e0b\u306e<span class=\"has-inline-color has-vivid-red-color\">\u6731\u5b57<\/span>\u90e8\u5206\u3092\u8ffd\u52a0\u3057\u3066\u3001.CaseFileDict \u3092\u4f5c\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>output_path = dexcsCfdTools.getOutputPath(self.analysis) + os.path.sep\n\n<span class=\"has-inline-color has-vivid-red-color\">if output_path&#91;-1] == os.path.sep:\n    output_path1 = output_path&#91;:-1] \nelse:\n    output_path1 = output_path\ndictName = os.path.dirname(FreeCAD.ActiveDocument.FileName)  + \"\/.CaseFileDict\"\nwriteDict = open(dictName , 'w')\nwriteDict.writelines(output_path1)\nwriteDict.close()\n<\/span><\/code><\/pre>\n\n\n\n<p>\u306a\u304a\u3001\u51fa\u529b\u5148\u30d1\u30b9\u540d\u306e\u6700\u5f8c\u306e\u6587\u5b57\u304cos.path.sep\uff08\u30d1\u30b9\u5206\u96e2\u8a18\u53f7\uff09\u306e\u5834\u5408\u3001\u305d\u308c\u3092\u542b\u307e\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u3053\u308c\u304c\u6b8b\u3063\u3066\u3044\u308b\u3068\u3001TreeFoam\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u70ba\u3067\u3042\u3063\u305f\uff08\u305d\u306e\u4ed6\u306e\u30e9\u30f3\u30c1\u30e3\u30fc\u30dc\u30bf\u30f3\u306f\u3001\u3042\u3063\u3066\u3082\u306a\u304f\u3066\u3082\u6b63\u5e38\u306b\u8d77\u52d5\u3059\u308b\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e7\u7248DEXCS\u30de\u30af\u30ed<\/h3>\n\n\n\n<p>DEXCS2021\u3067\u306f\u3001\u65e7\u7248\u306eDEXCS\u30de\u30af\u30ed\u3082\u6df7\u5728\u3055\u305b\u305f\u72b6\u614b\u3067\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u3044\u308b\u304c\u3001\u305d\u308c\u3068DEXCS\u30c4\u30fc\u30eb\u30d0\u30fc\u30dc\u30bf\u30f3\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n\n\n\n<p>DEXCS\u30ef\u30fc\u30af\u30d9\u30f3\u30c1\u306b\u3088\u308b\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3057\u306a\u3044\u72b6\u614b\u3067\u3042\u308c\u3070\u3001\u57fa\u672c\u7684\u306b\u65e7\u7248\u3067\u306e\u64cd\u4f5c\u65b9\u6cd5\u306e\u901a\u308a\u3067\u52d5\u4f5c\u3059\u308b\u3002\u57fa\u672c\u7684\u306b\u3068\u8a18\u3057\u305f\u306e\u306f\u3001<img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-12735\" style=\"width: 24px;\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2020\/06\/plotWatcher.png\" alt=\"\">plotWatcher\u3068\u3001<img loading=\"lazy\" decoding=\"async\" width=\"24\" height=\"24\" class=\"wp-image-11998\" style=\"width: 24px;\" src=\"https:\/\/ocse2.com\/wp-content\/uploads\/2019\/10\/plot.png\" alt=\"\">\u30dd\u30b9\u30c8\u51e6\u7406\u306b\u304a\u3044\u3066Plot\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u8d77\u52d5\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u70b9\u3067\u3042\u308b\u3002\u7279\u306bplotWatcher\u6a5f\u80fd\u306f\u3001\u3053\u306e\u30dc\u30bf\u30f3\u3067\u4f7f\u7528\u3059\u308b\u9650\u308a\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u306a\u3044\u70b9\u306f\u3001\u4eca\u306e\u6240\u4ed5\u65b9\u7121\u3044\u3068\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3001DEXCS\u30ef\u30fc\u30af\u30d9\u30f3\u30c1\u306b\u3088\u308b\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u305f\u72b6\u614b\u306b\u304a\u3044\u3066\u3001\u65e7\u7248DEXCS\u30de\u30af\u30ed\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u3067\u8d77\u52d5\u3067\u304d\u306a\u3044\u3002\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u304cShape\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6709\u3057\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u3053\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001<span class=\"has-inline-color has-vivid-red-color\">\u6731\u5b57<\/span>\u90e8\u3067\u4f8b\u5916\u51e6\u7406\u3055\u305b\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">            try:\n<\/span>                if obj.Shape:\n                    if obj.Shape.BoundBox.XMax &gt; xmax:\n                        xmax = obj.Shape.BoundBox.XMax\n                    if obj.Shape.BoundBox.XMin &lt; xmin:\n                        xmin = obj.Shape.BoundBox.XMin\n                    if obj.Shape.BoundBox.YMax &gt; ymax:\n                        ymax = obj.Shape.BoundBox.YMax\n                    if obj.Shape.BoundBox.YMin &lt; ymin:\n                        ymin = obj.Shape.BoundBox.YMin\n                    if obj.Shape.BoundBox.ZMax &gt; zmax:\n                        zmax = obj.Shape.BoundBox.ZMax\n                    if obj.Shape.BoundBox.ZMin &lt; zmin:\n                        zmin = obj.Shape.BoundBox.ZMin\n<span class=\"has-inline-color has-vivid-red-color\">            except AttributeError:\n                pass<\/span><\/code><\/pre>\n\n\n\n<p id=\"button\">\u3053\u308c\u306b\u3088\u308a\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3092\u975e\u8868\u793a\u72b6\u614b\u306b\u3057\u3066\u30de\u30af\u30ed\u3092\u7acb\u3061\u4e0a\u3052\u308c\u3070\u3001\u65e7\u7248DEXCS\u30de\u30af\u30ed\u306e\u6319\u52d5\u306f\u5168\u304f\u540c\u4e00\u306e\u3082\u306e\u306b\u306a\u308b\u3002\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3092\u8868\u793a\u72b6\u614b\u306e\u307e\u307e\u30de\u30af\u30ed\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3068\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u3082\u542b\u3081\u3066\u30de\u30af\u30ed\u753b\u9762\u306b\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u305d\u306e\u307e\u307e\u7121\u7406\u3084\u308a\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u3068\u3001\u89e3\u6790\u30b3\u30f3\u30c6\u30ca\u304b\u3089ast\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u308c\u306a\u3044\u3068\u306a\u3063\u3066\u7acb\u3061\u884c\u304b\u306a\u304f\u306a\u308b\u3002\u3053\u308c\u306f\u305d\u3046\u3044\u3046\u4ed5\u69d8\u306a\u306e\u3067\u4ed5\u65b9\u7121\u3044\u3002<\/p>\n\n\n\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u3001\u89e3\u6790\u30fb\u96db\u5f62\u30b1\u30fc\u30b9\u3092\u4efb\u610f\u306b\u8a2d\u5b9a\u53ef\u80fd\u3068\u306a\u308a\u3001\u65e7\u7248DEXCS\u30de\u30af\u30ed\u3084\u3001<a href=\"https:\/\/ocse2.com\/?p=13450\">DEXCS\u30e9\u30f3\u30c1\u30e3\u30fc\u30dc\u30bf\u30f3\u3067\u306e\u52d5\u4f5c<\/a>\u3068\u3082\u6574\u5408\u3059\u308b\u3088\u3046\u306b\u306f\u306a\u3063\u305f\uff08\u3068\u601d\u3046\uff09\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/ocse2.com\/?p=13349#japanese\">\u524d\u3078<\/a>\u3000<a href=\"https:\/\/ocse2.com\/?p=13115\">\u76ee\u6b21<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8ab2\u984c\u306e\u80cc\u666f \u3053\u308c\u307e\u3067FreeCAD\u30e2\u30c7\u30eb\u306e\u5b58\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u89e3\u6790\u30b1\u30fc\u30b9\u30d5\u30a9\u30eb\u30c0\u3067\u3042\u308b\u3068\u3057\u3066\u69d8\u3005\u306a\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u30fb\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u304d\u305f\u3002\u307e\u305f\u6700\u521d\u306bFreeCAD\u30e2\u30c7\u30eb\u306e\u5b58\u5728\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30b1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u306a\u3044\u5834\u5408\u306b\u306f\u3001DE [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[74,48,28,23,13],"class_list":["post-13437","post","type-post","status-publish","format-standard","hentry","category-toolstips","tag-cfdof","tag-cfmesh","tag-dexcs","tag-freecad","tag-openfoam"],"views":230,"_links":{"self":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/13437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13437"}],"version-history":[{"count":5,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/13437\/revisions"}],"predecessor-version":[{"id":13474,"href":"https:\/\/ocse2.com\/index.php?rest_route=\/wp\/v2\/posts\/13437\/revisions\/13474"}],"wp:attachment":[{"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ocse2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}