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

How to calculate velocity componentes during runtime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2013, 08:22
Default How to calculate velocity componentes during runtime
  #1
New Member
 
Join Date: Dec 2012
Posts: 7
Rep Power: 13
CFD_Monkey is on a distinguished road
Dear Foamers,

one short question:
Is it possible to calculate velocity components via funciton object during runtime? (Just as it can be done for postprocessing by "foamCalc components U" )

Thx!
CFD_Monkey is offline   Reply With Quote

Old   November 8, 2013, 17:45
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by CFD_Monkey View Post
Dear Foamers,

one short question:
Is it possible to calculate velocity components via funciton object during runtime? (Just as it can be done for postprocessing by "foamCalc components U" )
Can't rule out that there is a functionObject in OF that does it. I do it with an expression "U.x" in the expressionField-functionObject of swak4Foam. But I'm extremly biased in that matter
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 2, 2018, 13:29
Default
  #3
Member
 
Join Date: Oct 2013
Posts: 92
Rep Power: 12
fedvasu is on a distinguished road
Quote:
Originally Posted by CFD_Monkey View Post
Dear Foamers,

one short question:
Is it possible to calculate velocity components via funciton object during runtime? (Just as it can be done for postprocessing by "foamCalc components U" )

Thx!
In OF 5 and below you have

Code:
foamCalc -components U
This does it for all the times, you can specify using -time flag a specific time.

In OF 6 it is

Code:
postProcess -func "components(U)"

Last edited by fedvasu; October 2, 2018 at 13:34. Reason: Add additional information
fedvasu is offline   Reply With Quote

Reply


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
LES and TKE calculations MST Main CFD Forum 3 May 30, 2016 06:26
how to calculate rms velocity fluctuation after runtime nati OpenFOAM Post-Processing 6 February 7, 2013 08:42
How to calculate the gradient of pressure and velocity diegosene OpenFOAM 2 September 28, 2011 09:03
calculate the average velocity of particles robert FLUENT 0 August 1, 2008 09:44
how to calculate a scale velocity in vectors ladypowel FLUENT 0 May 8, 2007 18:40


All times are GMT -4. The time now is 10:19.