|
[Sponsors] |
September 21, 2013, 10:18 |
Log-time writeInterval for PimpleFoams
|
#1 |
Senior Member
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 18 |
Hi,
I am running buoyantbBoussinesqPimplefoam and would like to use writeInterval values in my controlDict that are not linear but grow in log-10 scale. How do I do this? Thanks in advance |
|
September 23, 2013, 17:45 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Jose,
I know that the latest 2.2.x has some new feature that allows controlling the write interval... or some time interval... it's this commit: https://github.com/OpenFOAM/OpenFOAM...f57922bec7b80b The "partialWrite" function object looks like it might work. And I vaguely remember seeing a tutorial that used the "#codeStream" feature for defining the time with C++ code... but I can't remember which one was it. If you don't figure it out until then, I'll try to have a look at it this coming weekend. Best regards, Bruno
__________________
|
|
September 28, 2013, 12:23 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Jose,
OK, interesting find... write internal cannot be controlled directly through code, because there isn't a method for it in the "Time" class: http://foam.sourceforge.net/docs/cpp/a02301.html But you can change the "deltaT"... and initial and end time... So, how else can you do this? There are two ways I can think of:
Code:
fileUpdate1 { type timeActivatedFileUpdate; functionObjectLibs ("libutilityFunctionObjects.so"); outputControl timeStep; outputInterval 1; fileToUpdate "$FOAM_CASE/system/controlDict"; timeVsFile ( (-1 "$FOAM_CASE/system/controlDict.0") (1 "$FOAM_CASE/system/controlDict.1") (10 "$FOAM_CASE/system/controlDict.10") (100 "$FOAM_CASE/system/controlDict.100") (1000 "$FOAM_CASE/system/controlDict.1000") ); } In order to not need to have this function object included in all "controlDict" files, as exemplified in the tutorial "incompressible/simpleFoam/motorBike". Best regards, Bruno
__________________
|
|
Tags |
controldict, log, openfoam, pimplefoam, writeinterval |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |