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

[snappyHexMesh] snappyHewMesh decomposition method ???

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2012, 11:38
Question snappyHewMesh decomposition method ???
  #1
Senior Member
 
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 14
Djub is on a distinguished road
Hi everybody,
I am working on a case using snappyHexMesh. I have a snappyHexMeshDict, of course, and also a decomposeParDict because my case will be decomposed on several cores.
Whyle running snappyHexMesh, FOAM gets out with this error:
Code:
Selecting decompositionMethod scotch
 
--> FOAM FATAL ERROR: 
Unknown decompositionMethod scotch
Valid decompositionMethods are : 
6
(
hierarchical
manual
multiLevel
ptscotch
simple
structured
)
 
    From function decompositionMethod::New(const dictionary& decompositionDict)
    in file decompositionMethod/decompositionMethod.C at line 62.
FOAM exiting
I don't understand why ??? If I change, in my decomposeParDict , sotch to ptscotch, it works! But then it's up to decomposePar to get out on error because he doesn't know about ptscotch method. So I have to change again my decomposeParDict and now it works.

Very strange, isn't it?
Djub is offline   Reply With Quote

Old   August 23, 2012, 14:43
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Julien,

"scotch" and "ptscotch" cannot reside in the same memory space. If you check the tutorials that show how this works, you would see that some switch to-from "ptscotch".
Here's the official explanation: http://www.openfoam.org/mantisbt/view.php?id=458

Best regards,
Bruno
GKARIMI likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 24, 2012, 05:55
Default
  #3
Senior Member
 
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 14
Djub is on a distinguished road
Thanks Bruno
By the way, I still do not understand (in fact, in don't know at all ptscotch, and only very few about scotch).
Does it mean that it is forbidden to decompose my domain using scotch, if my mesh has been treated by snappyHexMesh ?
Should I continue to use this solution consisting of "changing the entry in the decomposeDict every time" ?
Why do snappyHexMesh reads the decomposeDict ?
Thanks for advices
Djub is offline   Reply With Quote

Old   August 24, 2012, 18:40
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Julien,

If you choose "scotch" for decomposition, then you have to change it to something else for running snappyHexMesh.
Quote:
Originally Posted by Djub View Post
Why do snappyHexMesh reads the decomposeDict ?
Because snappyHexMesh can be executed in parallel and it needs a decomposition method for assigning mesh refinement between processors.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 27, 2012, 04:39
Smile
  #5
Senior Member
 
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 14
Djub is on a distinguished road
Hi Bruno, thanks. May I explain this with my words, ans you correct me if I am wrong?
snappyHewMesh is able to run in parallel. When running in parallel, it needs a decomposeParDict, same as any solver. Even with no paralleling, it reads decomposeParDict (with no effects, of course).
By the way, scotch is unknown to snappyHexMesh, while ptscotch is invalid for classic decomposePar.
All this is why you have to adjust decomposeParDict between snappyHexMesh and decomposePar.

'hope this thread can help somebody else!
Djub is offline   Reply With Quote

Old   August 27, 2012, 07:11
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Julien,

To complement your description:
  • Only a few applications need the "decomposeParDict" file, mainly those that need the ability to decompose or handle a decomposed mesh. The applications are (if I'm not mistaken): decomposePar, redistributePar, snappyHexMesh.
  • snappyHexMesh is basically hard coded to need "decomposeParDict", because it's able to run in parallel; and when running in parallel, it needs to access the decomposition to know how to add more or manipulate cells on the mesh.
  • As I've indicated in another post, "ptscotch" and "scotch" cannot coexist in the same application memory space, due to naming collisions. This is why snappyHexMesh doesn't know what "scotch" is.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2012, 06:04
Default
  #7
New Member
 
Tuxeedo's Avatar
 
Hauke
Join Date: Jun 2012
Posts: 5
Rep Power: 14
Tuxeedo is on a distinguished road
Hey Folks
I find myself asking: "why?!"
Why can't SHM accept "scotch" as decomposition Method?
Why hasn't anyone introduced a scotch-like decompostion Method that is usable in both "tools"?

But the way it is now only creates confusion and/or Frustration among beginners.
Bugreport says it's "not fixable" Does that mean Foamers will have to live with that Issue forever?
I hope not
Tuxeedo is offline   Reply With Quote

Old   September 26, 2012, 10:08
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Tuxeedo View Post
But the way it is now only creates confusion and/or Frustration among beginners.
Being able to cope with frustration is basically one of the major requirements to use OpenFOAM

Quote:
Originally Posted by Tuxeedo View Post
Bugreport says it's "not fixable" Does that mean Foamers will have to live with that Issue forever?
I hope not
Like Mattjis indicated: when Scotch is fixed, so will snappyHexMesh be fixed.
__________________
wyldckat is offline   Reply With Quote

Old   December 15, 2016, 19:49
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick update about this: This issue with scotch + ptscotch was fixed two months ago in OpenFOAM 4.x/1 and dev: https://bugs.openfoam.org/view.php?id=2275
Ramzy1990 likes this.
wyldckat 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
Manual decomposition using setFields RL-S OpenFOAM Pre-Processing 8 July 3, 2023 09:51
blueCFD-Core: scotch Method decomposition student666 OpenFOAM Pre-Processing 1 December 31, 2017 15:16
[mesh manipulation] decomposePar Method affects executability of renumberMesh Vyssion OpenFOAM Meshing & Mesh Conversion 0 November 3, 2016 08:57
interFoam & decomposition method: scotch MacGyver OpenFOAM Running, Solving & CFD 2 May 23, 2012 08:00
Info on method of lines approach charlie ryan Main CFD Forum 2 August 9, 2007 12:06


All times are GMT -4. The time now is 16:21.