CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Adding source term to u eq

Register Blogs Community New Posts Updated Threads Search

Like Tree15Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 14, 2008, 03:24
Default hi everybody, me again with a
  #1
Member
 
robert maduta
Join Date: Mar 2009
Posts: 33
Rep Power: 17
roberthino is on a distinguished road
hi everybody, me again with a problem :-)
i now try to run my rans channel flow with cyclic boundary conditions, therefor i have to ad an extra term to the u eq in simpleFoam.C to keep a constant pressure gradient along the channel.
i really dont have a clue how to modify the u eq. i tried to do it like this:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ 0.018
);

where 0.018 is the constant. this isnt working and it isnt compiling. maybe someone can help and tell me how to exactly implement the term.
thx
greetings robert
roberthino 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
Adding Source term of a new field at the inlet vatant OpenFOAM Running, Solving & CFD 0 October 14, 2006 15:42
Adding Source term of a new field at the inlet vatant OpenFOAM Running, Solving & CFD 0 October 14, 2006 15:39
Adding a momentum source term segersson OpenFOAM Running, Solving & CFD 5 March 2, 2006 23:06
Adding a source term to continuity eqn(UDF) Sebeci FLUENT 0 April 20, 2003 03:12
adding source term confusion tedmcc CFX 4 September 27, 2001 05:05


All times are GMT -4. The time now is 10:35.