CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] Effect of globle mesh size and mesh independency

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2013, 08:57
Default Effect of globle mesh size and mesh independency
  #1
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
Dear All,

My geometry is similar to water tank with inlet at top and outlet at bottom (both at off center) along the central axis.

For Meshing i am using smaller size at inlet and outlet (Max size 4 mm) through part mesh setting and for rest region through Global mesh size (Max Size).

With fixed max mesh size for inlet and outlet (Max 4 mm) , I am setting global mesh size. The change in total elements and nodes are as below,

Global Mesh Size (Max) Total Element Nodes
64 mm 414383 72421
32 mm 461344 80527
16 mm 841709 145118


How total element/nodes depend on Global mesh size? Please guide to select mesh size for mesh in-dependency.

Thanks,

Sujay Patil
Grrzx likes this.
sujay is offline   Reply With Quote

Old   February 26, 2013, 12:38
Default
  #2
Senior Member
 
Christoph
Join Date: May 2011
Location: Germany
Posts: 182
Rep Power: 17
energy382 is on a distinguished road
Quote:
Originally Posted by sujay View Post
Dear All,

My geometry is similar to water tank with inlet at top and outlet at bottom (both at off center) along the central axis.

For Meshing i am using smaller size at inlet and outlet (Max size 4 mm) through part mesh setting and for rest region through Global mesh size (Max Size).

With fixed max mesh size for inlet and outlet (Max 4 mm) , I am setting global mesh size. The change in total elements and nodes are as below,

Global Mesh Size (Max) Total Element Nodes
64 mm 414383 72421
32 mm 461344 80527
16 mm 841709 145118


How total element/nodes depend on Global mesh size? Please guide to select mesh size for mesh in-dependency.

Thanks,

Sujay Patil

global scale factor means grow ratio in x,y,z direction.

e.g, you have a mesh with 100.000 elements and want to achieve a 300.000 elements mesh. You need an total grow ratio of three, which simply means cube root of three and you have approx. your global scale factor (not absolutely exact, but very close).
you can also scale spacing, but be aware: it's only enlarged up to 33%

speaking for turbomachinery, I normally goes in my example for 100k, 300k and 900k
energy382 is offline   Reply With Quote

Old   February 26, 2013, 12:46
Default
  #3
Senior Member
 
Christoph
Join Date: May 2011
Location: Germany
Posts: 182
Rep Power: 17
energy382 is on a distinguished road
Quote:
Originally Posted by energy382 View Post
global scale factor means grow ratio in x,y,z direction.

e.g, you have a mesh with 100.000 elements and want to achieve a 300.000 elements mesh. You need an total grow ratio of three, which simply means cube root of three and you have approx. your global scale factor (not absolutely exact, but very close).
you can also scale spacing, but be aware: it's only enlarged up to 33%

speaking for turbomachinery, I normally goes in my example for 100k, 300k and 900k
btw: i was speaking about hexa
energy382 is offline   Reply With Quote

Old   February 27, 2013, 01:55
Default
  #4
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
Quote:
Originally Posted by energy382 View Post
btw: i was speaking about hexa
Dear Chirstoph,

Thanks.

Meshing Details :

Shell Meshing: Patch dependent with Quad dominant Mesh
Volume Meshing : Tetra/mixed with Robust(Octree)

Can you please guide for tetra mesh.

Sujay Patil
sujay is offline   Reply With Quote

Old   February 27, 2013, 04:38
Default
  #5
Senior Member
 
Christoph
Join Date: May 2011
Location: Germany
Posts: 182
Rep Power: 17
energy382 is on a distinguished road
Hey,

it's better to ask someone more experienced (with tetra), as I usually use hex mesh for my simulation, sorry.
energy382 is offline   Reply With Quote

Old   February 28, 2013, 15:01
Default
  #6
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
I would guess that this has to do with "powers of 2" and the octree process.

Do a search and you will find lots of other posts with details about how this works.

It appears to be seeing your 64 and 32 mm as the same basic size. Then when you go down to 16, it subdivides again. The Octree algorithms uses logic to decide if it should subdivide down to the next level or not. The solution is in your setup.

If you can post your tetin file with the 32 bit setting, I could take a quick look.
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   March 1, 2013, 01:56
Default
  #7
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
sujay is offline   Reply With Quote

Old   March 1, 2013, 02:05
Default tin file
  #8
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
Dear Sir,

Please find the tin file.

Inlet, outlet, pipe submerged and pipe top assigned with smaller size while rest with 32 mm.

During the meshing i am not at all used the shell meshing, directly volume meshed.

Please clarify on the mesh quality also. Regarding the single edges, multiple edges and delauncy violation for the geometry.

Thanks,

Sujay Patil
Attached Files
File Type: zip Normal 32.zip (15.5 KB, 16 views)
sujay is offline   Reply With Quote

Old   March 1, 2013, 02:06
Default
  #9
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
Quote:
Originally Posted by PSYMN View Post
I would guess that this has to do with "powers of 2" and the octree process.

Do a search and you will find lots of other posts with details about how this works.

It appears to be seeing your 64 and 32 mm as the same basic size. Then when you go down to 16, it subdivides again. The Octree algorithms uses logic to decide if it should subdivide down to the next level or not. The solution is in your setup.

If you can post your tetin file with the 32 bit setting, I could take a quick look.
tin file added
sujay is offline   Reply With Quote

Old   March 1, 2013, 02:42
Default Meshing of IC engine
  #10
New Member
 
ashish
Join Date: May 2010
Posts: 6
Rep Power: 15
ashish agrahari is on a distinguished road
hello frnds
I am working on cfd simulation of in-cylinder flow in SI engine, for which i am using dynamic mesh(layering and smoothing method) for movement of piston and valves. I have done full tetra meshing which is giving negative volume during compression. therefore it is required to have hybrid meshing i.e. tetra along with hex. Hex is required mainly at regions which is deforming eg engine cylinder. But, i am not able to mesh both hex and tetra on same geometry for some region. So can anyone help me in this case? how to mesh tetra and hex both in one geometry?
__________________
Ashish Agrahari
ashish agrahari is offline   Reply With Quote

Old   March 3, 2013, 15:52
Default
  #11
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Played with global scale factor (kept every thing else same, surface mesh from octree and volume mesh from denauly)

a) 1 >>>> fine mesh (500,000 nodes)
b) 2 >>>> Coarse mesh (250,000 nodes)


Coarse mesh:





Fine mesh:









Far is offline   Reply With Quote

Old   March 3, 2013, 18:28
Default
  #12
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Hey Far, Did you figure out what he did wrong, or did you just leave the size alone and play with the scale factor?
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   March 3, 2013, 23:38
Default
  #13
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
I just played with scale factor.

I did steps in following manner:

1. Surface sizing through part mesh setup.

2. Density box at few locations

3. Gave tetra width and ratio

Once above parameters were set (though were random, may be he requires some different settings), then I played with scale factor : 1 and 2.

For scale factor 1, I had the fine mesh (double size) ~500,000
and for scale factor 2, mesh was coarse ~ 250,000
Far is offline   Reply With Quote

Old   March 4, 2013, 03:07
Default
  #14
Member
 
Sujay
Join Date: Apr 2010
Location: Karnataka, India
Posts: 41
Rep Power: 15
sujay is on a distinguished road
Quote:
Originally Posted by Far View Post
I just played with scale factor.

I did steps in following manner:

1. Surface sizing through part mesh setup.

2. Density box at few locations

3. Gave tetra width and ratio

Once above parameters were set (though were random, may be he requires some different settings), then I played with scale factor : 1 and 2.

For scale factor 1, I had the fine mesh (double size) ~500,000
and for scale factor 2, mesh was coarse ~ 250,000
Dear Sir,

Thanks.

can you show these steps with snaps in ICEM

1. Surface sizing through part mesh setup.

2. Density box at few locations

3. Gave tetra width and ratio

Sujay Patil
sujay is offline   Reply With Quote

Old   April 3, 2016, 06:47
Default
  #15
New Member
 
Alia Amer
Join Date: Mar 2016
Posts: 13
Rep Power: 10
Alia Amer is on a distinguished road
Hi Everyone,
i am using ansys flotran for studying airflow inside buildings... i want to ask a question about generating the mesh ...after meshing the whole model....( i dont mesh the entire volume at once, i mesh it volume by volume ) .... how can i know the number of elements used in the mesh ????? i want to display it in the same way that you did:
Global Mesh Size (Max) Total Element Nodes
64 mm 414383 72421
32 mm 461344 80527
16 mm 841709 145118


is the element size measured in milimeters???

and i want to ask another question... is the scaling factor in ansys the same like grid refinement ratio???? and how should i use it????
Alia Amer is offline   Reply With Quote

Old   April 3, 2016, 08:12
Default
  #16
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Quote:
Originally Posted by Alia Amer View Post
Hi Everyone,
i am using ansys flotran for studying airflow inside buildings... i want to ask a question about generating the mesh ...after meshing the whole model....( i dont mesh the entire volume at once, i mesh it volume by volume ) .... how can i know the number of elements used in the mesh ????? i want to display it in the same way that you did:
Global Mesh Size (Max) Total Element Nodes
64 mm 414383 72421
32 mm 461344 80527
16 mm 841709 145118


Element Size
is the element size measured in milimeters???

and i want to ask another question... is the scaling factor in ansys the same like grid refinement ratio???? and how should i use it????
Scaling Factor vs Grid Refinement:

Roughly speaking yes. but technically by reducing the scale factor, mesh sizes on the surfaces become half. But this may or may not be translated into double the mesh from previous one. As it largely depends on volume mesh and it is difficult to predict it.

Units of Element size
Element size in measured in the units you are using for your model.

No nodes vs element size
64 mm 414383 72421
32 mm 461344 80527
16 mm 841709 145118


As you can see , decreasing the element size is increasing the no of nodes, but it is not linear. And you can also see that same size (64 * 0.5 of scale factor = 32 and 64*0.25 of scale factor = 16) can also be obtained with scale factor. So roughly speaking chaning element size through scale factor or manually does change the mesh density, but you cannot be sure what is gonna happen precisely. Hit and trail is the way to go
Far is offline   Reply With Quote

Old   April 3, 2016, 10:03
Default
  #17
New Member
 
Alia Amer
Join Date: Mar 2016
Posts: 13
Rep Power: 10
Alia Amer is on a distinguished road
thank you so much Far for your informative reply
but what i want to know about the element number is how can i know it (i mean the way by which i can display it or the command that shows me the ni of elements used ) i use ansys flotran..can you help me to know from which command or main menu can i know the no of elements in my mesh?
thank you
Alia Amer is offline   Reply With Quote

Old   April 3, 2016, 10:57
Default
  #18
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Quote:
Originally Posted by Alia Amer View Post
thank you so much Far for your informative reply
but what i want to know about the element number is how can i know it (i mean the way by which i can display it or the command that shows me the ni of elements used ) i use ansys flotran..can you help me to know from which command or main menu can i know the no of elements in my mesh?
thank you
If you are talking about flotran, I do not know it.
Far is offline   Reply With Quote

Old   September 17, 2019, 02:45
Default mesh size selection
  #19
New Member
 
Ugee
Join Date: May 2019
Posts: 10
Rep Power: 6
Ugee is on a distinguished road
In fluid flow problem does the mesh size of fluid domain affect the Y + value.IF it does then how to select appropriate size as in large geometry changing fluid domain size by 1 mm added million of elements for tetra meshing.
Ugee is offline   Reply With Quote

Old   September 17, 2019, 05:02
Default
  #20
Senior Member
 
M
Join Date: Dec 2017
Posts: 640
Rep Power: 12
AtoHM is on a distinguished road
The mesh spacing close to the wall does affect your y+ value, yes. Search the forum for threads about yplus values, there is a ton.
I dont understand your second sentence, proper punctuation might help.
AtoHM is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


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