CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Why does accessing a zeroGradient patch return (0 0 0) for a volVectorField

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2010, 13:27
Default Why does accessing a zeroGradient patch return (0 0 0) for a volVectorField
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
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
l_r_mcglashan is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 17:08
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 02:34
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12

All times are GMT -4. The time now is 12:39.