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

[ICEM] meshing a sphere - large deviation from perfect sphere

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2012, 04:55
Default meshing a sphere - large deviation from perfect sphere
  #1
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
Hi,

I am simulating a laminar flow around a rotating sphere using CFX. However I get an unphysical pressure profile on the sphere, see first attached picture. The pressure profile is wiggly and shows steps at the block edges.

After weeks of troubleshooting, I was finally told by the ANSYS CFX support that the reason (at least for the wiggles) is definately the irregular (-> non-spherical) shape of the sphere. However, I am not able to obtain a sufficiently spherical surface.

I use a blockstructured mesh created in ICEM. The sphere is created using the option Geometry -> Create surface -> standard shape -> sphere. The blocking strategies that I tried are shown in pictures 2 and 3.

I am aware of the fact that I cannot create a perfect sphere using linear elements. However, for two reasons I do not think that the linear approximation is the reason for the deviation:
1. when refining the mesh, the amplitude of the deviation should decrease. but it does not, see picture 4.
2. In case ICEM places the nodes on the radius specified by the geometry, all nodes are supposed to have the exact radial position. In case ICEM places the center of the elements on the radius, all nodes should have a radial deviation in the same magnitude. Also the deviation should probably be positive, so the nodes lie outside the sphere ı guess.

So, how do I get ICEM to create a spherical mesh?
Attached Images
File Type: jpg 2 - characteristic pressure profile (rotating sphere).jpg (52.2 KB, 151 views)
File Type: jpg 6 - blocking 1.jpg (66.5 KB, 105 views)
File Type: jpg 7 - blocking 2.jpg (57.1 KB, 95 views)
File Type: jpg 9 - radius.jpg (84.8 KB, 109 views)

Last edited by murx; August 9, 2012 at 16:37.
murx is offline   Reply With Quote

Old   August 10, 2012, 00:29
Default
  #2
Senior Member
 
Join Date: Dec 2009
Posts: 131
Rep Power: 19
mjgraf is on a distinguished road
how does the mesh inflation look coming off this sphere? ensured everything is uniform?
just throwing out ideas/questions.

Another way to look at it, your nodes are on the surface but what about the face center error/deviation from the surface?
mjgraf is offline   Reply With Quote

Old   August 10, 2012, 08:48
Default
  #3
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
What exactly do you mean by inflation coming off the sphere?

If you are refering to the node spacing on the edges that come off the sphere, then yes - they are uniform. Especially in the case of the first blocking. Here the sphere is in the center block of an o-grid. So alle the edges goind outward have the exact same spacing.

I agree with you on the face center deviation. It seems as if ICEM puts the node on the spherical geoemtry and linearly connects thos nodes to form the face. This means the face centers are always located inside the acual sphere. This correlates with the fact that "radius range" calculated for the boundary ?(nodes/elements)? is 4.997 to 5 where the perfect sphere has a radius of 5, see last picture attached to my previous post.

However you can see agglomerations of adjacent nodes elements lying considerably inside the sphere while at other regions there are several adjacent elements exactly on the right radius of 5. So there must be some other error than just the deviation of the face centers due to the linearization of the surface.
murx is offline   Reply With Quote

Old   August 10, 2012, 09:59
Default
  #4
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
I think he was referring to the wall-normal resolution of the mesh.
What Yplus values are we dealing with? could you show a cross-section of the mesh?

Yet another thought: did you associate the faces correctly to the geometry? Or did you rely on the auto-association?
flotus1 is offline   Reply With Quote

Old   August 10, 2012, 11:24
Default
  #5
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
The wall normal resolution is uniform due to the blocking topology.

I cannot tell the y+ value from my mind since I was not aware that it is important for laminar flow. I attached cross sections of two of several meshes that I checked.

Mesh refinement (also in the wall normal direction) does _not_ positively influence the pressure profile. A mesh morphing in CFX that moves all elements to the radius of the perfect sphere does.

So, my question is: Is there a way to get ICEM to generate a more spherical sphere?

I associated the edges to the surfaces.
Attached Images
File Type: jpg 11aspect_ratio.jpg (88.4 KB, 80 views)
File Type: jpg meshonsphere.jpg (77.7 KB, 72 views)
murx is offline   Reply With Quote

Old   August 10, 2012, 11:37
Default
  #6
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
Interesting.

Attach tetin (.tin)
Far is offline   Reply With Quote

Old   August 10, 2012, 20:09
Default
  #7
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Would it help to assign the faces of the blocks to the surfaces?
flotus1 is offline   Reply With Quote

Old   August 13, 2012, 08:15
Default
  #8
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
I was able to drastically increase the accuracy of the mesh by setting the "project to Bspline" option in the meshing options. The radius range of the surface elements is a lot smaller now, see attached picture.

This removed the checkerboard pattern in the pressure profile! However the steps at the block edges are still observable. Just as the radius of the sphere surface elements still seems to have a little step here.

- I attached the .tin file --> zip file.
- Assigning the faces to the surface did not have any effect.
- The y+ value for the case i took the attached pictures from is y+=0.05 (taking the highest Wall Shear occuring on the sphere for calculation of the fricting velocity)
Attached Images
File Type: jpg radius_and_pressure_improved.jpg (67.4 KB, 57 views)
Attached Files
File Type: zip orthogonal_rR0_d01m_neu.zip (4.3 KB, 19 views)

Last edited by murx; August 13, 2012 at 10:55.
murx is offline   Reply With Quote

Old   August 13, 2012, 13:23
Default
  #9
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
I just set up a simple test case with a rotating sphere in a flow field with ICEM and fluent. Didn't meet any of the problems you encountered.
flotus1 is offline   Reply With Quote

Old   August 13, 2012, 15:13
Default
  #10
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
Thanks for all the effort!

I actually already tried to do the simulations in FLUENT because of that problem. But I had the same situation in FLUENT.

Can you check the shape of the sphere in FLUENT like shown in some of my pictures? I mean a simple expression/UDF: radius = sqrt((x-x_c)^2+(y-y_c)^2+(z-z_c)^2) where x/y/z_c are the coordinates of the sphere center.

Again, you are helping me a lot! Danke
murx is offline   Reply With Quote

Old   August 14, 2012, 03:32
Default
  #11
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Here you go.
The deviation in the radius is about 0.5%, more than I expected.
Nevertheless, the results for pressure look quite ok.
The calculations were run in fluent, i just used the CFX result viewer because it is awesome.
Rotational axis in my case was Z.
Attached Images
File Type: jpg radius.jpg (74.2 KB, 55 views)
File Type: jpg pressure.jpg (99.6 KB, 54 views)
flotus1 is offline   Reply With Quote

Old   August 14, 2012, 03:39
Default
  #12
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 suspct that problem was due to blocking approach.
Far is offline   Reply With Quote

Old   August 14, 2012, 03:44
Default
  #13
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
Alex: This is strange... I have to think about that. Whats the angular velocity of your sphere?

Far: You can see two different blocking strategies that I tried in the pictures attache to my first posting. The worst element quality is in all cases between 0.6 and 0.8. What do you think is wrong? - EDIT: Since you cannot see the geometry in the pictures, I should mention that the sphere is located in a pipe/cylinder. That is the reason for the o-grid.
murx is offline   Reply With Quote

Old   August 14, 2012, 03:48
Default
  #14
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Inlet velocity in my case was 1e-4 m/s.
Angular velocity was 1e-4 rad/s.
Fluid was "Air".
Diameter of the sphere was 2m.

How high is Re in your setup?
flotus1 is offline   Reply With Quote

Old   August 14, 2012, 05:31
Default
  #15
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
The pipe Reynolds number in the case is 100. However i investigate the range of 1 to 100 and I get the same problem for all Re.

As far as the sphere reynolds number is concerned things are more complicated. The sphere is moving with the flow (implemented by moving the pipe wall in the opposite direction). Taking the relative velocity of sphere and the velocity of an undistrbed parabolic profile for calculation of the particle Reynolds number, I get Re_p = 0.16.

In contrast to your simulations, I use the property data of water except for a higher viscosity. The relative velocity of sphere and fluid is 5e-3 m/s while omega*r_sphere is 3e-2 m/s. If you have time to change your simulation to these velocity ratio and check it out again that would be great.
murx is offline   Reply With Quote

Old   August 14, 2012, 06:10
Default
  #16
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
The results are still plausible without the dubious pressure distribution on the sphere that you observed.

Your rotational velocity is about one order of magnitude higher than the fluid velocity. Are you sure that the flow remains laminar in this case?
I did my simulation in steady-state which was only possible when I increased the viscosity of water by an order of magnitude.

Yet the pressure pattern on your sphere is a different issue. I suppose it comes from your blocking strategy.

My strategy would be the following:
  1. create 1 block for the whole channel
  2. create an o-grid for the walls of the channel
  3. make 2 splits, one before and one after the sphere to get a nearly cubic block around the sphere
  4. create another o-grid of the center block which encompasses the sphere (ONLY this one block)
  5. Delete the center block of the newly created o-grid
  6. Assign the faces of the blocks around the spere to the surface of the sphere
flotus1 is offline   Reply With Quote

Old   August 14, 2012, 06:24
Default
  #17
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
I am absolutely sure it stays laminar. For the sphere, the creeping flow assumption ist almost applicable.

The blocking strategy that you described works fine if the sphere is in a square. In my case, the sphere is inside a round pipe and with this topology I get bad quality elements... I will do this blocking and post a picture in a few minutes, so you can check if I understood you correctly.
EDIT: You were right. I was wrong. The element quality is fine Now I'm curious about the pressure profile....
murx is offline   Reply With Quote

Old   August 14, 2012, 06:39
Default
  #18
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Quote:
Originally Posted by murx View Post
You were right. I was wrong.
Aaah you just made my day
flotus1 is offline   Reply With Quote

Old   August 14, 2012, 08:16
Default
  #19
Member
 
Max
Join Date: May 2011
Location: old europe
Posts: 88
Rep Power: 14
murx is on a distinguished road
there you go... the new blocking and pressure profile. still sudden pressure changes at the block edges. any other suggestions?

i know you don't expect the radial deviation of the surface elements to be the reason. but one thing is interesting: only the elements lying on the two sides that are facing the flat inlet/outlet have a significant deviation. the other four side that are facing the round pipe wall are perfect.
Attached Images
File Type: jpg newblocking.jpg (98.1 KB, 29 views)
murx is offline   Reply With Quote

Old   August 14, 2012, 10:19
Default
  #20
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,395
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Well, same thing in a round channel.
The pressure on the sphere looks ok. Yet it is clearly visible that I should have created the mesh with a lot more patience.

Are you sure that you carried out step 6 correctly using the "associate face to surface" option?
Attached Images
File Type: jpg domain.jpg (31.0 KB, 39 views)
File Type: jpg pressure.jpg (57.9 KB, 40 views)
flotus1 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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 15:18
[snappyHexMesh] Meshing a sphere with snappyHexMesh Cyberholmes OpenFOAM Meshing & Mesh Conversion 2 July 19, 2011 17:46
Meshing a sphere using ICEM lost.identity ANSYS Meshing & Geometry 1 March 13, 2011 21:19
Large U-tube modeing and meshing. Pradeep FLUENT 1 April 17, 2007 04:08
meshing F1 front wing Steve FLUENT 0 April 17, 2003 13:37


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