CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to decompose my case? (https://www.cfd-online.com/Forums/openfoam/96995-how-decompose-my-case.html)

libra February 6, 2012 23:26

How to decompose my case?
 
Hello everyone
I am simulating the flow in a pipe with an obstacle. I am trying to decompose my case to 4 and 8 parts but I fail to do that.
My decomposeParDict file is like this:

/*-------------------------------*- C++ -*---------------------------------*\
| ========= |
| \\ / OpenFOAM |
| \\ / |
| \\ / The Open Source CFD Toolbox |
| \\/ http://www.OpenFOAM.org |
\*-------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
note "mesh decomposition control dictionary";
location "system";
object decomposeParDict;
}

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

numberOfSubdomains 4;


method metis;

simpleCoeffs
{
n (1 1 4);
delta 0.001;
}

hierarchicalCoeffs
{
n (1 1 1);
delta 0.001;
order xyz;
}

metisCoeffs
{
processorWeights ( 1 1 1 1 );
}


manualCoeffs
{
dataFile "";
}


distributed no;

roots ( );

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

But it won't work.
Could anyone tell me if there is something wrong.
Thanks

mecbe2002 February 7, 2012 03:06

Post the error message u get, that will help to understand ur problem

libra February 7, 2012 03:26

Thanks for your comment.This is what I get:

Distributing points to processors

Constructing processor meshes
*** glibc detected *** decomposePar: malloc(): memory corruption: 0x00000000070714a0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f04154ee948]
/lib/libc.so.6[0x7f04154f117c]
/lib/libc.so.6(__libc_malloc+0x98)[0x7f04154f2a78]
/usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7f0415d2eb9d]
/usr/lib/libstdc++.so.6(_Znam+0x9)[0x7f0415d2ecd9]
decomposePar(_ZN4Foam4ListIiEC1EiRKi+0x5c)[0x4ef0fc]
decomposePar[0x4e96ee]
decomposePar[0x447700]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f04154991a6]
decomposePar(_ZNK4Foam11regIOobject11writeObjectEN S_8IOstream12streamFormatENS1_13versionNumberENS1_ 15compressionTypeE+0xd1)[0x442b99]
======= Memory map: ========
00400000-0051b000 r-xp 00000000 08:01 1286828 /home/naka/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/decomposePar
0071b000-00723000 rw-p 0011b000 08:01 1286828 /home/naka/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/decomposePar
02303000-0cc31000 rw-p 02303000 00:00 0 [heap]
7f03f8000000-7f03f8021000 rw-p 7f03f8000000 00:00 0
7f03f8021000-7f03fc000000 ---p 7f03f8021000 00:00 0
7f03fdab8000-7f03fdabf000 rw-p 7f03fdab8000 00:00 0
7f03fdb43000-7f03fdb81000 rw-p 7f03fdb43000 00:00 0
7f03fdc5d000-7f03fdc72000 rw-p 7f03fdc5d000 00:00 0
7f03fddc3000-7f03fddd1000 rw-p 7f03fddc3000 00:00 0
7f03fdddd000-7f03fde75000 rw-p 7f03fdddd000 00:00 0
7f03fdf44000-7f03fdf6e000 rw-p 7f03fdf44000 00:00 0
7f03fdfbe000-7f03fdfe8000 rw-p 7f03fdfbe000 00:00 0
7f03fe22a000-7f03fe278000 rw-p 7f03fe22a000 00:00 0
7f03ff19c000-7f03ff1fe000 rw-p 7f03ff19c000 00:00 0
7f03ff29c000-7f03ff2cd000 rw-p 7f03ff29c000 00:00 0
7f03ff563000-7f03ff5f6000 rw-p 7f03ff563000 00:00 0
7f04060b7000-7f0413363000 rw-p 7f04060b7000 00:00 0
7f0413363000-7f041336d000 r-xp 00000000 08:01 86573071 /lib/libnss_files-2.7.so
7f041336d000-7f041356d000 ---p 0000a000 08:01 86573071 /lib/libnss_files-2.7.so
7f041356d000-7f041356f000 rw-p 0000a000 08:01 86573071 /lib/libnss_files-2.7.so
7f041356f000-7f0413579000 r-xp 00000000 08:01 86573060 /lib/libnss_nis-2.7.so
7f0413579000-7f0413778000 ---p 0000a000 08:01 86573060 /lib/libnss_nis-2.7.so
7f0413778000-7f041377a000 rw-p 00009000 08:01 86573060 /lib/libnss_nis-2.7.so
7f041377a000-7f0413781000 r-xp 00000000 08:01 86573066 /lib/libnss_compat-2.7.so
7f0413781000-7f0413980000 ---p 00007000 08:01 86573066 /lib/libnss_compat-2.7.so
7f0413980000-7f0413982000 rw-p 00006000 08:01 86573066 /lib/libnss_compat-2.7.so
7f0413982000-7f0413984000 r-xp 00000000 08:01 86573061 /lib/libutil-2.7.so
7f0413984000-7f0413b83000 ---p 00002000 08:01 86573061 /lib/libutil-2.7.so
7f0413b83000-7f0413b85000 rw-p 00001000 08:01 86573061 /lib/libutil-2.7.so
7f0413b85000-7f0413b9a000 r-xp 00000000 08:01 86573064 /lib/libnsl-2.7.so
7f0413b9a000-7f0413d99000 ---p 00015000 08:01 86573064 /lib/libnsl-2.7.so
7f0413d99000-7f0413d9b000 rw-p 00014000 08:01 86573064 /lib/libnsl-2.7.so
7f0413d9b000-7f0413d9d000 rw-p 7f0413d9b000 00:00 0
7f0413d9d000-7f0413dee000 r-xp 00000000 08:01 1253749 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-pal.so.0.0.0
7f0413dee000-7f0413fee000 ---p 00051000 08:01 1253749 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-pal.so.0.0.0
7f0413fee000-7f0413ff1000 rw-p 00051000 08:01 1253749 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-pal.so.0.0.0
7f0413ff1000-7f0414014000 rw-p 7f0413ff1000 00:00 0
7f0414014000-7f0414058000 r-xp 00000000 08:01 1253782 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-rte.so.0.0.0
7f0414058000-7f0414257000 ---p 00044000 08:01 1253782 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-rte.so.0.0.0
7f0414257000-7f041425b000 rw-p 00043000 08:01 1253782 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libopen-rte.so.0.0.0
7f041425b000-7f041425c000 rw-p 7f041425b000 00:00 0
7f041425c000-7f04142e2000 r-xp 00000000 08:01 1253874 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libmpi.so.0.0.0
7f04142e2000-7f04144e2000 ---p 00086000 08:01 1253874 /home/naka/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libmpi.so.0.0.0

libra February 8, 2012 04:37

I succeeded to break my case into 8 parts. :) But now the problem is that when I want to start the computations using channelFoam I get the following error:
--> FOAM FATAL IO ERROR:
[0] keyword Ubar is undefined in dictionary "/home/OpenFOAM/nak/run/melika/case5/processor0/constant/transportProperties"

However I can run my case with pisoFoam. :confused:

niaz February 10, 2012 14:23

Dear libra
use decomposePar -force to reproduce your test caes.

libra February 14, 2012 22:19

Thanks everyone. My problem is solved. :)


All times are GMT -4. The time now is 06:51.