CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Any library to calculate <u'> ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 23, 2013, 19:15
Exclamation Any library to calculate <u'> ?
  #1
Senior Member
 
atmcfd's Avatar
 
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 8
atmcfd is on a distinguished road
Hi all,

I need to calculate u' ( i.e. (Umean - U) ) for all times and then want to calculate average <u'> . All this is needed for a simulation already completed ..i.e as a postprocessing job. Does OpenFOAM have any libraries to do this?

Thank you.

Atm
atmcfd is offline   Reply With Quote

Old   March 24, 2013, 06:55
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by atmcfd View Post
Hi all,

I need to calculate u' ( i.e. (Umean - U) ) for all times and then want to calculate average <u'> . All this is needed for a simulation already completed ..i.e as a postprocessing job. Does OpenFOAM have any libraries to do this?

Thank you.

Atm
Hm. u' I'd do with funkySetFields (assuming you mean with Umean "volume weighted average"):

funkySetFields -create -field Udev -time 0: -expression "U-sum(vol()*U)/sum(vol())"

For averaging those I must admit I'm currently not aware of a readymade solution
__________________
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   March 24, 2013, 14:33
Default
  #3
Senior Member
 
atmcfd's Avatar
 
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 8
atmcfd is on a distinguished road
Bernhard,

By UMean, I refer to the "UMean" file which is the time averaged velocity which I get in the time step folder after the fieldAveraging library is used. So I want to do U (file in the folder) - UMean to get u' , v' and w' for every time step.

Then , if possible obtain time averaged quantities <u'>, <v'> and <w'>.

Can funkyset do this?

Thanks !

Atm
atmcfd is offline   Reply With Quote

Old   March 24, 2013, 17:58
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by atmcfd View Post
Bernhard,

By UMean, I refer to the "UMean" file which is the time averaged velocity which I get in the time step folder after the fieldAveraging library is used. So I want to do U (file in the folder) - UMean to get u' , v' and w' for every time step.
This is trivial: if there is a field-file of that name in the time-directory then FSF can access it. The expression is simply "U-UMean"

Quote:
Originally Posted by atmcfd View Post
Then , if possible obtain time averaged quantities <u'>, <v'> and <w'>.

Can funkyset do this?
Not 100% sure: it might be possible if the expression is read from a dictionary (instead of the command line) together with storedVariables. But I'd have to test that
__________________
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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi species mass transport library [update] novyno OpenFOAM 80 June 21, 2015 16:43
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 12:51
problem loading UDF library in parallel cluster Veera Gutti FLUENT 7 July 3, 2011 09:15
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49
Help! I cann't make library Bowling FLUENT 5 May 12, 2004 04:56


All times are GMT -4. The time now is 13:04.