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

periodic boundary conditions with a gradient term

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By andy_
  • 1 Post By andy_
  • 1 Post By michujo
  • 1 Post By andy_

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 6, 2013, 04:11
Default periodic boundary conditions with a gradient term
  #1
Senior Member
 
Join Date: Jun 2010
Posts: 111
Rep Power: 15
Hooman is on a distinguished road
Hi,
I have been trying to implement periodic bc's in my 1D code, I have a gradient term in my code, which I have discretized by using central differencing, so I have
du/dx = (u_i+1 - u_i)/(x_i+1 - x_i)
so for a periodic bc at the left and right boundaries I have used
du/dx = (u_1 - u_N)/(x_1 - x_N)

where N is the final cell, but for some reason I get weird results at the boundaries.
Could someone please confirm that what I am doing it correct.
Thanks!
Hooman 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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
periodic boundary conditions mranji1 Main CFD Forum 4 August 24, 2009 23:45
3D non-conformal periodic boundary conditions Simon Riverin FLUENT 4 February 23, 2007 01:35


All times are GMT -4. The time now is 06:11.