TAGGED: ansys-meshing-python-script, fluent-mesh
-
-
August 28, 2023 at 5:30 am
haibin wu
SubscriberI 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) -
August 28, 2023 at 7:55 am
haibin wu
Subscriberi got it. I used the following code to select all zones with "oil_fluid oil_fluid" in their names. At present, it has solved my problem, but I also want to know if there are other ways to obtain zone name by label to achieve intelligent and convenient selection of zone name meshing_session.workflow.TaskObject["Add Local Sizing"].Arguments.setState( AddChild="yes", BOIControlName="bodysize_oil", BOIExecutio="Body Size", BOIFaceLabelList='*oil_fluid-oil_fluid*', BOISize=2) -
August 29, 2023 at 2:19 pm
Rob
Ansys Employeehttps://forum.ansys.com/forums/topic/how-to-intelligently-add-local-sizes-in-pyfluent-and-conveniently-obtain-zone-na/
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- License Error
- Error with workbench SceneGraphChart
- Sizing on Ansys Workbench 19.2
- Workbench not opening
- Error: Exception of type ‘Ansys.Fluent.Cortex.Cortex not availableException’ was thrown
- Workbench error
- how to open DesignModeler
- FlexNet Licensing – Not running
- Problem with FlexNet Licensing
- An error occurred when the post processor attempted to load a specific result.
-
7626
-
4456
-
2955
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.