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/)
-   -   Problem with cyclic boundary conditions in parallel (https://www.cfd-online.com/Forums/openfoam-solving/130783-problem-cyclic-boundary-conditions-parallel.html)

meng9019 March 4, 2014 08:36

Problem with cyclic boundary conditions in parallel
 
Hi, all
I am simulating a fluid flow in a periodic cylinder pipe using OpenFOAM.

The 0/U and 0/p files are set as following:

0/U
inlet
{
type cyclic;
value uniform (0 0 0);
}
outlet
{
type cyclic;
value uniform (0 0 0);
}
wall
{
type fixedValue;
value uniform (0 0 0);
}

0/p
inlet
{
type fan;
patchType cyclic;
f List 1 (-0.0128);
value uniform 0;
}
outlet
{
type fan;
patchType cyclic;
f List 1 (-0.0128);
value uniform 0;
}
wall
{
type zeroGradient;
}

It works well.
But when I run the simulation in parallel, the pressure field and the velocity field become zero in the first time step.

Do you have any idea for the reason? Thanks in advance.

ChristianR1988 March 4, 2014 10:26

are you running the cyclic-patches on the same processor?i think you can fix the by editing the decomposition-file.

for example:

method simple;

preservePatches
(
LEFT
RIGHT
);

meng9019 March 6, 2014 03:04

Quote:

Originally Posted by ChristianR1988 (Post 478023)
are you running the cyclic-patches on the same processor?i think you can fix the by editing the decomposition-file.

for example:

method simple;

preservePatches
(
LEFT
RIGHT
);

Hello, Christian
It works. Thank you very much.

kk415 February 5, 2019 09:11

1 Attachment(s)
Hello


I am working with cyclic boundary condition as well. The test case I am solving is a static bubble in a quiescent flow. It is a 2D case with all sides periodic i.e. left,right,top,bottom all. I am getting unphysical velocities at corners in parallel run after doing the modification as suggested Christian.
Attachment 68179


All times are GMT -4. The time now is 02:15.