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

[snappyHexMesh] OF-2.3.x: snappyHexMesh and AMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2014, 08:26
Default OF-2.3.x: snappyHexMesh and AMI
  #1
Member
 
Join Date: Jul 2011
Posts: 54
Rep Power: 15
A_Pete is on a distinguished road
Having problems with snappyHexMesh and rotating motions using AMIs. I have a case with a propeller, which is rotating inside of that AMI. What I am having trouble with is the interfaces and the minimum weights for the interpolation between them.

I made one mesh, which is running very good and the minimum weights for both interfaces are around 0.5 after a whole rotation. Most of the time the minimum is somewhere at 0.7-0.8. This mesh has 77712 faces on each interface. What I want to do now is to refine just the propeller surface. So I change exactly one parameter in my snappyHexMesh dict, to define a higher maximum level of refinement of my propeller surface. This results in a mesh, which of course has a lot more cells, but leaves the AMI (as before!) with 77712 faces. This makes me think, that my refinement didn't really effect the AMI And if it did change the faces of the AMI, it should be so little, that it doesn't make much of a difference for the rotation. But this is not the case. The refined mesh does not run, because after like 50 time steps there appear lots of "0" minimum weights on the interfaces.

To sum up:
Mesh 1: propeller in AMIs, which each have 77712 faces
Mesh 2: same as mesh 1, but with refined propeller; also 77712 faces on each interface

Does somebody have an idea, what I can do to get my refined mesh running? Do you think the interfaces are the same? Because I can't see a difference. It seems like I can't get my finer mesh running whatever I do. I tried to put single prism layers on the interfaces with an expansion ratio of 1, but that doesn't help either in that specific case.
A_Pete is offline   Reply With Quote

Old   November 25, 2014, 18:06
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
How did you check it? move Dynamic Mesh? And —check AMI
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 3, 2014, 04:55
Default
  #3
Member
 
Join Date: Jul 2011
Posts: 54
Rep Power: 15
A_Pete is on a distinguished road
Hi Tobi,

yes, I used the moveDynamicMesh solver to check it. At some point the weights drop down to 0.
What do you mean with check AMI? The problem is that I can't see any difference at the AMI from one mesh to another. They basically look the same. It seems difficult to find errors in the AMI.
A_Pete is offline   Reply With Quote

Old   December 3, 2014, 04:58
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

there is an option like:
Code:
moveDynamicMesh -checkAMI
which produces an additional output for you.
Furthermore save each time step and check your AMI rotation! (maybe you do not duplicated the points?)

If you do not find the error you can send me your case and I will check it.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 3, 2014, 06:46
Default
  #5
Member
 
Join Date: Jul 2011
Posts: 54
Rep Power: 15
A_Pete is on a distinguished road
Hi Tobi,

thanks for your quick answer!

I didn't know about that option. I'll try to use that on the not working mesh. I did duplicate the points using "mergeOrSplitBaffles -split". And it does work for multiple other simulations. There are just some specific cases, where the AMI doesn't work... and this is the strangest one, since the AMI of the other mesh has the same number of faces and is running fine.

I found a work around to get a finer mesh now. But I will still check my old mesh and report on what I could achieve.

Thanks for your help!
A_Pete is offline   Reply With Quote

Old   December 3, 2014, 06:50
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Pete,

so you are very familiar with AMI mesh generations too. My suggestions is to check out your mesh using moveDynamicMesh with the additional option and save each moving step. Have a look to that time steps with paraview and check out if everything is okay.

Maybe one picture (if its possible for you) could be attached to see the interface or better would be the whole case to check out what is going wrong in your case.

Good luck,
kind regards
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 4, 2014, 06:53
Default
  #7
Member
 
Join Date: Jul 2011
Posts: 54
Rep Power: 15
A_Pete is on a distinguished road
Hi Tobi,

I wouldn't say that I'm very familiar, but I have done some mesh generations in the past weeks.

I can spot one difference in the AMIs of the mesh that runs and the mesh that doesn't run. As mentioned, both have the same number of faces, but the AMI that doesn't run seems to have some deformed cells at the top of the curve of the AMI from the back.
The problem is that I don't know how to influence this and why sHM is doing it for this mesh, but not for the other one.

Edit: Sorry, but I think that I can't provide the case, because of the propeller geometrie.

Best regards,
Andreas
Attached Images
File Type: jpg AMI_back.jpg (95.1 KB, 71 views)
File Type: jpg AMI_front.jpg (97.3 KB, 61 views)
A_Pete is offline   Reply With Quote

Old   December 4, 2014, 07:33
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Pepe,

is the whole big domain (cylinder) rotating?
If you want you can upload you case to my server, then I can check it.

Kind regards
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 11, 2015, 09:49
Default
  #9
New Member
 
Join Date: Jun 2014
Posts: 22
Rep Power: 12
chun is on a distinguished road
hi!

I have the same 0 weight AMI problem.
Are you solve this problem yet? Would you mind to tell me that what really the zero weight means? I still try to figure out how to fix this situation.

Moreover, I want to know the why the "mergeOrSplitBaffles -split" needed?
I build the case based on the tutorial case multiphase/interPhaseChangeDyMFoam/propeller, and that doesn't use the command mergeOrSplitBaffles.

Thank you so much.
chun is offline   Reply With Quote

Old   March 11, 2015, 11:25
Default
  #10
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by chun View Post
hi!
Moreover, I want to know the why the "mergeOrSplitBaffles -split" needed?
If you move some special region, lets consider to rotate a cylinder domain in the mesh, then you have to duplicate the points on the interface and spliit them. Otherwise the mesh will be deformed!
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 11, 2015, 14:51
Default
  #11
New Member
 
Join Date: Jun 2014
Posts: 22
Rep Power: 12
chun is on a distinguished road
Hi,

Thank you for reply.
Now I am using the following way to build my mesh.

Code:
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
runApplication renumberMesh -overwrite
runApplication createPatch -overwrite
runApplication setFields
I am using "createPatch" to create the AMI patch. Should I add the "mergeOrSplitBaffles -split" after that and before "setFields"?

or any other suggestion of the processes to build my mesh?
chun 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
mapFields Error with snappyHexMesh Source Added Layers sherif35 OpenFOAM Pre-Processing 0 September 29, 2014 18:01
snappyHexMesh in parallel with AMI louisgag OpenFOAM Pre-Processing 8 September 15, 2014 03:57
AMI simulation unstable within first few timesteps craig0a OpenFOAM Running, Solving & CFD 0 February 24, 2014 13:09
[snappyHexMesh] 2D AMI Moving Mesh with sHM; How hard can this be? ADGlassby OpenFOAM Meshing & Mesh Conversion 18 June 18, 2013 07:07
[snappyHexMesh] SnappyHexMesh error with 2D AMI Boloar OpenFOAM Meshing & Mesh Conversion 1 June 18, 2013 03:45


All times are GMT -4. The time now is 22:48.