Skip to content

Periodic bc

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9471
    nipinl
    Participant

    I am simulating Poiseuille flow in a corrugated pipe, with periodic bc using body force (as in Poiseuille3D example). I notice that the estimated friction factor increases (or converged average x-velocity reduces) as I increase the periodic domain length (>2 times for L=2D Vs L=5D).
    In order to understand the reason, I wanted to know how periodic bcs are implemented in OpenLB, but I could not locate that in the code base. Can anyone point me to the implementation? Any thoughts on the variation in friction factor? The flow is at Re=400. D =2mm with resolution 400x400x(400*L/D)

    Thanks!!
    Nipin

    #9481
    mathias
    Keymaster

    Periodicity is implemented in OpenLB in a way that the populations are copied from one side to the other. It is dealt with within the cuboidGeometry class..

    #9492
    nipinl
    Participant

    Hi Mathias,
    Thanks for the lead.I understand that the setPeriodicity() function in the cuboidGeometry class sets the periodicity.
    Actually, I was looking for a stream-wise periodic boundary condition for channel/pipe flow with pressure gradient. One can achieve this with body force, but I read here that it is only applicable if the cross-section area is constant. Periodic bc with pressure gradient might include modification of the inlet density[Kim 2007]. I was wondering if this is already implemented in OpenLB?

    Thanks!!
    Best,
    Nipin

    #9502
    mathias
    Keymaster

    Might work with a combination of the defineRho (impose the rho distribution you want) method and the setPeriodicity

    #9503
    nipinl
    Participant

    Sounds good!! Thanks again.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.