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

Boundary condition, incompressible colocated code

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2012, 03:10
Default Boundary condition, incompressible colocated code
  #1
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
Hello,

I have written a simple FDM 1d colocated code with the nodes coinciding with boundaries. I have attached the code (it is C/C++).

My question is about the velocity derivatives that I need from outside the inlet boundary. I try to derive an expression based on the (normal) momentum equation but this does not work. If I just extrapolate the derivatives from the first interior node to the boundary node then everything works perfect. However, I do not understand why this is the case. Perhaps someone can point out what I am doing (or thinking) wrong?

Thank you.
Attached Files
File Type: c colocated1d.c (3.1 KB, 10 views)
Simbelmynė is offline   Reply With Quote

Reply

Tags
code, colocated, incompressible

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
How to set the Heat Flux boundary condition at Outlet creddy_trddc CFX 3 September 21, 2011 07:44
boundary condition for flat plate Ardalan Main CFD Forum 0 June 18, 2010 17:49
SymmetryPlane Boundary Condition raytracer OpenFOAM Running, Solving & CFD 0 July 11, 2008 17:04
Rotating interpolated boundary condition hani OpenFOAM Running, Solving & CFD 0 July 4, 2006 07:09
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


All times are GMT -4. The time now is 03:46.