


{"id":303560,"date":"2023-08-28T05:30:21","date_gmt":"2023-08-28T05:30:21","guid":{"rendered":"\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/"},"modified":"2023-08-29T14:20:09","modified_gmt":"2023-08-29T14:20:09","slug":"how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/","title":{"rendered":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na"},"content":{"rendered":"<p>I now want to use pyfluent to add local dimensions in fluent meshing, as shown in the figure. I would like to select zone name by label as &#8220;oil_fluid-oil_fluid_0&#8221;, &#8220;oil_fluid-oil_fluid_1&#8243;&#8230;&#8217;oil_fluid oil_fluid_5&#8242;(six zone). I successfully created a local size using the following code, but now I want to make my code more intelligent because the number of zones I have may change in the future. I would like to know if there is a way to directly select all zones with &#8216;oil_fluid oil_fluid&#8217; in their names. Regardless of whether the number of zones increases or decreases, I can quickly select the zone I want. What can i do? Please help me, thank you very much!!!!<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg\" alt=\"\"><\/p>\n<pre>    meshing_session.workflow.TaskObject[\"Add Local Sizing\"].Arguments.setState(AddChild=\"yes\",<br>                                                                               BOIControlName=\"bodysize_oil\",<br>                                                                               BOIExecutio=\"Body Size\",<br>                                                                               BOIFaceLabelList=[\"oil_fluid-oil_fluid_0\",<br>                                                                                                 \"oil_fluid-oil_fluid_1\",<br>                                                                                                 \"oil_fluid-oil_fluid_2\",<br>                                                                                                 \"oil_fluid-oil_fluid_3\",<br>                                                                                                 \"oil_fluid-oil_fluid_4\",<br>                                                                                                 \"oil_fluid-oil_fluid_5\"],<br>                                                                               BOISize=2)<\/pre>\n","protected":false},"template":"","class_list":["post-303560","topic","type-topic","status-closed","hentry","topic-tag-ansys-meshing-python-script","topic-tag-fluent-mesh"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["13905","2404"],"_bbp_author_ip":["96.7.74.173"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["401"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["303560"],"_bbp_forum_id":["27796"],"_bbp_engagement":["2404","13905"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["303642"],"_bbp_last_active_id":["303642"],"_bbp_last_active_time":["2023-08-28 12:36:19"]},"test":"wuhaibin833outlook-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/303560","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\/303560\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=303560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}