CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Parallel running

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2019, 12:41
Default Parallel running
  #1
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 9
shimakasaei is on a distinguished road
Hi all,
I am running a simulation with olafoam solver, I want to run in parallel but I can't although it works when I run it with one processor.
I did put decomposeParDict in system folder:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 32;

method hierarchical;

hierarchicalCoeffs
{
n ( 4 2 4 );
delta 0.001;
order xyz;
}

I want to use 2 nodes with 16 processors each,
I want to check the order of the commands that I am using to see whether I make mistake while writing commands.
These are the commands that I am using:

blockMesh
decomposePar
mpirun -np 32 setFields -parallel
mpirun -np 32 olaFlow -parallel


I will appreciate for any help.

Thanks,
Shima.
shimakasaei is offline   Reply With Quote

Old   March 8, 2019, 13:02
Default
  #2
Member
 
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 16
Andrew.Coughtrie is on a distinguished road
Hi Shima,

What are the errors when you run your commands, are you running on a system which uses a job scheduler.

Andrew
Andrew.Coughtrie is offline   Reply With Quote

Old   March 8, 2019, 13:08
Default
  #3
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 9
shimakasaei is on a distinguished road
Quote:
Originally Posted by Andrew.Coughtrie View Post
Hi Shima,

What are the errors when you run your commands, are you running on a system which uses a job scheduler.

Andrew
yes, I assign a job for running my simulation. Now, when I try it with this order, it seems to work:

decomposePar
mpirun --bind-to-core blockMesh -parallel > err0
mpirun --bind-to-core setFields -parallel > err1
mpirun --bind-to-core olaFlow -parallel > err2

Do you think that the problem was for running blockMesh without parallel running.?
shimakasaei is offline   Reply With Quote

Old   March 8, 2019, 13:15
Default
  #4
Member
 
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 16
Andrew.Coughtrie is on a distinguished road
To start with blockMesh can't be run in parallel so that isn't the problem. Doing decomposePar before blockMesh won't help, it will either give an error or just decompose the mesh that is already there if you haven't cleaned the case.

If I were you I'd run the following before you submit the job to only run the olaflow command:

blockMesh
setFields
decomposePar

Then in your job submission script:

mpirun -np 32 olaFlow -parallel

See how that goes and post any errors you get.

Andrew
Andrew.Coughtrie is offline   Reply With Quote

Old   March 8, 2019, 14:20
Default
  #5
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 9
shimakasaei is on a distinguished road
Quote:
Originally Posted by Andrew.Coughtrie View Post
To start with blockMesh can't be run in parallel so that isn't the problem. Doing decomposePar before blockMesh won't help, it will either give an error or just decompose the mesh that is already there if you haven't cleaned the case.

If I were you I'd run the following before you submit the job to only run the olaflow command:

blockMesh
setFields
decomposePar

Then in your job submission script:

mpirun -np 32 olaFlow -parallel

See how that goes and post any errors you get.

Andrew

Thanks , now it seems working too, further if I get error I will post it here,
shimakasaei is offline   Reply With Quote

Old   March 11, 2019, 18:16
Default Distorted data
  #6
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 9
shimakasaei is on a distinguished road
Quote:
Originally Posted by Andrew.Coughtrie View Post
To start with blockMesh can't be run in parallel so that isn't the problem. Doing decomposePar before blockMesh won't help, it will either give an error or just decompose the mesh that is already there if you haven't cleaned the case.

If I were you I'd run the following before you submit the job to only run the olaflow command:

blockMesh
setFields
decomposePar

Then in your job submission script:

mpirun -np 32 olaFlow -parallel

See how that goes and post any errors you get.

Andrew

Hi
I used the same method that you have told me and it did work, but now, when I want to draw the water time series, it is wrong. I did reconstruct and writeCellcenter before extracting data, do you know if there is any other thing that I need to do?
I believe that the problem is something related to parallel run because when I run with one processor it doesn't looks like that.

Best,
shima
shimakasaei is offline   Reply With Quote

Old   March 12, 2019, 05:24
Default
  #7
Member
 
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 16
Andrew.Coughtrie is on a distinguished road
Sorry but I'm not sure what you mean by the water time series. Why the data is wrong could be due to any number of things.

Possibly try reconstructParMesh before reconstructPar and then the rest.

I don't have any other suggestions.

Andrew
Andrew.Coughtrie is offline   Reply With Quote

Old   March 12, 2019, 06:42
Default
  #8
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 9
shimakasaei is on a distinguished road
Quote:
Originally Posted by Andrew.Coughtrie View Post
Sorry but I'm not sure what you mean by the water time series. Why the data is wrong could be due to any number of things.

Possibly try reconstructParMesh before reconstructPar and then the rest.

I don't have any other suggestions.

Andrew
I mean water surface elevation var time , Thank you for your hint, I will do that, just one question, should I do reconstructPar -latest time?
shimakasaei is offline   Reply With Quote

Old   March 12, 2019, 06:46
Default
  #9
Member
 
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 16
Andrew.Coughtrie is on a distinguished road
If you're only interested in the latest time and it would otherwise take a long time to reconstruct all the time steps then yes. If you need to analyse the change in data over time you'll need more than just the latest time.

Andrew
Andrew.Coughtrie 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
[Other] blueCFD-Core-2016 user compiled solvers not running in parallel sbence OpenFOAM Installation 10 December 5, 2018 08:44
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 16:38
error while running in parallel using openmpi on local mc 6 processors suryawanshi_nitin OpenFOAM 10 February 22, 2017 21:33
Fluent 14.0 file not running in parallel mode in cluster tejakalva FLUENT 0 February 4, 2015 07:02
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50


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