|
[Sponsors] |
October 5, 2009, 09:27 |
divergence
|
#1 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF divergence of a vector | cris | FLUENT | 3 | September 4, 2014 19:06 |
Divergence problem for species transport model | MY | FLUENT | 3 | January 11, 2014 05:46 |
Role of divergence | shekharc | Main CFD Forum | 7 | July 5, 2005 13:08 |
divergence in MAC Method | Maciej Matyka | Main CFD Forum | 2 | December 19, 2000 11:43 |
help:spectral methods & divergence free functionsn | D. Puigjaner | Main CFD Forum | 1 | August 28, 2000 11:06 |