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

[mesh manipulation] decomposePar of directMapped Patches with metis

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By chegdan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2011, 12:50
Default decomposePar of directMapped Patches with metis
  #1
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
I have seen several threads about the direct mapped patches in parallel:

http://www.cfd-online.com/Forums/ope...apped+parallel

http://www.cfd-online.com/Forums/ope...apped+parallel

http://www.cfd-online.com/Forums/ope...apped+parallel

http://www.cfd-online.com/Forums/ope...apped+parallel

And I know that we have to keep faces that are being mapped to and from on the same processor (owners and neighbors). However, I'm too complex to use the "simple" method in my decomposePardict and I want to be complex and use "metis". This is where this question is different, the use of metis.

So, how does one use preserveFaceZones properly so that the to and from faces are on the same processor? Right now, I have my two patches inlet and outlet at two ends of domain. I map the outlet to the inlet and everything is happy. I then tried to use preservefacezones by creating a set using faceSet made from the faces of my inlet and outlet together in a set creatively called directMappedSet. Using setsToZones, i populated the faceZones file in polyMesh and then added:

method metis;
preserveFaceZones (directMappedSet);

to my decomposeParDict file and decomposed my case. Upon checking my processor meshes, i found that it did not decompose how I expected. Some informational messages I received were:

Code:
Calculating distribution of cells
Keeping owner and neighbour of faces in zones 
1
(
directMappedSet
)
 on same processor
Selecting decompositionMethod metis
Selected 42924 faces whose owner and neighbour cell should be kept on the same processor
--> FOAM Warning : 
    From function min(const UList<Type>&)
    in file /home/dcombest/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/FieldFunctions.C at line 342
    empty field, returning zero

Finished decomposition in 23.18 s
So, long story for a simple question...how does one decompose a complex geometry so that directMapped patches work properly in parallel?

Dan
hua1015 likes this.
chegdan is offline   Reply With Quote

Old   October 31, 2012, 16:48
Default
  #2
Member
 
Join Date: Sep 2011
Posts: 45
Rep Power: 15
ic3wall is on a distinguished road
Did you solve this ?

I also have to run a case containing directMapped boundary condition in parallel...
ic3wall is offline   Reply With Quote

Old   November 1, 2012, 05:53
Default
  #3
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
At the time I had a workaround, but i think this has been taken care of in another bugfix. Give it a try and if there is an issue I can look at it again.
chegdan is offline   Reply With Quote

Old   November 1, 2012, 09:21
Default
  #4
Member
 
Join Date: Sep 2011
Posts: 45
Rep Power: 15
ic3wall is on a distinguished road
I found that depending how I decompose, sometimes the simulation starts without problems, sometimes it stops at time 1. It says cpus are 100% busy but nothing happens.

Do you know if it's important to keep the directMapped zone (like cyclic) on the same processor or it doesn't matter ?
ic3wall is offline   Reply With Quote

Old   November 1, 2012, 09:42
Default
  #5
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
unless they changed this, if I remember correctly you must keep the coupled patches an the same processor in the same subdomain.

Quote:
Originally Posted by ic3wall View Post
I found that depending how I decompose, sometimes the simulation starts without problems, sometimes it stops at time 1. It says cpus are 100% busy but nothing happens.

Do you know if it's important to keep the directMapped zone (like cyclic) on the same processor or it doesn't matter ?
chegdan is offline   Reply With Quote

Old   November 1, 2012, 21:31
Default
  #6
Member
 
Join Date: Sep 2011
Posts: 45
Rep Power: 15
ic3wall is on a distinguished road
When using directMapped, no patches are coupled.
ic3wall is offline   Reply With Quote

Old   November 2, 2012, 06:48
Default
  #7
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Take a look at the first post of this thread. Glance through the list of cited posts and you question is answered in

http://www.cfd-online.com/Forums/ope...-parallel.html
chegdan is offline   Reply With Quote

Reply

Tags
decomposepar, directmapped bc, metis, parallel


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 09:19
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 09:00
decomposePar -allRegions stru OpenFOAM Pre-Processing 2 August 25, 2015 04:58
Regarding periodic BC in ICEM generated grid Tarak OpenFOAM 32 April 30, 2013 15:46


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