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

Adding volumetric Source Term

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2009, 22:00
Default Adding volumetric Source Term
  #1
New Member
 
Mohanamuraly
Join Date: May 2009
Posts: 16
Rep Power: 8
mohanamuraly is on a distinguished road
I am trying to add volumetric source terms to the momentum equation in OpenFOAM. I created a

// S is the source term
volVectorField S;

I have specific points in the domain where I want to add the sources. I basically use the function:

cell_label = mesh.findCell(point[i]);

I need to set the source value at this cell_label which I calculate based on the velocity value at the cell center.

My question is how do I obtain the velocity at the cell center (of cell_label) and how to add the source term at the cell_label location in S. It was tough search the forums and C++ programmer ref got nothing so far.

appreciate your help very much,
mohanamuraly is offline   Reply With Quote

Reply

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
momentum source term zwdi FLUENT 13 December 5, 2013 18:58
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
Adding a volumetric source term in femlab BS Main CFD Forum 1 December 28, 2006 21:26
Adding a momentum source term segersson OpenFOAM Running, Solving & CFD 5 March 3, 2006 00:06


All times are GMT -4. The time now is 23:07.