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

Difference between Utility functions and function objects

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

Like Tree3Likes
  • 1 Post By tomf
  • 2 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2015, 00:25
Default Difference between Utility functions and function objects
  #1
New Member
 
Aditya D S N
Join Date: Oct 2011
Posts: 5
Rep Power: 12
adityadsn is on a distinguished road
Hi everyone,

I was wondering what is the major difference and advantage of fucntion objects over utility functions.?

I understand that function objects are executed during the solution and utility can be done after the simulation. But there are functions such as wallshearstress and etc that are available in both the methods.

So can someone throw some light on why both of them exist and what are the benefits? and when a specific method has to be used.

Thanks in advance!!

Regards
adityadsn is offline   Reply With Quote

Old   July 9, 2015, 04:56
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 586
Rep Power: 28
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

Most utilities have been there before the functionObject structure was created. When the functionObjects were created, some of these utilities have been added to the structure so they could indeed be used at runtime instead of only as postprocessing. This makes it a bit more easy to have all your files already at the end of the run. This should be the only difference. So if you need the utility at runtime, or you do not want to run additional post-processing steps after the run use the functionObject, if you rather do post-processing after the run (say only on the last timestep) use the utility.

Regards,
Tom
David* likes this.
tomf is offline   Reply With Quote

Old   July 30, 2015, 07:50
Default
  #3
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 9
rafa13 is on a distinguished road
Hi everbody,

I am a newbe and I am wondering if it is possible to run a function after running a case, by creating a dict or somthing?



greets

Rafa
rafa13 is offline   Reply With Quote

Old   July 30, 2015, 08:38
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 586
Rep Power: 28
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Rafa,

You can modify the controlDict after the run to include the functionObjects of your choice and than run

Code:
execFlowFunctionObjects -latestTime
There are also separate postprocessing utilities that can do some postprocessing. You can find them by:

Code:
util
cd postProcessing
Regards,
Tom
pOverlord and rafa13 like this.
tomf is offline   Reply With Quote

Old   July 30, 2015, 13:34
Default
  #5
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 9
rafa13 is on a distinguished road
Hi Tom,

thanks alot for the fast reply, at the moment i didn try it ,becaus i am still running the case and i want to test your method right after the solving!


Greets and thanks again!

Rafa
rafa13 is offline   Reply With Quote

Reply

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
[mesh manipulation] objectRegistry error with Postprocessing Function Objects iuginio OpenFOAM Meshing & Mesh Conversion 5 June 30, 2021 04:45
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! zfaraday OpenFOAM Post-Processing 0 February 5, 2015 17:47
Difference MassFlow Function, AreaInt and AreaIntAbs eRzBeNgEl CFX 7 March 22, 2011 10:07
Could you please help me about the VTKFoam liugx212 OpenFOAM Pre-Processing 5 February 13, 2008 12:31
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23


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