|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 93
Rep Power: 6 ![]() |
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 | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Divergence problem for species transport model | MY | FLUENT | 2 | July 10, 2012 09:18 |
| UDF divergence of a vector | cris | FLUENT | 2 | June 8, 2010 11:55 |
| 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 |