CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Starting field averaging using libFunctionObject after certain time

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 7, 2013, 11:51
Default solution to non updating trackDict
  #21
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 122
Rep Power: 9
eelcovv is on a distinguished road
The answer can be found in the function object source code: the fileModificationSkew si not allowed to be too large. Just create a directory

$HOME/.OpenFOAM/2.2.x

or what ever you version is, copy $WM_PROJECT_DIR/etc/controlDict to this directory and modify the line

fileModificationSkew 30 to something smaller.

Then an update of a dictionary being tracked will result in a reread of it.

Regards
Eelco
eelcovv is offline   Reply With Quote

Old   May 15, 2013, 16:06
Default reread the subdictionaries from an regIOobject
  #22
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 122
Rep Power: 9
eelcovv is on a distinguished road
One more question on this topic

When a dictionary is re-read after an file-update, only the content at the 'top-level is read, not the sub-dictionaries. This can be seen in the file

$FOAM_SRC/OpenFOAM/db/regIOobject/regIOobjectRead.C, line 285-292. It says: reread object name(), which is the name of the dictionary.

however, sometimes you want to read the subdictionaries as well. For instance in kinematicCloudProperties, you want to update the mass flow rate of the injectors by modifying the file during the run.

Is there an easy way to force OF to re-read the subdictionaries during a run ?

Well, not so important, but it would be handy

Thanks for the hints!
Regards
Eelco
eelcovv is offline   Reply With Quote

Old   November 19, 2014, 09:53
Default
  #23
Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 53
Rep Power: 3
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello Everyone

I am beginner in OpenFoam, may be my question looks very busy, I am sorry for that.
I am using fieldAverage to get time-averaged of velocity. I get the time-averaged file in respective time step folder but I don't know how can I view this average field using paraview. When I load my case to paraview, it shows only entities which are present in "0" folder. It does not show averaged field i.e. UMean

Regards
Waqas
mwaqas is offline   Reply With Quote

Reply

Tags
libutilityfunctionobjects, swak4foam, timeactivatedfileupdate, trackdictionary

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
TwoPhaseEulerFoam and Boundary conditions raagh77 OpenFOAM Running, Solving & CFD 98 September 23, 2013 06:31
Field averaging in a certain time interval misakagan OpenFOAM Running, Solving & CFD 1 December 11, 2009 06:39
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 25 December 7, 2000 16:25


All times are GMT -4. The time now is 14:08.