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

divergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2009, 08:27
Default divergence
  #1
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Hi,
I want to create a volumeScalar field with the value for the divergence
of a quantity S*V where S is a scalar and V a vector (velocity).
For this I do

phiS = linearInterpolate(S*V)&mesh.Sf();
forAll(mesh.cells()cellI){
netFluxVol[cellI] = 0.0;
forAll(mesh.cells()[cellI],iface)
{
netFluxVol[cellI]+=phiS[iface]
}
}
Is this right?
many thanks,
Radu
r2d2 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
UDF divergence of a vector cris FLUENT 3 September 4, 2014 18:06
Divergence problem for species transport model MY FLUENT 3 January 11, 2014 04:46
Role of divergence shekharc Main CFD Forum 7 July 5, 2005 12:08
divergence in MAC Method Maciej Matyka Main CFD Forum 2 December 19, 2000 10:43
help:spectral methods & divergence free functionsn D. Puigjaner Main CFD Forum 1 August 28, 2000 10:06


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