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

How to decompose my case?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2012, 23:26
Post How to decompose my case?
  #1
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
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
libra is offline   Reply With Quote

Old   February 7, 2012, 03:06
Default
  #2
Senior Member
 
KGN
Join Date: Oct 2009
Location: Chennai, India
Posts: 121
Rep Power: 17
mecbe2002 is on a distinguished road
Post the error message u get, that will help to understand ur problem
mecbe2002 is offline   Reply With Quote

Old   February 7, 2012, 03:26
Default
  #3
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
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 is offline   Reply With Quote

Old   February 8, 2012, 04:37
Default
  #4
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
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.
libra is offline   Reply With Quote

Old   February 10, 2012, 14:23
Default
  #5
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17
niaz is on a distinguished road
Dear libra
use decomposePar -force to reproduce your test caes.
niaz is offline   Reply With Quote

Old   February 14, 2012, 22:19
Default
  #6
New Member
 
Melika
Join Date: Feb 2012
Location: Japan
Posts: 24
Rep Power: 14
libra is on a distinguished road
Thanks everyone. My problem is solved.
libra is offline   Reply With Quote

Reply


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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Instable natural convection case Peter88 OpenFOAM 5 August 18, 2011 02:23
Transient case running with a super computer microfin FLUENT 0 March 31, 2009 12:20
Turbulent Flat Plate Validation Case Jonas Larsson Main CFD Forum 0 April 2, 2004 11:25


All times are GMT -4. The time now is 00:23.