|
[Sponsors] | |||||
Why does accessing a zeroGradient patch return (0 0 0) for a volVectorField |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 24 ![]() |
If a patch is zeroGradient, why does accessing a volVectorField return (0 0 0)? This doesn't happen with a volScalarField. In other words:
Info << someVolScalarField.boundaryField()[patchID] << endl; will give something non-zero. Info << someVolVectorField.boundaryField()[patchID] << endl; will give n(0 0 0).
__________________
Laurence R. McGlashan :: Website |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |
| CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |
| Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
| [Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |
| Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |