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

save the fields using a different frequency

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2014, 10:00
Default save the fields using a different frequency
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear All,

I would like to make some quantities saved as a high frequency, e.g. 25 time step for each writing, while others 100 time step. This is because some quantities are more important in terms of unsteady variations.

I found that in openfoam, in the run-time post-processing
Code:
partialWrite:
allows registered objects, e.g. fields, to be written at different times (frequencies).
But I do not how set up in this calcualtions. Does anybody know how to perform that? do you have any other ideas about realizing this target?

Thank you very much.
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   July 22, 2014, 08:11
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
Hello,

You should define this in your ControlDict file, at the end, like this:
Code:
functions
{
the_name_you_want
{
type partialWrite;
functionObjectLibs ("libIOFunctionObjects.so");
objectNames (p U T); // the fields you want to write here
writeInterval 25;// freq of write
}
}
regards,
olivier
olivierG is offline   Reply With Quote

Old   July 22, 2014, 08:34
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Thank you.

I tried your suggestion in the tutorial in compressible/rhoPimpleFoam/les/pitzDaily

If write pressure as the in the following item:

Code:
objectNames (p);
The original in controlDict is 100, and the frequency for saving p is 50. Then I found that for all the time instants only contan p, all other variables are excluded. Did you have this problem? or I neglected something? Thanks.
openfoammaofnepo is offline   Reply With Quote

Old   July 22, 2014, 09:45
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

Yes this is the behaviour of partialWrite. It delete all entries except those selected.
If you wan U and T each 100 iterate, you may try to add another function obsject, like:
functions
{
func1
{
type partialWrite;
objectNames (p)
writeInterval 25;
}
func2
{
type partialWrite;
objectNames (p U T);
writeInterval 100;
}
}

NB: not tested.

regards,
olivier
olivierG 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
Very quick - Journal file command to save monitors lcaBR FLUENT 2 October 18, 2022 12:26
multiphaseEulerFoam: efficient way of implementing fields for all phases maybee OpenFOAM Programming & Development 0 January 23, 2014 04:16
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


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