|
[Sponsors] |
May 17, 2009, 23:00 |
Adding volumetric Source Term
|
#1 |
New Member
Mohanamuraly
Join Date: May 2009
Posts: 18
Rep Power: 17 |
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, |
|
|
|
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 |