|
[Sponsors] |
Difference between Utility functions and function objects |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 7, 2015, 23:25 |
Difference between Utility functions and function objects
|
#1 |
New Member
Aditya D S N
Join Date: Oct 2011
Posts: 5
Rep Power: 14 |
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 |
|
July 9, 2015, 03:56 |
|
#2 |
Senior Member
|
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 |
|
July 30, 2015, 06:50 |
|
#3 |
Member
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12 |
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 |
|
July 30, 2015, 07:38 |
|
#4 |
Senior Member
|
Hi Rafa,
You can modify the controlDict after the run to include the functionObjects of your choice and than run Code:
execFlowFunctionObjects -latestTime Code:
util cd postProcessing Tom |
|
July 30, 2015, 12:34 |
|
#5 |
Member
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12 |
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 |
|
|
|
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 03:45 |
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! | zfaraday | OpenFOAM Post-Processing | 0 | February 5, 2015 16:47 |
Difference MassFlow Function, AreaInt and AreaIntAbs | eRzBeNgEl | CFX | 7 | March 22, 2011 09:07 |
Could you please help me about the VTKFoam | liugx212 | OpenFOAM Pre-Processing | 5 | February 13, 2008 11:31 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 08:23 |