CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   are periodic boundary conditions exact? (https://www.cfd-online.com/Forums/main/213212-periodic-boundary-conditions-exact.html)

holgerbre December 18, 2018 14:23

are periodic boundary conditions exact?
 
1 Attachment(s)
I try to perform a rather simple simulation: an incompressible flow through a duct using periodic boundary conditions for each velocity component and pressure in streamwise directions. I always considered periodic bcs to be exact. However, looking at the attached in-plane velocity field (underresolved resolution, but that's not the point) i can see structures which are related to the application of the boundary conditions. One can clearly see the vertical blue and red areas on both sides of the domain.



The question is: did i do a mistake in the implementation of the periodic bcs or is there an inherent inaccuracy in the method?


btw, I use a staggered grid and I tried both periodic pressure and pressure gradient with similar result: p_in = p_out and px/dx_in = px/dx_out

FMDenaro December 18, 2018 14:44

Quote:

Originally Posted by holgerbre (Post 719504)
I try to perform a rather simple simulation: an incompressible flow through a duct using periodic boundary conditions for each velocity component and pressure in streamwise directions. I always considered periodic bcs to be exact. However, looking at the attached in-plane velocity field (underresolved resolution, but that's not the point) i can see structures which are related to the application of the boundary conditions. One can clearly see the vertical blue and red areas on both sides of the domain.



The question is: did i do a mistake in the implementation of the periodic bcs or is there an inherent inaccuracy in the method?


btw, I use a staggered grid and I tried both periodic pressure and pressure gradient with similar result: p_in = p_out and px/dx_in = px/dx_out






Periodic BCs. are exact but imply a strong condition on the flow and the lenght must be enough to let develop physically the flow structures... looking at your plot the periodicity lenght seems smaller than the extension of the computational domain in streamwise direction, thus I think about a bug in your code.
Note that what is periodic in the pressure field is the fluctuating part that must be superiposed to a constant gradient field.

holgerbre December 18, 2018 14:57

- right, I use periodic bc for the fluctuating pressure and superimpose it with a constant pressure that drives the flow


- agree, the domain is too small and also the resolution is way too coarse. So the result will be physically wrong. But still, if I implement the bcs correctly, I should not see these structures at the domain borders, or? or can it be related to that?

FMDenaro December 18, 2018 15:02

Quote:

Originally Posted by holgerbre (Post 719507)
- right, I use periodic bc for the fluctuating pressure and superimpose it with a constant pressure that drives the flow


- agree, the domain is too small and also the resolution is way too coarse. So the result will be physically wrong. But still, if I implement the bcs correctly, I should not see these structures at the domain borders, or? or can it be related to that?


Structures can appear, passing the BCs. edges and moving along the domain, what I see not correct (and I suppose due to a bug) is the fact you have the same structures at a lenght lower than the periodicity lenght.
However, I strongly suggest to check you code on the analytical Taylor solution before using the duct problem

holgerbre December 19, 2018 00:15

you mean a 2D Taylor vortex flow, right? Thanks, I will try that.


All times are GMT -4. The time now is 13:53.