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

Rayleigh Benard 3D coding with finite differences

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2016, 01:16
Post Rayleigh Benard 3D coding with finite differences
  #1
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
I am developing a simple fortran solver in finite difference. My domain is 2pi*2pi*1 as taken by S. Chandrasekhar. My equations are having non dimensional parameters as Reynolds Number, Rayleigh Number and Prandtl No.
The code is running well but w- velocity contours(heating at bottom and cold at top) are coming only positive and negative alternatively and i am not getting rolls as expected. Can someone explain it.? Thanks in advance
cfdprojects is offline   Reply With Quote

Old   February 17, 2016, 04:18
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by cfdprojects View Post
I am developing a simple fortran solver in finite difference. My domain is 2pi*2pi*1 as taken by S. Chandrasekhar. My equations are having non dimensional parameters as Reynolds Number, Rayleigh Number and Prandtl No.
The code is running well but w- velocity contours(heating at bottom and cold at top) are coming only positive and negative alternatively and i am not getting rolls as expected. Can someone explain it.? Thanks in advance

please, provide much more details about your code such as formulation, type of discretization, grid arrangement, values of the non-dimensional parameters, etc
FMDenaro is offline   Reply With Quote

Old   February 17, 2016, 06:07
Post
  #3
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
I am implementing Pressure- velocity method, and using pressure poisson equation for divergence free flow. Ra=1800, Re=1.0, Pr=1. Grid is uniform in x and y while clustered with cos function in z direction(gravity). discreatisation is done utilizing fourth order Central differencing for diffusion terms, while third order Kawamura and K. Kuwahara upwinding for convective terms. thanks for reply.
cfdprojects is offline   Reply With Quote

Old   February 17, 2016, 06:11
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by cfdprojects View Post
I am implementing Pressure- velocity method, and using pressure poisson equation for divergence free flow. Ra=1800, Re=1.0, Pr=1. Grid is uniform in x and y while clustered with cos function in z direction(gravity). thanks for reply.

if you use a second order discretization and a colocated arrangement, you could have experienced a decoupling-mode solution in the pressure equation.
Could you post some figures of velocity and pressure fields?
FMDenaro is offline   Reply With Quote

Old   February 17, 2016, 06:21
Default
  #5
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
if you use a second order discretization and a colocated arrangement, you could have experienced a decoupling-mode solution in the pressure equation.
Could you post some figures of velocity and pressure fields?

Here are the figures encl :
Attached Images
File Type: jpg Temp.jpg (31.3 KB, 18 views)
File Type: jpg W-velocity.jpg (35.6 KB, 17 views)
File Type: jpg w-velocity in z-direction.jpg (46.1 KB, 8 views)
cfdprojects is offline   Reply With Quote

Old   February 17, 2016, 06:42
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
it is a decoupling along the gravity axis, you can see the pressure field oscillating ... why don't you try using a staggered grid?
cfdprojects likes this.
FMDenaro is offline   Reply With Quote

Old   February 17, 2016, 06:52
Post
  #7
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
it is a decoupling along the gravity axis, you can see the pressure field oscillating ... why don't you try using a staggered grid?
Yes i am using collocated grid till now. Would you please suggest me some writeup on staggered grid implementation in view of this problem.
cfdprojects is offline   Reply With Quote

Old   February 17, 2016, 07:01
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by cfdprojects View Post
Yes i am using collocated grid till now. Would you please suggest me some writeup on staggered grid implementation in view of this problem.

a second order discretization on staggered grid is a very old and well suited formulation, you can find that in any CFD textbook. For example, see the book of Peric & Ferziger
cfdprojects likes this.
FMDenaro is offline   Reply With Quote

Old   February 17, 2016, 07:15
Post
  #9
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
a second order discretization on staggered grid is a very old and well suited formulation, you can find that in any CFD textbook. For example, see the book of Peric & Ferziger

Thankyou. I will apply it and come back.
cfdprojects is offline   Reply With Quote

Old   February 22, 2016, 01:17
Post
  #10
New Member
 
Madhup
Join Date: Feb 2016
Posts: 6
Rep Power: 10
cfdprojects is on a distinguished road
Now i applied staggered grid, please see w-velocity profile , i can see rolls still. Will they apper after long time ?
Attached Images
File Type: jpg W-velocity.jpg (52.3 KB, 16 views)
cfdprojects is offline   Reply With Quote

Old   February 22, 2016, 05:32
Default
  #11
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by cfdprojects View Post
Now i applied staggered grid, please see w-velocity profile , i can see rolls still. Will they apper after long time ?

from this plot I see still oscillations
FMDenaro is offline   Reply With Quote

Reply

Tags
finite difference method, fortran code, prandtl number, rayleigh-benard


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
Rayleigh Benard convection in a bottom heated square cavity arackal.rahul Main CFD Forum 2 June 30, 2015 09:14
Rayleigh benard afnene FLUENT 0 June 12, 2015 12:29
conservative finite differences and finite volumes Joachim Main CFD Forum 7 January 23, 2014 17:32
Is CFD coding in finite element method a formidable job? bearcat Main CFD Forum 0 June 18, 2010 21:53
Finite differences Zdravko Stojanovic Main CFD Forum 8 March 24, 2001 23:31


All times are GMT -4. The time now is 18:34.