


{"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"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 &quot;oil_fluid-oil_fluid_0&quot;, &quot;oil_fluid-oil_fluid_1&quot;...&#039;oil_fluid oil_fluid_5&#039;(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\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"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 &quot;oil_fluid-oil_fluid_0&quot;, &quot;oil_fluid-oil_fluid_1&quot;...&#039;oil_fluid oil_fluid_5&#039;(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\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-08-28T05:30:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-08-29T14:20:09+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"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 &quot;oil_fluid-oil_fluid_0&quot;, &quot;oil_fluid-oil_fluid_1&quot;...&#039;oil_fluid oil_fluid_5&#039;(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\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/ansys-meshing-python-script\\\/#listItem\",\"name\":\"ansys-meshing-python-script\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/ansys-meshing-python-script\\\/#listItem\",\"position\":3,\"name\":\"ansys-meshing-python-script\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/ansys-meshing-python-script\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/#listItem\",\"name\":\"How to intelligently add local sizes in pyfluent and conveniently obtain zone na\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/#listItem\",\"position\":4,\"name\":\"How to intelligently add local sizes in pyfluent and conveniently obtain zone na\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/ansys-meshing-python-script\\\/#listItem\",\"name\":\"ansys-meshing-python-script\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/\",\"name\":\"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum\",\"description\":\"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 \\\"oil_fluid-oil_fluid_0\\\", \\\"oil_fluid-oil_fluid_1\\\"...'oil_fluid oil_fluid_5'(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\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\\\/#breadcrumblist\"},\"datePublished\":\"2023-08-28T05:30:21+00:00\",\"dateModified\":\"2023-08-29T14:20:09+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum","description":"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 \"oil_fluid-oil_fluid_0\", \"oil_fluid-oil_fluid_1\"...'oil_fluid oil_fluid_5'(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","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/#listItem","name":"ansys-meshing-python-script"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/#listItem","position":3,"name":"ansys-meshing-python-script","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/#listItem","name":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/#listItem","position":4,"name":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/#listItem","name":"ansys-meshing-python-script"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/","name":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum","description":"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 \"oil_fluid-oil_fluid_0\", \"oil_fluid-oil_fluid_1\"...'oil_fluid oil_fluid_5'(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","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/#breadcrumblist"},"datePublished":"2023-08-28T05:30:21+00:00","dateModified":"2023-08-29T14:20:09+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum","og:description":"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 &quot;oil_fluid-oil_fluid_0&quot;, &quot;oil_fluid-oil_fluid_1&quot;...'oil_fluid oil_fluid_5'(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","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg","article:published_time":"2023-08-28T05:30:21+00:00","article:modified_time":"2023-08-29T14:20:09+00:00","twitter:card":"summary_large_image","twitter:title":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na | Ansys Learning Forum","twitter:description":"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 &quot;oil_fluid-oil_fluid_0&quot;, &quot;oil_fluid-oil_fluid_1&quot;...'oil_fluid oil_fluid_5'(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","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/28-08-2023-1693200526-1.jpg"},"aioseo_meta_data":{"post_id":"303560","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 17:48:25","updated":"2024-10-28 17:48:25","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/\" title=\"ansys-meshing-python-script\">ansys-meshing-python-script<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to intelligently add local sizes in pyfluent and conveniently obtain zone na\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"ansys-meshing-python-script","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/ansys-meshing-python-script\/"},{"label":"How to intelligently add local sizes in pyfluent and conveniently obtain zone na","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na\/"}],"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":["452"],"_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}]}}