|
[Sponsors] |
October 4, 2012, 08:41 |
Periodically ignore removal by purgeWrite
|
#1 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
Suppose I have the following settings in my controlDict
Code:
writeControl adjustableRunTime; writeInterval 0.02; purgeWrite 3; What I want to do now, is using the purgeWrite option, but keeping some more timesteps (or not removing them). Suppose I had a flag Code:
keepEach 1.0 1, 2, 3, 4, 5, 5.62, 5.64, 5.66 Any suggestions on how to do this? Is there such a flag, or should I put it as a feature request on the bugtracker? Last edited by Bernhard; October 4, 2012 at 08:42. Reason: typos |
|
October 8, 2012, 04:40 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
The purgeWrite code is defined in:/src/OpenFOAM/db/Time/TimeIO.C (318-326)
Code:
if (writeOK && purgeWrite_) { previousOutputTimes_.push(timeName()); while (previousOutputTimes_.size() > purgeWrite_) { rmDir(objectRegistry::path(previousOutputTimes_.pop())); } } With adding a dictionary input and an if-statement in the while loop, this can easily be implemented, I suppose. Is it possible to compile this into a library, and put it as a library in the controlDict, allowing to add the required flag? My impression is that the answer would be no, because I need to recompile the solver at least. Any hints on library linking is welcome here. |
|
October 10, 2012, 03:14 |
|
#3 | |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
I tried compiling some libmyOpenFOAM and without new changes, I compiled it with myIcoFoam. Now I get a conflict between libOpenFOAM and libmyOpenFOAM.
Quote:
I tried to compile myIcoFoam manually, by stripping the references to lOpenFOAM and src/OpenFOAM/lnInclude, but, without any success until now. Any hints to not use libOpenFOAM.so using wmake? |
||
August 19, 2022, 09:19 |
|
#4 |
New Member
Arun Pandey
Join Date: Aug 2022
Posts: 1
Rep Power: 0 |
I am trying to do this using secondaryWriteControl but have not succeeded yet. Have you got any solution?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to ignore conduction in a fluid zone? | bawfuls | FLUENT | 3 | August 11, 2011 21:50 |
layer removal only- OpenFOAM-1.5-dev | phsieh2005 | OpenFOAM Running, Solving & CFD | 0 | July 2, 2010 05:57 |
How to use the engine solvers with layer addition and removal | francesco | OpenFOAM Running, Solving & CFD | 2 | March 19, 2009 03:29 |
cell removal | john | Siemens | 0 | November 9, 2005 04:35 |
Mass removal and injection...Please help! | Kevin Till | Siemens | 27 | July 25, 2005 13:09 |