


{"id":422882,"date":"2025-02-23T06:27:51","date_gmt":"2025-02-23T06:27:51","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/cannot-transfer-updated-mesh-to-fluent\/"},"modified":"2025-02-23T06:35:33","modified_gmt":"2025-02-23T06:35:33","slug":"cannot-transfer-updated-mesh-to-fluent","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/cannot-transfer-updated-mesh-to-fluent\/","title":{"rendered":"cannot transfer updated mesh to FLUENT"},"content":{"rendered":"<p>&lt;ul class=&#8221;topic-with-bgcolor&#8221;&gt;&lt;li class=&#8221;oddsingle&#8221;&gt;&lt;div class=&#8221;loop-item&#8211;1 user-id-251212 bbp-parent-forum-27811 bbp-parent-topic-27792 bbp-reply-position-1 even  post-422882 topic type-topic status-publish hentry topic-tag-fluent topic-tag-meshing topic-tag-scripting-journaling-2 topic-tag-workbench&#8221;&gt;&lt;p&gt;Hi&lt;br&gt;For automation using Fluent, I used journal recording in Workbench. However, the mesh cannot be updated and passed into FLUENT:&lt;\/p&gt;&lt;p&gt;<a href=\"https:\/\/us.v-cdn.net\/6037473\/uploads\/editor\/u3\/bkpxgeywqe07.png\" rel=\"external noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6037473\/uploads\/editor\/u3\/bkpxgeywqe07.png\" alt=\"\" \/><\/a>&lt;\/p&gt;&lt;p&gt;The main part of the code reads:&lt;\/p&gt;<\/p>\n<pre class=\"bbp-reply-content\">&lt;span class=\"pln\"&gt;mesh1&lt;\/span&gt;&lt;span class=\"pun\"&gt;.&lt;\/span&gt;&lt;span class=\"typ\"&gt;Edit&lt;\/span&gt;&lt;span class=\"pun\"&gt;()&lt;\/span&gt;&lt;br&gt;&lt;span class=\"pln\"&gt;mesh1&lt;\/span&gt;&lt;span class=\"pun\"&gt;.&lt;\/span&gt;&lt;span class=\"typ\"&gt;SendCommand&lt;\/span&gt;&lt;span class=\"pun\"&gt;(&lt;\/span&gt;&lt;span class=\"typ\"&gt;Language&lt;\/span&gt; &lt;span class=\"pun\"&gt;=&lt;\/span&gt; &lt;span class=\"hljs-string\"&gt;\"Python\"&lt;\/span&gt;&lt;span class=\"pun\"&gt;,&lt;\/span&gt; &lt;span class=\"typ\"&gt;Command&lt;\/span&gt; &lt;span class=\"pun\"&gt;=&lt;\/span&gt; &lt;span class=\"hljs-string\"&gt;\"\"\"&lt;\/span&gt;&lt;br&gt;&lt;span class=\"hljs-string\"&gt;Model.UpdateGeometryFromSource()&lt;\/span&gt;&lt;br&gt;&lt;span class=\"hljs-string\"&gt;mesh_14 = Model.Mesh&lt;\/span&gt;&lt;br&gt;&lt;span class=\"hljs-string\"&gt;mesh_14.GenerateMesh()&lt;\/span&gt;&lt;br&gt;&lt;span class=\"hljs-string\"&gt;\"\"\"&lt;\/span&gt;&lt;span class=\"pun\"&gt;)&lt;br&gt;&lt;br&gt;&lt;\/span&gt;&lt;span class=\"pln\"&gt;mesh1&lt;\/span&gt;&lt;span class=\"pun\"&gt;.&lt;\/span&gt;&lt;span class=\"typ\"&gt;Update&lt;\/span&gt;&lt;span class=\"pun\"&gt;(&lt;\/span&gt;&lt;span class=\"typ\"&gt;AllDependencies&lt;\/span&gt;&lt;span class=\"pun\"&gt;=&lt;\/span&gt;&lt;span class=\"hljs-literal\"&gt;True&lt;\/span&gt;&lt;span class=\"pun\"&gt;)&lt;\/span&gt;<\/pre>\n<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;When I omit the last line, everything works fine. But when it is included, it causes this error:&lt;\/p&gt;&lt;p&gt;<a href=\"https:\/\/us.v-cdn.net\/6037473\/uploads\/editor\/mn\/mu5dczsboav6.png\" rel=\"external noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6037473\/uploads\/editor\/mn\/mu5dczsboav6.png\" alt=\"\" \/><\/a>&lt;\/p&gt;&lt;p&gt;Why is it that the &#8220;update&#8221; should be attributed and the WB-recorded script cannot do this? What should I do?&lt;\/p&gt;&lt;p&gt;Any help would be greatly appreciated.&lt;br&gt;Best&lt;\/p&gt;&lt;\/div&gt;<\/li>\n<\/ul>\n","protected":false},"template":"","class_list":["post-422882","topic","type-topic","status-publish","hentry","topic-tag-fluent","topic-tag-meshing","topic-tag-scripting-journaling-2","topic-tag-workbench"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["422882"],"_bbp_subscription":["251212"],"_bbp_author_ip":["2a09:bac5:2a92:2482::3a3:1"],"_bbp_last_reply_id":["422883"],"_bbp_last_active_id":["422883"],"_bbp_last_active_time":["2025-02-23 06:31:09"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["1"],"_bbp_engagement":["251212"],"_btv_view_count":["93"],"_bbp_topic_status":["unanswered"],"_edit_last":["251212"]},"test":"e-bakhtyarygmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/422882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/422882\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=422882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}