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

Adding volumetric Source Term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2009, 23:00
Default Adding volumetric Source Term
  #1
New Member
 
Mohanamuraly
Join Date: May 2009
Posts: 18
Rep Power: 17
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


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
momentum source term zwdi FLUENT 14 June 27, 2017 16:40
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
Adding a volumetric source term in femlab BS COMSOL 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 15:54.