|
[Sponsors] |
Possible problem in cyclic boundary conditions in parallel cases |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 10, 2009, 02:48 |
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 |
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,
__________________
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. |
|
June 10, 2009, 05:22 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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. |
|
June 10, 2009, 05:50 |
|
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Call correctBoundaryConditions on the field after changing the internal field.
|
|
June 10, 2009, 12:22 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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. |
|
|
|
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 |