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

How to force function object writing only to a file?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2021, 09:19
Default How to force function object writing only to a file?
  #1
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi
Is it possible to set a function object (e.g. wallHeatFlux) to be written as field into

time directories only at prescribed times and written to the file more frequently?
For instance, if I have in controlDict
Code:
application     rhoPimpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1;

deltaT          0.01;

writeControl    runTime;

writeInterval   0.1;
and in the wallHeatFlux function object
Code:
functions
{
HF
{
    type            wallHeatFlux;
    libs            ("libfieldFunctionObjects.so");
   
    patches     (movingWall); // (wall1 "(wall2|wall3)");
 
    writeToFile     true;

    executeControl  timeStep;
    executeInterval 1;
    writeControl    writeTime;
}
}
the HF will be written each 0.1 s to the time directories 0.1, 0.2, ....
But in the postProcessing directory the output will also be only written in these
times.



Is it possible to set HF to be written in time directories only at writeTime
and writing to the file in postProcessing directory more frequently?
__________________
best regards
pblasiak
gaza 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


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