CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   GGI in Parallel error (http://www.cfd-online.com/Forums/openfoam-solving/94210-ggi-parallel-error.html)

renyun0511 November 9, 2011 07:31

GGI in Parallel error
 
hi, foamers,

I am simulating the pump inner flow with MRFSimpleFOAM (OpenFOAM-1.5-dev) on my PC successfully. Currently, I am experiencing some difficulties with parallelising my own GGI case on the HPC with MRFSimpleFOAM (OpenFOAM-1.5-dev),and I need your help.

As far as I was aware the GGI should work in parallel as long as the setBatch in system are defined before using the decomposePar utility.

I put the following instructions in setBatchDict:

faceSet interfacesuc_zone new patchToFace interfacesuc
faceSet interfaceimp1_zone new patchToFace interfaceimp1
faceSet interfacevol1_zone new patchToFace interfacevol1
faceSet interfaceckyc_zone new patchToFace interfaceckyc
quit

where, my boundary are:

wall
{
type wall;
nFaces 88020;
startFace 2294747;
}
wallhgb
{
type wall;
nFaces 28584;
startFace 2382767;
}
wallqgb
{
type wall;
nFaces 28448;
startFace 2411351;
}
interafcevol1
{
type ggi;
shadowPatch interfaceckyc;
bridgeOverlap false;
zone interfacevol1_zone;
nFaces 1446;
startFace 2439799;
}
interfacevol
{
type ggi;
shadowPatch interfaceimp;
bridgeOverlap false;
zone interfacevol_zone;
nFaces 22196;
startFace 2441245;
}
interfacesuc
{
type ggi;
shadowPatch interfaceimp1;
bridgeOverlap false;
zone interfacesuc_zone;
nFaces 2368;
startFace 2463441;
}
interfaceimp1
{
type ggi;
shadowPatch interfacesuc;
bridgeOverlap false;
zone interfaceimp1_zone;
nFaces 1120;
startFace 2465809;
}
interfaceimp
{
type ggi;
shadowPatch interfacevol;
bridgeOverlap false;
zone interfaceimp_zone;
nFaces 8680;
startFace 2466929;
}
interfaceckyc
{
type ggi;
shadowPatch interafcevol1;
bridgeOverlap false;
zone interfaceckyc_zone;
nFaces 748;
startFace 2475609;
}
wallimp4
{
type wall;
nFaces 2226;
startFace 2476357;
}
wallimp3
{
type wall;
nFaces 2238;
startFace 2478583;
}
wallimp2
{
type wall;
nFaces 2226;
startFace 2480821;
}
wallimp1
{
type wall;
nFaces 2262;
startFace 2483047;
}
outlet
{
type patch;
nFaces 748;
startFace 2485309;
}
inlet
{
type patch;
nFaces 3468;
startFace 2486057;
}
)

and then, I using the following commands:

setSet -batch setBatch

there is a error on the screen:

Create timeCreate polyMesh for time = 0Time:0 cells:1196068 faces:2489525 points:249609 patches:15
Reading commands from file "setBatch"
Cannot open file "setBatch" From function setSet
in file setSet.C at line 749.FOAM exiting

Does anyone know the reasons for this?

regards,

Yun Ren
Jiangsu University, China

renyun0511 November 9, 2011 22:56

I have solved this problem by moving the setBatch file in the case folder from system folder. After typing:

setSet -batch setBatch
setsToZones -noFlipMap

I can see 4 more new faceZones in constant/polyMesh/sets was created, which are interfacesuc_zone,interfaceimp1_zone,interfacevol1 _zone,interfaceckyc_zone

Further, my system/decomposeParDict contains the following:

numberOfSubdomains 4;
method simple;
simpleCoeffs
{
n (2 2 1);
delta 0.001;
}
globalFaceZones(interfacesuc_zone interfaceimp1_zone interfacevol1_zone interfaceckyc_zone);
hierarchicalCoeffs
{
n (1 1 1);
delta 0.001;
order xyz;
}
metisCoeffs
{
processorWeights
(
1
1
1
1
);
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots
(
);
//************************************************** *********************** //

then , processor0,processor1,processor2,processor3 were presented in my case folder. Until now, I think everything runs OK. However, when I run this case in parallel by typing:
mpirun -np 4 MRFSimpleFoam -parallel
there is an error, here are:

see the attachment

I don't know if there is another codes i should add into my case,does anyone help me?

appreciate,

Yun Ren
Jiangsu University, China


All times are GMT -4. The time now is 17:44.