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

Possible problem in cyclic boundary conditions in parallel cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2009, 02:48
Default Possible problem in cyclic boundary conditions in parallel cases
  #1
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hello,

I was running a simple scalar transport problem in a periodic square (all 4 sides periodic), with a fixed sinusoidal velocity profile. The initial condition for the scalar is shown in the attachment Initial.png. Values are 0 and 1 at t = 0.

If the case is run in serial mode, at t = 0.1, the result is shown in Serial.png, with the expected behaviour. However, when the case is split over two processors, at the same time, there are inconsistencies along the decomposition surface (vertical line in the middle of the domain. I used the "simple" decomposition in the pictures, however a similar problem is present with METIS too), where the concentration increases unexpectedly to 2 (See Parallel.png). Also, half of the periodic patch is affected.

The blockMeshDict is attached for your convenience.

Edit: OpenFOAM Version: 1.5.x from git repository, updated today.

Best,
Attached Images
File Type: jpg Initial.jpg (12.2 KB, 18 views)
File Type: jpg Serial.jpg (13.9 KB, 21 views)
File Type: jpg Parallel.jpg (14.3 KB, 25 views)
Attached Files
File Type: txt blockMeshDict.txt (1.3 KB, 12 views)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.

Last edited by alberto; June 10, 2009 at 03:29.
alberto is offline   Reply With Quote

Old   June 10, 2009, 05:22
Smile
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi again

Good news: it's not a bug in the cyclic conditions, but it is due to how I set the velocity.

I have a fixed velocity field that changes at specified times, as a function of the position, so I did something like:

forAll (mesh.cells(), celli)
{
scalar x = mesh.C()[celli].component(vector::X);
scalar y = mesh.C()[celli].component(vector::Y);

if (...)
{
U[celli] = vector(sin(y*...), 0.0, 0.0);
}
else
{
U[celli] = vector(0.0, sin(x*...), 0.0);
}
}

The problem is that the velocity field is not updated correctly along the boundary introduced by the domain decomposition. Any better way to do that, which works also in parallel?

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   June 10, 2009, 05:50
Default
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Call correctBoundaryConditions on the field after changing the internal field.
mattijs is offline   Reply With Quote

Old   June 10, 2009, 12:22
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Thanks :-D
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 06:05
periodic and cyclic boundary conditions Hadi Main CFD Forum 2 June 29, 2007 08:19
Boundary Conditions - text-book problem solutions? Alan Main CFD Forum 0 October 17, 2005 16:44
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


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