-
-
April 15, 2020 at 2:09 pm
skwde
SubscriberWhen using Fluent (R2019.1) with TUI, how do I get the ID of a (fluid) zone?
For example:
I get the following (simplified) list of zones.
/define/boundary-conditions> list-zones
id name type material kind
----
----
325 fluid-top25 fluid air cell
324 interior-fluid-top25 interior face
228 fluid-top wall air face
Following How to get the ID of a zone or a surface in Fluent from its name ?
I can extract the ID name according to
> (display (zone-name->id 'fluid-top))
228
Which obviously gives me the ID of the wall type zone.
How do I get the ID of the fluid type zone without knowing the ID appearing in the name?
-
April 15, 2020 at 3:36 pm
DrAmine
Ansys EmployeeYou basically showing the way to get that or I am missing something -
April 15, 2020 at 3:48 pm
-
April 15, 2020 at 4:05 pm
DrAmine
Ansys EmployeeSo you need the ID of the cell zone and not boundary zone,? May I ask for which purpose? -
April 15, 2020 at 4:14 pm
DrAmine
Ansys EmployeeBut it does depends on how the cell zone name has been provided. You will probably need to loop over the type of the zone to just get the ID if you do not the corresponding name. -
April 15, 2020 at 8:00 pm
skwde
SubscriberSure, the cell zone is a rotating volume for which I want to set the proper conditions, therefore the id
(though I just figured out that I can also use a wildcards when specifying, e.g. fluid-top
)
This cell zone is enclosed by a stationary wall at a certain radius.
Â
Ok, so there is no 'built-in' way, I need to construct scheme routine to do the loop + filter over list-zones?
Besides, where can I find documentation on the built-in scheme functions such as (display (zone-name->id 'fluid-top))?
Thanks.
Best, Stefan
Â
-
April 16, 2020 at 12:21 pm
Rob
Forum ModeratorIf you label it sensibly just select from the GUI. Or are you trying to journal the whole set up?
-
April 16, 2020 at 12:42 pm
skwde
SubscriberI try to model the whole setup.
-
April 17, 2020 at 9:17 am
DrAmine
Ansys EmployeeYes or name all as my colleague highlighted.
-
April 17, 2020 at 9:30 am
DrAmine
Ansys EmployeeYes or name all as my colleague highlighted.
-
April 23, 2020 at 1:12 pm
skwde
SubscriberThanks for your replies.
The easiest solutions, (for me) is for now to use wildcards to get the correct zone-name, e.g.
/define/boundary-conditions/fluid fluid-top* () <...>
Maybe this will help others having a similar issue.
Â
One last thing, are the fluent scheme functions and the fluent scheme environment documented somewhere?
Thanks.
Best, S.
-
April 23, 2020 at 2:24 pm
DrAmine
Ansys EmployeeThere is a couple of non official Fluent Scheme documentation on the net like the one form Javurek. We have internally some material which we share with commercial customer if there is a need for that. Here again not all functions are covered.
-
April 23, 2020 at 5:17 pm
skwde
SubscriberI already found the one from Javurek, though it does not mention what or how many parameters a function need. I am new to Scheme so I am not aware of a way to display a function help (or docstring if there exits something like this).
Â
I have access to the customer portal, where would I find the internal list you mentioned?
Best, S.
-
- The topic ‘Get ID of a (fluid) Zone’ is closed to new replies.
-
3757
-
1333
-
1168
-
1090
-
1014
© 2025 Copyright ANSYS, Inc. All rights reserved.