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

Periodic boundary condition for compressible flow

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 1 Post By FMDenaro
  • 2 Post By vesp
  • 2 Post By sbaffini
  • 2 Post By sbaffini
  • 1 Post By FMDenaro
  • 1 Post By sbaffini

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 2, 2020, 08:34
Default Periodic boundary condition for compressible flow
  #1
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 9
Abolfazl_cfd is on a distinguished road
Hi everybody.

I have already validated my code with compressible flow in a channel with normal boundary condition.
But as I tried to model a periodic boundary condition, I'm getting strange results. The more the code proceeds in time, the more velocity in the center line of the channel decreases. Is it normal??
In my code, there are two columns of ghost cells (two columns at entry on channel and two columns at exit). Here is a the part of code for periodic boundary condition.
I would be so grateful, if you would could help me.

Thank you all.


i=-1
do j=-1,jm+2
!
p (i,j) =p(im-1,j)
t (i,j) =t(im-1,j)
rho(i,j) =rho(im-1,j)
u (i,j) =u(im-1,j)
v (i,j) =v(im-1,j)
!
end do
!
i=0
do j=-1,jm+2
!
p (i,j) =p(im,j)
t (i,j) =t(im,j)
rho(i,j) =rho(im,j)
u (i,j) =u(im,j)
v (i,j) =v(im,j)
!
end do
!
i=im+1
do j=-1,jm+2
!
p (i,j) =p(1,j)
t (i,j) =t(1,j)
rho(i,j) =rho(1,j)
u (i,j) =u(1,j)
v (i,j) =v(1,j)
!
end do
!
i=im+2
do j=-1,jm+2
!
p (i,j) =p(2,j)
t (i,j) =t(2,j)
rho(i,j) =rho(2,j)
u (i,j) =u(2,j)
v (i,j) =v(2,j)
!
end do
Abolfazl_cfd is offline   Reply With Quote

 


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Constant mass flow rate boundary condition sahm OpenFOAM 0 June 20, 2018 22:45
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20


All times are GMT -4. The time now is 20:50.