CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] Smooth Transition for Tet Prism meshing (https://www.cfd-online.com/Forums/ansys-meshing/99470-smooth-transition-tet-prism-meshing.html)

saisanthoshm88 April 4, 2012 05:10

Smooth Transition for Tet Prism meshing
 
In Ansys WorkBench, I find the option "smooth transition" very useful for generating Inflation / Prism layers as it helps in maintaing a good volume transition between the last layer prisms and the tetras.

Could some one please let me know if there is a analogus option for prism meshing in ICEM CFD.

PSYMN April 4, 2012 07:34

Sure... The tech actually comes from ICEM CFD first ;)

In ICEM CFD global prism settings, you can set 3 of the 4 prism settings. You can set initial height, number of layers, ratio and/or total height. Setting three gives enough to calculate the 4th.

However, if you leave initial height and total height as 0, a nonsensical number, you have left Prism with enough freedom to float the initial height based on the first cell size. The initial height is adjusted at each column, with respect to the number of layers and ratio, to result in a last prism height that is similar in volume to its adjacent tetra...

If you use this, you actually need to put in the number of layers and ratio that you want. You can't pull the "1 layer and split" trick.

In older version (I think before R13 or so), if you set the initial height on any part or entity, it would stop this from working. But more recent versions are more flexible and allow you to have a global float and specific heights on only certain parts or surfaces.

saisanthoshm88 April 4, 2012 11:36

Many thanks for the clarification Simon !

mjgraf April 5, 2012 10:37

icem cfd, i have been doing inflation with the automatic spacing for about half the number the layers I wanted to allow it to mesh faster, split the prism, and then redistribute based on first cell height I desire. so far this is more robust than setting the initial cell height and num layers for some of the more complex geometries we deal with.

PSYMN April 5, 2012 11:31

@mjgraf,

Yea sure, that is a good way to do it. Just be clear that the automatic height distribution tool doesn't know you are going to do that and will size the initial height based on the given number of layers and ratio...

The volume transition is still proportional to the base triangle size and you could still get a pretty good result if you start with half the layers and split each in half.

Other users may be trying this with a single layer that they plan to split... It probably won't give very good results in that case. The prism layer will be very thin to keep the volume transition down, and then the users would split that into even thinner slices... The end result is a larger than idea volume transition between the top prism and the adjacent tetra...

scipy April 5, 2012 12:03

Sorry to intrude on the topic, but I'd just like to have something clarified in regard to ICEM inflation.

Is "First Aspect Ratio" option that's available in ANSYS Meshing (and for which I thought it was TGrid pre-inflation algorithm) the same as setting the Height Ratio to 5 in ICEM CFD? If not, is there any other way to achieve F.A.R of 5 for boundary layer inflation in ICEM?

PSYMN May 9, 2012 17:20

@ Scipy,

Yes, you can set the Prism height Limit factor to limit the ratio of prism layer height to base... But then every element in the column would be affected.

When using ICEM CFD, if you want that "smooth volume transition" to the tetras, just don't set the initial height. Set only the number of layers to 5 and the growth ratio to 1.2 and let it run. It will adjust the initial height for each prism column such that the volume of the last prism is roughly equal to the volume of the adjacent tetra... This has been the way with ICEM CFD for over a decade and would probably give you something close to the 5 to 1 height ratio that Marco Lanfrit recommends for Fluent.

saisanthoshm88 June 17, 2012 01:14

@ Simon : Hi Simon,

Could you please let me know how to deal with the tet prism
transition in case we intend a particular first layer height.
This may be required to maintain the y+ in a desired range.

Also could you please let me know if the mesh metric " volume change " actually accounts for the volume change between the pentas and adjacent tetras in a tet prism mesh

Your suggestions were really help full thanks for the tips.

cfd seeker June 17, 2012 06:54

hi saisanthoshm88
Simon has clearly expalined your question in his posts and I am repeating for your clarification. In Global Mesh setup set only no. of layers(set at-least 3 or 4 prism layers, don't set just a single layer it causes problem in smooth transition) and growth factor and leave initial height and total height as "zero". This allowS initial height to "float" and total height will be adjusted such that you will get smooth transition b/w last prism and adjacent tetra. After the initial mesh split all or your desired prism layers based on the initial height and recompute only the prim mesh and lastly redistirbute prism layers again based on the initial height and you are done :)

As far as your question regarding "Penta" is concerned.... Prisms are Penta elements

saisanthoshm88 June 17, 2012 11:52

Hi,

Thanks for the reply , but I don't think that the smooth transition attained by floating the initial height will still be retained after the redistribution. The redistribution affects the transition.

I know that pentas are prisms my question was about the quality metric " volume change " . I was asking if this parameter " volume change " also accounts for the volume change between the prisms and their adjacent tetra elements (or) is it like it is calculated only between different prisms and different tetra elements and not actually between tetras and prisms.

cfd seeker June 18, 2012 04:39

Smooth transition? smooth transition between prism layers after redistribution or smooth transition from last prim to adjacent tetra? what exactly you are talking about?

saisanthoshm88 June 18, 2012 11:12

I'm refering to the smooth transition from last prim to adjacent tetra after the redistribution.

Please correct me if I'm wrong with the notion that this transition between last prism and adjacent tetra would change with the redistribution

Thanking you for the help !

cfd seeker June 18, 2012 14:48

yes it does change with redistribution but still it gives acceptably smooth transition, I wonder where you are facing problem?

PSYMN June 26, 2012 10:49

The algorithm simply adjusts the initial height (during the initial prism inflation) in hopes that, that when combined with the given number of layers and growth ratio, the last prism volume roughly equivalent to the adjacent tetra. This is done right off the start with the intial layer, so the only information it has is the size of the base triangle... It does not adjust for curvature or tetra growth away from the wall, etc...

Another approach is to set the prism height limit factor to 0.7... This will use what ever initial height you set, but limit the growth ratio to 1.0 when the prism height over base is approximately 0.7, which is roughly the volume of a tetra with the same size base.

Either way, if you come back later and try to split and/or redistribute prisms, the total height is fixed. It must calculate a new initial height based on your number of layers and growth ratio, or alternatively, a new growth ratio based on your initial height and number of layers... Either way, you are likely to adjust the volume of the last prism and therefore change the ratio with its neighboring tetra... It is just the price you pay for trying this short cut.

I think CFD Seeker's final point is that this difference may still be quite acceptable (worth it for the short cut). Have you actually had a problem with the solver based on the volume jump or is your concern just academic at this point?

Mazze[ITA] June 29, 2012 05:40

Hi Simon,

is there the possibility to split the prism layer in ANSYS Meshing?

PSYMN June 29, 2012 11:14

No, neither split nor redistribute prism is available yet in ANSYS Meshing.

Eventually? Maybe. These sorts of automatic options are relatively easy to add (compared to interactive mesh editing).

However, you can take a mesh from ANSYS Meshing (or any mesher) and run this operation in ICEM CFD (using version 14.0 and later).

Mazze[ITA] June 29, 2012 11:18

Good suggestion, thank you Simon!

jjz2013 February 17, 2013 21:26

This is a nice discussion.
I recently have a question. As the instruction in icem help and suggestions from the aforementioned, I firstly created 3 or 4 prism layers without setting values for initial height and total height. Then in order to satify y+ requirement, I need split the first and second layers into several very thin layers. However, even giving a value 0.001m for the initial height in prism split tab, the finally first layer height is still approximately 0.002m. Note that my first layer before splitting is about 0.005m. It seems that icem prevents the mesher from creating a layer with 0.001m height. I supposed to reduce the triangulation tolerance value in model settings from default 0.001 to 0.0001. But it was still not helpful. Do you guys have any idea of solving this problem. Thanks!

PSYMN February 18, 2013 20:59

@jjz I will need to test and see if I can reproduce this when I have time.

jjz2013 February 20, 2013 16:23

Thank you for your reply. In order to not waste your time, I have to tell you that I fixed this problem. I just simply reduced the triangulation tolerance to 1e-6 and set the initial height as 0.0005m when splitting the first initial layer. Although the final first layer thickness is not exact as the setting, it does decrease less than 0.001m. The difference maybe due to the inaccuracy of the measurement tools. Thanks for your attention.


All times are GMT -4. The time now is 17:28.