CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to intelligently add local sizes in pyfluent and conveniently obtain zone name

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2023, 02:37
Default How to intelligently add local sizes in pyfluent and conveniently obtain zone name
  #1
New Member
 
wuhaibin
Join Date: Aug 2023
Posts: 8
Rep Power: 3
HB833 is on a distinguished road
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 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 'oil_fluid oil_fluid' 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!!!!

meshing_session.workflow.TaskObject["Add Local Sizing"].Arguments.setState(AddChild="yes",
BOIControlName="bodysize_oil",
BOIExecutio="Body Size",
BOIFaceLabelList=["oil_fluid-oil_fluid_0",
"oil_fluid-oil_fluid_1",
"oil_fluid-oil_fluid_2",
"oil_fluid-oil_fluid_3",
"oil_fluid-oil_fluid_4",
"oil_fluid-oil_fluid_5"],
BOISize=2)
HB833 is offline   Reply With Quote

Reply

Tags
fluent meshing, pyfluent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 18:46.