CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   how to specify parallel running? (core i7 but with 6 cores running) (https://www.cfd-online.com/Forums/openfoam-solving/133540-how-specify-parallel-running-core-i7-but-6-cores-running.html)

vitorspadeto April 16, 2014 08:57

how to specify parallel running? (core i7 but with 6 cores running)
 
Hey. Performed once the simulation using all my intel i7 processors. But coller worked with all the power vent. I'm worried, since I'm afraid of causing problems in the processor when running a simulation using all 8 processors. can cause problems? maybe burn the processor?

if I want to use only 6 processors, how should I specify the decomposePar file and the command line in the terminal? I tried the following but it gave this error:

decomposePar:

Quote:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 6;

method simple;

simpleCoeffs
{
n ( 3 2 1 );
delta 0.001;
Terminal:

Quote:

mpirun -np 6 icoFoam -parallel > log &
Error:
Quote:

--> FOAM FATAL ERROR:
[0] icoFoam: cannot open case directory "/home/s/Dropbox/Openfoam_PG/papers/libre_mechanics_tutorials/bridge/Case2pillars/processor0"
thanks all!

vitorspadeto April 16, 2014 08:59

changing the line command:

Quote:

mpirun -np 8 icoFoam -parallel > log &
[4] 5142
[3] Fim da execução com status 1 mpirun -np 6 icoFoam -parallel > log
s@s-Aspire-V3-571:~/Dropbox/Openfoam_PG/papers/libre_mechanics_tutorials/bridge/Case2pillars$ [0]
[0]
[0] --> FOAM FATAL ERROR:
[0] number of processor directories = 1 is not equal to the number of processors = 8
[0]
FOAM parallel run exiting
[0]
--------------------------------------------------------------------------

RodriguezFatz April 16, 2014 10:25

Hey Vitor, everything was fine, but you need to actually decompose your domain. The file "decomposeParDict" only says openfoam how the decomposition is done. Type "decomposePar" before running "mpi -np ...". The decomposePar command will create the (in your case) six directories ./processor0, ./processor/1 ... where the "cutted" domain is stored.


All times are GMT -4. The time now is 10:40.