|
[Sponsors] |
October 11, 2007, 00:51 |
Hello ....
I´m a new user a
|
#21 |
New Member
Jonathas Assunção de Castro
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Hello ....
I´m a new user and I´m trying to run my case in Parallel way. I´ve already decomposed my case, but I had problems when I tried to start a LAM .... please, someone help me! what is the comand to start LAM? |
|
October 11, 2007, 03:38 |
Hi Jonathas
OpenFoam User G
|
#22 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
Hi Jonathas
OpenFoam User Guide 3.4 Running applications in parallel 3.4.2 Running a decomposed cas 3.4.2.1 Starting a LAM multicomputer (U-82) regards, cedric |
|
November 5, 2008, 06:27 |
Hi everyone,
I want to run
|
#23 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi everyone,
I want to run my case in parallel, first with just two nodes on my laptop. When I try to decompose the case with decomposePar I get the error /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.4.1 | | \ / A nd | Web: http://www.openfoam.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : decomposePar . bubbleCellpar Date : Nov 05 2008 Time : 12:10:41 Host : PID : 15597 Root : /home/gijsbert/OpenFOAM/run Case : bubbleCellpar Nprocs : 1 Create time Time = 0 Create mesh Calculating distribution of cells Selecting decompositionMethod simple --> FOAM FATAL ERROR : Wrong number of processor divisions in geomDecomp: Number of domains : 2 Wanted decomposition : (2 2 1) From function geomDecomp::geomDecomp(const dictionary& decompositionDict) in file geomDecomp/geomDecomp.C at line 53. FOAM exiting My composeParDict looks like this: numberOfSubdomains 2; method simple; simpleCoeffs { n (1 2 1); delta 0.001; } hierarchicalCoeffs { n (1 1 1); delta 0.001; order xyz; } metisCoeffs { processorWeights ( 1 1 ); } manualCoeffs { dataFile ""; } distributed no; roots ( ); From the error output it looks like I only use 1 processor while I try to divide the case over two. Can anyone help me on this problem? Thank you in advance
__________________
Regards, Gijs |
|
November 5, 2008, 06:42 |
hi,
can u tell me how man
|
#24 |
Senior Member
|
hi,
can u tell me how many processor u r going to use???? |
|
November 5, 2008, 06:55 |
hey man,
go to u r de
|
#25 |
Senior Member
|
hey man,
go to u r decomposeParDict in system file, in that simpleCoeffs { n (2 1 1); delta 0.001; } ... then metisCoeffs { processorWeights ( 1 1 ); just do this changes then try to decompose i hope it will work. by siva |
|
November 5, 2008, 10:51 |
Hello Gijsbert,
It looks to m
|
#26 | ||
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hello Gijsbert,
It looks to me that you've chosen to have 2 partitions, and the splitting algorithm is simple. However, you specified that the algorithm should split in 2 along x, 2 along y, and 1 along z, which makes 4 partitions. Although you show the correct setting: Quote:
Quote:
I hope this is helpful, Dragos |
|||
November 6, 2008, 07:56 |
Hi guys,
Many thanks for yo
|
#27 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi guys,
Many thanks for your replies. @ siva: I am trying to decompose my case to use the two cores of my dual core laptop, just to try if it runs. Soon I will get a quadcore, so I want to be able to do parallel runs. For that I copied the /system/decomposeParDict from the interFoam/damBreak tutorial into my case file and modified it to have 2 processors and a decomposition of (2 2 1). But somehow during the actual decomposition it does not work. @ Dragos: As described above I have modified the /system/decomposeParDict file in case directory and, as you write, during the decomposition that file is appearently not read, or read elsewhere. Any ideas? Does decomposePar look for decomposeParDict in a different place than I think perhaps? Rgds, Gijsbert
__________________
Regards, Gijs |
|
November 6, 2008, 08:38 |
hi,
u have 2 processor, bu
|
#28 |
Senior Member
|
hi,
u have 2 processor, but u r splitting u r geometry it to 4, so the the command it will not work. in that simpleCoeffs { n (1 2 1); delta 0.001; } this is the right way, if u tried, still u r getting the problem attach u r problem here, " i mean what the computer says" may be we can have a look. by siva |
|
November 6, 2008, 10:50 |
Hi siva,
Thank you for your
|
#29 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi siva,
Thank you for your reply. I did edit the decomposeParDict as you suggested, but apparently it did not want to save although I did do Ctrl+S. Perhaps it is most fool proof to actually close decomposeParDict before decomposing the case, so that it is saved for sure and no weird things happen. When I tried again today, everything worked fine! So I just ran my first parallel case successfully. Thanks for your quick replies. Cheers, Gijs
__________________
Regards, Gijs |
|
March 11, 2009, 09:38 |
Hello all,
I have been runn
|
#30 |
New Member
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
Hello all,
I have been running some cases with simpleFoam in a cylinder using parallel implementations in a Quad core processor. I would like to better understand when does the parallel communication occur between the 4 subdomains. Are the governing equations being solved in subdomain 1 and then being send to sudomain 2? How significant is it to use an implicit coupling method rather than an explicit one? Thanks in advance, Eduarda |
|
March 11, 2009, 09:59 |
Edura,
The communication o
|
#31 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
Edura,
The communication occurs at the end of each time step. All 4 processors have a copy of the program(binary). The binary can identify the processor number in which it is present. Using this, the processor understands what part of the domain it has to solve. It uses the flow field values along the boundaries of the adjacent subdomains(which are in adjacent processors) as its own boundary conditions. So after each timestep, the flow field values along the edges of the subdomains are exchanged. At the end of the simulations, the subdomains are composed back together to form the domain. I have mentioned just one way of doing it. For better efficiency, cells may be distributed among processors in a round-robin too. But I hope you get a gist of what happens. Refer this book : Parallel computing , by Barry Wilkinson and Michael Allen. |
|
March 12, 2009, 09:19 |
Hello All,
Does somebody ha
|
#32 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
Hello All,
Does somebody have an example of decomposePar file using the "distributed yes;" and "roots" options? I would like to use two nodes of a cluster to run OpenFOAM-1.5.x in parallel. I would like to use /tmp or /scratch of local cluster disks, instead of using the mounted ~/ to store the data. I have enabled passwordless ssh. Thanks in advance, Rishi |
|
April 13, 2009, 16:39 |
|
#33 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
I'm trying to run damBreak tutorial in parallel on a HP 6820s dual core laptop. I've found this thread:
http://www.cfd-online.com/Forums/ope...-core-cpu.html that states it's worth the trouble. I change the number of sub domains in "decomposeParDict" to 2. I'm using simple decomposition and set the coefficient "n" to (2 1 1). The "decomposePar" runs fine, telling me the number of processors is 1 (nProc: 1, with dual core?). As a result I have two new directories: "processor0" and "processor1" with "0" and "constant" as their subdirectories. checkMesh tells me I have 2268 cells split in two on each "processor". The problem happens when I run "paraFoam -case processor0" (as read from page 64 in OF U-guide). Paraview starts fine, but when I try to import mesh data and click the Apply button, it shuts down and I get this error in console: *** An error occurred in MPI_Bsend *** before MPI was initialized *** MPI_ERRORS_ARE_FATAL (goodbye) [icarus:12344] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed! I have NO clue about parallel runs (or cpu architecture and its inner works) and I'm running most of my cases on this laptop so I wanted to speed things up at least a bit. What does this error mean? Also if I try "mpirun -np 1 interFoam -parallel > log &" it won't work, but "mpirun -np 2 interFoam -parallel > log &" runs fine (the results are written in directories "processor0" and "processor1"). Now, my question is: why does decomposePar tell me that I have nProc: 1 (number of processors 1) and creates processor0 and processor1 directories, while mpirun works only with the argument -np 2? Am I doing something wrong? |
|
April 14, 2009, 18:23 |
|
#34 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
The MPI_BSend message sounds like a bug. Probably some boundary condition that does an extraneous parallel communication even when not running parallel. Try reconstructPar + postprocessing on the undecomposed case instead.
2) the "nProc:1" message I assume comes from the header. decomposePar runs on one processor only. It can decompose for any number of processors as given in the decomposeParDict. |
|
April 14, 2009, 19:09 |
|
#35 | ||
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Quote:
Thank You, Tomislav |
|||
March 31, 2011, 19:21 |
Problem running parallel job
|
#36 |
New Member
Ankit
Join Date: Mar 2011
Posts: 1
Rep Power: 0 |
Hi Foamers,
I have been trying to run biconic25-55Run35 tutorial on two processors. I have used the simple decomposition scheme in the decomposepar utility to decompose the mesh. When I run the decomposed case, it runs for a few time steps (5-10) and then it crashes. Can somebody help me debug this problem. thanks ... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running fluent parallel with PBS | Jaggu | FLUENT | 1 | June 8, 2011 12:29 |
Parallel running of Fluent | Bhanu Gupta | FLUENT | 3 | April 7, 2011 10:32 |
Problem in running Parallel | mamaly60 | OpenFOAM Running, Solving & CFD | 1 | April 19, 2010 12:11 |
Problems on running cfx in parallel | Nan | CFX | 1 | March 29, 2006 05:10 |
Postprocessing after running in parallel | balakrishnan | OpenFOAM Pre-Processing | 0 | March 11, 2005 12:22 |