CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

What makes a good mesh?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2016, 10:23
Default What makes a good mesh?
  #1
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
I am working with T-Rex meshing on a 2D aerofoil. But it seems everything I put in front of my professor, he keeps saying "its not a good mesh"

what I wanted to know is what exactly makes a good unstructured mesh?

edit: when ever i import my mesh into FLUENT it gives me negative volume and back handedness issues

Quote:
Domain Extents:
x-coordinate: min (m) = -2.900000e+01, max (m) = 3.100000e+01
y-coordinate: min (m) = -3.000000e+01, max (m) = 3.000000e+01
Volume statistics:
WARNING: 18355 cells with non-positive volume detected.
minimum volume (m3): -1.353355e+01
maximum volume (m3): -1.094973e-08
total volume (m3): -3.599919e+03
Face area statistics:
minimum face area (m2): 4.464826e-06
maximum face area (m2): 6.046664e+00
Checking mesh..........
WARNING: left-handed faces detected on zone 3: 0 right-handed, 27263 left-handed.
WARNING: left-handed faces detected on zone 4: 0 right-handed, 38 left-handed.
WARNING: left-handed faces detected on zone 5: 0 right-handed, 198 left-handed.
WARNING: left-handed faces detected on zone 6: 0 right-handed, 99 left-handed.
WARNING: left-handed faces detected on zone 7: 0 right-handed, 204 left-handed..
WARNING: 55065 face(s) on zone 2 with wrong node order (on 1000000)..............
Done.

WARNING: Mesh check failed.
But it shows fine in pointwise

Last edited by weigl; January 19, 2016 at 11:51.
weigl is offline   Reply With Quote

Old   January 20, 2016, 10:31
Default
  #2
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
If there are multiple domains in your grid, be sure the domain normals are all are oriented in the same relative direction. By convention, 2D Fluent grids are built in the XY plane with the domain normals pointing in the +Z direction. Use Edit, Orient... to adjust.

As far as "what makes a good grid?" That is the million dollar question! It seems like your professor should give you some "good mesh" criteria to use.

I general you want to the max included cell angles to be < 175. And you want a nice transition from smaller cells to larger cells.

Use the Examine tools menu in Pointwise to evaluate these criteria.

If you post your PW file or an image we can provide more specific help.

Please read this.
dgarlisch is offline   Reply With Quote

Old   January 21, 2016, 09:25
Default
  #3
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
Quote:
Originally Posted by dgarlisch View Post
If there are multiple domains in your grid, be sure the domain normals are all are oriented in the same relative direction. By convention, 2D Fluent grids are built in the XY plane with the domain normals pointing in the +Z direction. Use Edit, Orient... to adjust.

As far as "what makes a good grid?" That is the million dollar question! It seems like your professor should give you some "good mesh" criteria to use.

I general you want to the max included cell angles to be < 175. And you want a nice transition from smaller cells to larger cells.

Use the Examine tools menu in Pointwise to evaluate these criteria.

If you post your PW file or an image we can provide more specific help.

Please read this.
this is what my current mesh looks like: http://www83.zippyshare.com/v/LjauoBu4/file.html

I understand that you have to check the aspect ratios, wall distances and orthogonality etc of the mesh profile. What I dont get is how I know whats best for a certain system. Are there any predefined set of values for a particular condition?

i am trying to validate my results against transonic viscous flow values to see if an unstructured mesh works well on it.

I have been able to validate results with structured mesh, but the whole unstructured mesh I can't seem to get down.

Last edited by weigl; January 21, 2016 at 11:02.
weigl is offline   Reply With Quote

Old   January 21, 2016, 11:57
Default
  #4
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
I will have to leave those kinds of details up to more experienced grid builders. However, I did find a few things...

In Grid, T-Rex..., you need to check the Push Attributes box. This will force the T-Rex layers growing off of the wake connector to "push" their spacing onto the Match domains.

The T-Rex Growth Rate is currently set to 2.0. That seems way too high! Normally, we use values around 1.2.

I am not sure if the wall delta-S spacing is correct. It is my understanding that you should use a value based on the target Y+ value. You can use the (free) Pointwise Y+ calculator.

On the T-Rex, Attributes tab, you can also play with the Boundary Decay value (0 to 1.0) to propagate the cell sizes further out from the airfoil. Values closer to 1.0 propagate cells further into the far field.

Finally, you said this was transonic. If I recall my aero properly, that means you may have shock fronts. You probably need to add a baffle connector to the dom in the region of the expected front to properly resolve the shock. To add a baffle, create a connector at the proper location near the airfoil. The connector should not touch the airfoil and its end point should be just outside the trex layer region. Add the connector to the domain using Edit, Add/Remove Edges... menu.

I have attached a picture of my result.
Attached Images
File Type: png NACA0012 Trex-EDITED.png (103.5 KB, 68 views)
dgarlisch is offline   Reply With Quote

Old   January 28, 2016, 08:02
Default
  #5
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
Quote:
Originally Posted by dgarlisch View Post
I will have to leave those kinds of details up to more experienced grid builders. However, I did find a few things...

In Grid, T-Rex..., you need to check the Push Attributes box. This will force the T-Rex layers growing off of the wake connector to "push" their spacing onto the Match domains.

The T-Rex Growth Rate is currently set to 2.0. That seems way too high! Normally, we use values around 1.2.

I am not sure if the wall delta-S spacing is correct. It is my understanding that you should use a value based on the target Y+ value. You can use the (free) Pointwise Y+ calculator.

On the T-Rex, Attributes tab, you can also play with the Boundary Decay value (0 to 1.0) to propagate the cell sizes further out from the airfoil. Values closer to 1.0 propagate cells further into the far field.

Finally, you said this was transonic. If I recall my aero properly, that means you may have shock fronts. You probably need to add a baffle connector to the dom in the region of the expected front to properly resolve the shock. To add a baffle, create a connector at the proper location near the airfoil. The connector should not touch the airfoil and its end point should be just outside the trex layer region. Add the connector to the domain using Edit, Add/Remove Edges... menu.

I have attached a picture of my result.
Thank you for your reply.

The mesh is looking better.

As for orientation, when i try to orient it i get something like the picture i have attached below. why is that one arrow not pointing in the positive z?
Attached Images
File Type: png Untitled.png (14.1 KB, 43 views)
weigl is offline   Reply With Quote

Old   January 28, 2016, 10:47
Default
  #6
Senior Member
 
Zach Davis
Join Date: Jan 2010
Location: Los Angeles, CA
Posts: 101
Rep Power: 16
RcktMan77 is on a distinguished road
Is there a particular reason you're using an unstructured mesh for such a simple geometry? Pointwise has a hyperbolic extrusion feature which would create a boundary conforming mesh very easily which should provide some benefits to the accuracy of your solution since the cell edges are flow-aligned. I've created an example for you using your NACA0012 geometry which you can download using this link. The initial spacing was set to that which you were using, and it is oriented appropriately for use with FLUENT.

To learn more about using hyperbolic extrusions in Pointwise for your specific example, see this video.
RcktMan77 is offline   Reply With Quote

Old   January 28, 2016, 10:52
Default
  #7
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
Quote:
Originally Posted by RcktMan77 View Post
Is there a particular reason you're using an unstructured mesh for such a simple geometry? Pointwise has a hyperbolic extrusion feature which would create a boundary conforming mesh very easily which should provide some benefits to the accuracy of your solution since the cell edges are flow-aligned. I've created an example for you using your NACA0012 geometry which you can download using this link. The initial spacing was set to that which you were using, and it is oriented appropriately for use with FLUENT.

To learn more about using hyperbolic extrusions in Pointwise for your specific example, see this video.
Because my professor wants me to use an unstructured mesh for my thesis. he's not really very keen on a structured mesh. he wants to add transonic viscous effects which he believes a structured mesh will do no justice to
weigl is offline   Reply With Quote

Old   January 28, 2016, 11:08
Default
  #8
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
Quote:
Originally Posted by weigl View Post
Thank you for your reply.

The mesh is looking better.

As for orientation, when i try to orient it i get something like the picture i have attached below. why is that one arrow not pointing in the positive z?
I loaded up the original mesh you posted above. All the arrows were pointing in the same direction. I am using Pointwise V17.3R4. Which version are you using?

Could you upload the grid file that is doing this? If you zip the PW file, and it is less than 195.3KB, you can attach it to this forum directly.
dgarlisch is offline   Reply With Quote

Old   January 28, 2016, 11:17
Default
  #9
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
Quote:
Originally Posted by dgarlisch View Post
I loaded up the original mesh you posted above. All the arrows were pointing in the same direction. I am using Pointwise V17.3R4. Which version are you using?

Could you upload the grid file that is doing this? If you zip the PW file, and it is less than 195.3KB, you can attach it to this forum directly.
here is the .pw file: http://www65.zippyshare.com/v/uw1pAAk1/file.html

i have set the orientation back to normal. but when i orient the domain it shows the way it did in the image. I am using 17.2R1
weigl is offline   Reply With Quote

Old   January 28, 2016, 12:02
Default
  #10
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
That appears to be a bug! I will log it with our support team.

It appears this bug is already fixed in the next release of Pointwise V17.3R5. It will be available in a week or two.

As a workaround:
  1. Change the orientation as you want it.
  2. Accept the messed up domain.
  3. Initialize the domain to rebuild the grid in the new orientation.
Also, if your professor will allow it, I strongly suggest that you update your Pointwise installation. There have been many bug fixes and enhancements since V17.2R1!

Last edited by dgarlisch; January 28, 2016 at 12:27. Reason: update
dgarlisch is offline   Reply With Quote

Old   January 28, 2016, 12:37
Default
  #11
New Member
 
Join Date: Jan 2016
Posts: 18
Rep Power: 10
weigl is on a distinguished road
Quote:
Originally Posted by dgarlisch View Post
That appears to be a bug! I will log it with our support team.

It appears this bug is already fixed in the next release of Pointwise V17.3R5. It will be available in a week or two.

As a workaround:
  1. Change the orientation as you want it.
  2. Accept the messed up domain.
  3. Initialize the domain to rebuild the grid in the new orientation.
Also, if your professor will allow it, I strongly suggest that you update your Pointwise installation. There have been many bug fixes and enhancements since V17.2R1!
Ah ok. I was breaking my head over it. I guess i will use fluent to fix my problems until then. I will ask the university if they can upgrade it.
weigl is offline   Reply With Quote

Old   July 25, 2016, 07:02
Default
  #12
Member
 
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12
adi.ptb is on a distinguished road
Hi,
I have a simple question about TRex. I understand that TRex is anisotropic tetrahedral extrusion. I want to know how the progression is handled from one layer to the next one and how to calculate the total height of the layers. Is there any mathematical expression based one the initial height, number of layers and the growth rate to calculate the total height?

Thanks in advance,
adi.ptb is offline   Reply With Quote

Old   July 25, 2016, 09:21
Default
  #13
Senior Member
 
Zach Davis
Join Date: Jan 2010
Location: Los Angeles, CA
Posts: 101
Rep Power: 16
RcktMan77 is on a distinguished road
The extrusion advances geometrically. You provide an initial cell height and a growth rate. The cell height for each successive layer is multiplied by this growth rate. The geometric series looks like:

initDs * growthRate^(layerNum - 1)
RcktMan77 is offline   Reply With Quote

Old   July 25, 2016, 09:24
Default
  #14
Member
 
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12
adi.ptb is on a distinguished road
Thanks zack. This is exactly what I needed to hear. I suspected that the progression might be geometrical but I wasn't sure. Thank you so much for making it clear to me.
adi.ptb is offline   Reply With Quote

Old   July 25, 2016, 13:28
Default
  #15
Member
 
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12
adi.ptb is on a distinguished road
Hi Zack,


Thanks

Last edited by adi.ptb; July 30, 2016 at 11:51.
adi.ptb is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 11:04.