We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Problem with Cell Registers

TAGGED: 

    • sam
      Subscriber

      Hi everyone, 

      When I were using Ansys 2021 R1, under Cell Registers -> Boundary Registers, it should have Normal Distance under the Options. Currently, I am using Ansys 2022 R1 and I don't see it any more. It onlys shows Cell Distance and Volume Distance. Was it removed? If I want to have a new small mesh/zone inside my current mesh (with some desired distance from the wall), what should I do?

      Thank you in advance! 

    • Rob
      Forum Moderator

      Good point. If you initialise can you use "cell wall distance" from the Mesh field variables? I've generally used the cell distance, it's rare the physical distance is much use. 

    • sam
      Subscriber

       

      Hi Rob,

      Are you mentioning the ElementWallDistance?

      Let’s say I want to exclude 5 inches from the wall of the old mesh, the main drawback here is that ElementWallDistance includes all cells whose centroid is located less than 5 inches from the wall, which means the outer boundary of this region will not generally be a smooth surface, although it could be depending on how the mesh is generated. Also depending on how many different quantities are required, it could be tedious defining a large number of expressions.

      However, the Normal Distance let me keep whatever 5 inches away from the boundary which is what I am looking for.

      The reason I am doing this because, for meshing having high number of elements, most of elements are close to the wall (the geometry is a big room). Hence, if I am calculating average value for the velocity, the close-to-boundary element values will dominant the calculation which is not very accurate for my analysis.

       

    • Rob
      Forum Moderator

      This:

       

    • Amine Ben Hadj Ali
      Ansys Employee

      Yes it has been removed. Please refer to the documentation.

    • sam
      Subscriber

      Hi Rob, 

      I have tried to play around with the Field Variable Register, however I don't see the difference on the mesh by changing the value. For example, if I want to excluded anything 5 inches away from the original boundary, how should I set it to?

      Hi Amine,

      Thank you for the response! which documentation are you refering to? Do they have any different fuction to replace the Normal Distance?

    • Amine Ben Hadj Ali
      Ansys Employee

       

      I am referring to the official Ansys Fluent documentation.  The register based on normal distance has been discarded for several reasons.

       

    • Amine Ben Hadj Ali
      Ansys Employee

      One can think about creating based on cell wall distance field variable and some other variables to just mark the region of interest.

    • Amine Ben Hadj Ali
      Ansys Employee

      You can create a cell register based on Cell Wall Distance. You create a second boundary register based on number of cell off the wall boundary. You create a third register which will be an "AND" boolean of both.

    • sam
      Subscriber

      Hi Amine,

      It is quite confusing based on what you mentioned. Please let me know if I did it wrong, this is how I did : Creat Field Variable Register using Cell Wall Distance to set it less than 5 in. Next, I will separate zone using the cell register that I just made. The new zone is the area that 5 inches from the original boundary wall. Is this correct?

    • Amine Ben Hadj Ali
      Ansys Employee

      No separation.

      First Register to mark based on the Cell Wall Distance. Second Register based on Boundary and number of cells from the wall. Your third register will be the one you want to use which is a boolean (intersection) of the two first ones.

    • sam
      Subscriber

      Hi Amine,

      Can you explain more details how to make the 2nd and 3rd register?

      -How do I know the number of cells from the wall that is 5" away from the original boundary wall? 

      -How do I creat the boolean (intersection) of the 2 first ones that you mentioned? 

      I'm sorry for the inconvenience. However, it is quite confusing to me

    • Amine Ben Hadj Ali
      Ansys Employee

      You need to experiment with the software you are using to get familiar with it :)

       

      1/The idea with the Boundary Register is just to create register relative to the wall you want to relate your register to it. So you can give 10 or 20 cells does not play a role. Why?

       

      2/Because marking with Cell Wall Distance will mark based on the distance but for all Walls! in All regions!

       

      3/So by combining the two in a Fluent Expression: Register-0 and Register-1 using nested IF condition: return 1 if you are in both otherwise zero. Use now that new Expression Variable to create a new register!

Viewing 12 reply threads
  • The topic ‘Problem with Cell Registers’ is closed to new replies.