CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] cfMesh - How to reconstruct after running using mpi

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2019, 15:05
Default cfMesh - How to reconstruct after running using mpi
  #1
Member
 
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 9
schuyler is on a distinguished road
Hello!

I have been using cfMesh for a very long time with tons of success. Recently I have been trying to experiment with deploying it onto my cluster. I am running cfMesh with OpenFOAM-1806.

From the manual, and a few forum entries, I gathered that I should run it like (this test was on two 4-core remote computers):

Code:
preparePar
mpirun -np 8 -hostfile machines -x FOAM_SETTINGS ~/OpenFOAM/OpenFOAM-v1806/bin/foamExec cartesianMesh -parallel
This runs without problem. However, then I don't know how to recombine it! The execution doesn't do it automatically, as I had first suspected it would. I have tried reconstructParMesh -constant and it gives the following error:

Code:
Reading points from "8Core_0.25MeshSize/processor0" for time = constant

Reading points from "8Core_0.25MeshSize/processor1" for time = constant

Reading points from "8Core_0.25MeshSize/processor2" for time = constant

Reading points from "8Core_0.25MeshSize/processor3" for time = constant

Reading points from "8Core_0.25MeshSize/processor4" for time = constant

Reading points from "8Core_0.25MeshSize/processor5" for time = constant

Reading points from "8Core_0.25MeshSize/processor6" for time = constant

Reading points from "8Core_0.25MeshSize/processor7" for time = constant

Overall mesh bounding box  : (-0.00257379658 -0.00374847875 -12.8007856) (24.9997 3.00000102 27.2012334)
Relative tolerance         : 1e-07
Absolute matching distance : 4.72683587e-06

Merging mesh 0 with 1


--> FOAM FATAL ERROR: 
Perfect match specified but number of master and slave faces differ.
master:215  slave:0

    From function Foam::faceCoupleInfo::faceCoupleInfo(const Foam::polyMesh&, const labelList&, const Foam::polyMesh&, const labelList&, Foam::scalar, bool, bool, bool)
    in file polyMeshAdder/faceCoupleInfo.C at line 2037.

FOAM aborting
am I missing something simple? I operate OpenFOAM in parallel on my cluster all the time, and use cfMesh all the time on my desktop. But this is the first i've tried running cfMesh remotely on the cluster nodes (since I plan to do some relatively large scale optimization).

Thanks in advance!

Schuyler
schuyler is offline   Reply With Quote

Old   May 15, 2019, 11:27
Smile
  #2
New Member
 
Akash Patel
Join Date: Dec 2018
Location: Champaign, IL, USA
Posts: 20
Rep Power: 4
akashpatel95 is on a distinguished road
Generally, you will have to use a utility called "reconstructParMesh". It combines mesh from all processors for you.
akashpatel95 is offline   Reply With Quote

Old   November 13, 2019, 04:16
Default
  #3
New Member
 
Tim Jeremy Patrick Karpowski
Join Date: Jun 2017
Location: Germany, Hessen
Posts: 4
Rep Power: 5
T. J. P. is on a distinguished road
I ran into the same problem, for me "reconstructParMesh -constant -fullMatch " worked.
T. J. P. 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
mpirun, best parameters pablodecastillo Hardware 18 November 10, 2016 12:36
Error running Converge Failed MPI File Open Kurik CONVERGE 1 August 2, 2016 11:44
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
MPI profiling OpenFOAM damBreak3D application mellanoxuser OpenFOAM Running, Solving & CFD 0 April 13, 2008 23:04


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