|
[Sponsors] |
March 26, 2012, 11:29 |
multiplication of scalar and volVectorField
|
#1 |
Member
Join Date: Jun 2011
Posts: 42
Rep Power: 14 |
Hi,
I use following two methods in order to get the multiplication of Reynolds number and drag coefficient. (Drag coefficient, Cd, here is assumed constant scalar here for convenience) Code:
Re = (magUr*dp*rhoa)/mua; CdRe = 0.5*Re; Code:
Re = (magUr*dp*rhoa)/mua; forAll (Re, celli) { CdRe[celli] = 0.5*Re[celli]; } However, when I use these two code parts, I get different velocity field results at the end. Are these two code parts exactly the same? or can they give different results when I, let's say, interpolate them? Last edited by mikeP; March 27, 2012 at 04:13. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Climbing inlet pressure with simpleFoam and directMappedPatches | chegdan | OpenFOAM Running, Solving & CFD | 1 | January 2, 2012 19:35 |