CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Boundary condition, incompressible colocated code

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

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

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, 6 views)
Simbelmynė is offline   Reply With Quote


code, colocated, incompressible

Thread Tools
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 On
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 18:58.