Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Get ID of a (fluid) Zone

    • skwde
      Subscriber

      When 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?

    • DrAmine
      Ansys Employee
      You basically showing the way to get that or I am missing something
    • skwde
      Subscriber

      No, because I actually want the id of


      fluid-top25 

      which is 325.


      However to use the quoted method I need to know 325 beforehand...


      Best, Stefan

    • DrAmine
      Ansys Employee
      So you need the ID of the cell zone and not boundary zone,? May I ask for which purpose?
    • DrAmine
      Ansys Employee
      But 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.
    • skwde
      Subscriber

      Sure, 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


       

    • Rob
      Forum Moderator

      If you label it sensibly just select from the GUI. Or are you trying to journal the whole set up?

    • skwde
      Subscriber

      I try to model the whole setup.

    • DrAmine
      Ansys Employee

      Yes or name all as my colleague highlighted.

    • DrAmine
      Ansys Employee

      Yes or name all as my colleague highlighted.

    • skwde
      Subscriber

      Thanks 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.

    • DrAmine
      Ansys Employee

      There 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.

    • skwde
      Subscriber

      I 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.

Viewing 12 reply threads
  • The topic ‘Get ID of a (fluid) Zone’ is closed to new replies.