CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Implementation of periodic boundary condition on a 2D channel

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2023, 09:32
Default Implementation of periodic boundary condition on a 2D channel
  #1
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 71
Rep Power: 12
Divyaprakash is on a distinguished road
Hi,

Using https://www.montana.edu/mowkes/resea...0_02_28_v2.pdf document as a reference I wrote a code in Fortran, and I used that as a fluid solver to couple it with a simple structure solver via immersed boundary method.


I am now looking to simulate periodic boundary conditions at the two ends of the domain to simulate channel flow. However, I am getting very confused when it comes to applying boundary conditions for periodicity with the staggered grids of U, V, and P. Till now, all my efforts have failed.


Looking at the document (notations on page 3) can someone please tell me how one would apply periodicity to the left and right walls?
Divyaprakash is offline   Reply With Quote

Old   July 9, 2023, 13:59
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Divyaprakash View Post
Hi,

Using https://www.montana.edu/mowkes/resea...0_02_28_v2.pdf document as a reference I wrote a code in Fortran, and I used that as a fluid solver to couple it with a simple structure solver via immersed boundary method.


I am now looking to simulate periodic boundary conditions at the two ends of the domain to simulate channel flow. However, I am getting very confused when it comes to applying boundary conditions for periodicity with the staggered grids of U, V, and P. Till now, all my efforts have failed.


Looking at the document (notations on page 3) can someone please tell me how one would apply periodicity to the left and right walls?



Looking at Fig.1:


u(imax+1,j)=u(imin,j)
v(imax+1,j)=v(imin,j)
p(imax+1,j)=p(imin,j)


be careful on the pressure, you solve only for the fluctuationg part, a constant driving force is added explicitly in the momentu equation.
FMDenaro is offline   Reply With Quote

Old   July 10, 2023, 04:12
Default
  #3
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 71
Rep Power: 12
Divyaprakash is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Looking at Fig.1:


u(imax+1,j)=u(imin,j)
v(imax+1,j)=v(imin,j)
p(imax+1,j)=p(imin,j)


be careful on the pressure, you solve only for the fluctuationg part, a constant driving force is added explicitly in the momentu equation.

I need to calculate the right hand side(RHS) of the above equations in order to assign them to the left hand side. My issue is that I am unable to figure out how I would calculate the RHS in your equations?
Divyaprakash is offline   Reply With Quote

Old   July 10, 2023, 04:34
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Divyaprakash View Post
I need to calculate the right hand side(RHS) of the above equations in order to assign them to the left hand side. My issue is that I am unable to figure out how I would calculate the RHS in your equations?
Periodicity criterion applies for all nodes, not only on the boundaries.
Thus, you can write the equations at imin by considering any node at imin-1= imax-1.
FMDenaro is offline   Reply With Quote

Reply

Tags
boundary conditions, periodic bc, staggered grid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Question about different kinds of Boundaries and Boundary Conditions granzer Main CFD Forum 17 April 12, 2022 18:27
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Bug in fvc::grad() and periodic boundary condition JBUNSW OpenFOAM 3 November 15, 2012 04:09
about the implemention of periodic boundary condition harbinyg Main CFD Forum 5 July 12, 2012 05:30


All times are GMT -4. The time now is 19:56.