CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Obtaining velocity components

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes
  • 9 Post By kmurphy
  • 1 Post By luca_g
  • 1 Post By srinath
  • 1 Post By luca_g
  • 1 Post By linch

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 8, 2008, 03:03
Default Obtaining velocity components
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17
srinath is on a distinguished road
Hello

This is rather trivial, but for some reason i can't seem to get this line to work.
volScalarField vx = U.x();
The compilation error i get is
error: 'struct Foam::volVectorField' has no member named 'x'

Could someone tell me the right way to get velocity components?

Thanks
Srinath
srinath is offline   Reply With Quote

 


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
What are the UVW velocity components Nikunj FLUENT 2 January 12, 2022 12:28
Velocity Components in foamDataToFluent flavio_pergolesi OpenFOAM Post-Processing 1 November 9, 2009 09:27
Obtaining Mean Velocity Sing FLUENT 2 January 27, 2007 08:28
How to specify velocity components in UDF Ynot FLUENT 1 March 11, 2006 13:53
Velocity components visualization Sileno Phoenics 1 September 28, 2005 12:06


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