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

Question about function objects

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2016, 23:06
Default Question about function objects
  #1
Member
 
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10
ce73stargazer is on a distinguished road
Hi there

I did a relative large simulation and its not convenient to view the results by clicking cells in paraview. So i did some research, finding out it may be better using function objects like forces or probes to extract the results.

Since its the first time for me using function objects, i do face some difficulties.

1. Can the function object be used after the simulation? Since i finished the simulation without defining any functions in controlDict and i really dont want to rerun the simulation, as it took me 16 days to do so.

2. After i defined the function object in controlDict, how could i make it working? like execute the results into a file.

3. Is it possible to define the probe location by typing the number of probes, the start point and end point and they are uniformly distributed rather than typing every single locations as show in the example.

Many Thanks
ce73stargazer is offline   Reply With Quote

Old   January 7, 2016, 09:14
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
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,

To shortly answer your questions:

1. & 2.: Yes, using execFlowFunctionObjects (although some functionObjects (scalarTransport comes to mind) will not give the expected output)
3. In that case sample seems more appropriate.

Regards,
Tom
tomf is offline   Reply With Quote

Old   January 7, 2016, 18:10
Default
  #3
Member
 
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 10
ce73stargazer is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi,

To shortly answer your questions:

1. & 2.: Yes, using execFlowFunctionObjects (although some functionObjects (scalarTransport comes to mind) will not give the expected output)
3. In that case sample seems more appropriate.

Regards,
Tom
Thanks for the reply.

Correct me if i am wrong, cz i am still a newbie.

I tried the sampling after i couldnt get function objects working. However, it seems the sampling gives results for certain point at certain time in a separate folder.

For instance, results of the location interested are given in folder 20, 40 etc..rather than in a single file like function object did.

Is there any way making the sampling for all time interval in a single file?
ce73stargazer is offline   Reply With Quote

Old   January 8, 2016, 02:22
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
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
Probably the best way would be to use some bash or python scripts for that (Use Google for some examples). If you want to do this stuff more often maybe adapt the OpenFOAM source code. Good luck.
tomf 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
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 04:06
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Variable deltaT and functionObjects henrik OpenFOAM Bugs 8 July 22, 2009 04:11


All times are GMT -4. The time now is 09:35.