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

[cfMesh] The proper way to run cfMesh in parallel

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

Like Tree1Likes
  • 1 Post By Carlo_P

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2018, 13:02
Default The proper way to run cfMesh in parallel
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 168
Rep Power: 6
kandelabr is on a distinguished road
I can't find an example/tutorial where cfMesh is used and run in parallel.
If I am not mistaken, cfMesh should be run as simply as

Code:
preparePar
cartesianMesh
where preparePar takes number of processors from system/decomposeParDict.

My problem is that on the TCFD's OF4Win package that's a cygwin version simply ignores everything and only runs on a single core.

Do I have something misconfigured or am I missing something?

Thanks!
kandelabr is offline   Reply With Quote

Old   August 5, 2019, 06:14
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 177
Rep Power: 4
Carlo_P is on a distinguished road
Hey,
I had also the same problem.
I solved it runnig


preparePar
mpirun -n numberprocessor cartesianMesh -parallel


This worked for me.


Cheers,
Carlo
pardoa likes this.
Carlo_P is offline   Reply With Quote

Old   August 5, 2019, 06:19
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 168
Rep Power: 6
kandelabr is on a distinguished road
Thank you for reply. When I switched to Ubuntu on WSL, it seems to work fine.
I simply do

preparePar
cartesianMesh

And it runs with the right number of processors, as defined in decomposePar.
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Reply

Tags
cfmesh, cygwin, of4win, parallel

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
Parallel run: bool ipstream::init attempt to run parallel on 1 processor SarahLee OpenFOAM Running, Solving & CFD 2 January 11, 2017 03:24
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 15:25
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 16:49
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51


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