|
[Sponsors] |
October 26, 2011, 09:07 |
Limit amount of output
|
#1 |
New Member
Arve
Join Date: Sep 2011
Location: Norway
Posts: 8
Rep Power: 15 |
I am running a compressible LES simulation and I want to only save the p and U fields for each time step. Currently it saves all variables which quickly eats up my allocated storage.
Is this possible to do without changing the source code? I tried the "printCoeffs" variable and seeing no effect at all. |
|
January 29, 2015, 10:47 |
|
#2 |
Member
P.A.
Join Date: Mar 2009
Location: Germany
Posts: 83
Rep Power: 17 |
Hello Taltan,
did you solve that problem? I am looking for a solution to that myself. Best regards, Pascal. |
|
January 29, 2015, 11:00 |
|
#3 |
Senior Member
|
Hi,
There is partialWrite functionObject (see $FOAM_SRC/postProcessing/functionObjects/IO/partialWrite for more details). In controlDict you can set writeInterval to something quite large, while in partialWrite you choose necessary fields and set writeInterval to 1. |
|
January 29, 2015, 11:18 |
|
#4 |
Member
P.A.
Join Date: Mar 2009
Location: Germany
Posts: 83
Rep Power: 17 |
Hello alexeym,
that was a quick answer with the right keyword! So you mean something like that in the controlDict functions section: partialWrite { type partialWrite; functionObjectLibs ("libIOFunctionObjects.so"); outputControl outputTime; objectNames (U p k); outputInterval 1; // (timeStep, outputTime) //writeInterval 10.5; //(adjustableTime, runTime, clockTime, cpuTime) } That will give me ONLY U, p, k fields as output in every timestep? What will the last line do? The output timing is already set in the upper part of the controlDict! Cheers, Pascal. |
|
January 29, 2015, 11:27 |
|
#5 | ||
Senior Member
|
Hi,
Quote:
Quote:
|
|||
January 29, 2015, 12:03 |
|
#6 |
Member
P.A.
Join Date: Mar 2009
Location: Germany
Posts: 83
Rep Power: 17 |
Hello alexeym,
that does not seem to work, as I still get the full amount of fields written. I use OF 2.3.x. Here is my controlDict: libs ( "libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so" "libLEMOS-2.3.x.so" ); application pisoFoam; startFrom startTime; startTime 25.0; stopAt endTime; endTime 26; deltaT 0.0001; maxDeltaT 0.01; adjustTimeStep off; // on; maxCo 0.7; writeControl timeStep; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 12; writeCompression uncompressed; timeFormat general; timePrecision 12; runTimeModifiable false; functions { #include "readFields" partialWrite { type partialWrite; functionObjectLibs ("libIOFunctionObjects.so"); outputControl outputTime; objectNames (U p k); outputInterval 1; // (timeStep, outputTime) writeInterval 1; //(adjustableTime, runTime, clockTime, cpuTime) } } When I comment out writeInterval (as I understand it from your answer, because outputInterval is set to an integer), I get an error because of the missing writeInterval setting. And writeInterval has to be an integer, concluding from the error message if I set it to 1.5. What am I misunderstanding here? Thank you, Pascal. Edit: Even when I set writeInterval in controlDict to 10000, I still get the full set of files written each timestep. ??? |
|
January 29, 2015, 12:39 |
|
#7 |
Senior Member
|
Hi,
My bad It was just a guess. Was not able to make partialWrite work also. But writeRegisteredObject does the job quite nice: Code:
wro { type writeRegisteredObject; // Where to load it from functionObjectLibs ("libIOFunctionObjects.so"); // Execute upon options: // timeStep // outputTime // adjustableTime // runTime // clockTime // cpuTime outputControl timeStep; // Objects (fields or lagrangian fields in any of the clouds) // to write every outputTime objectNames (p); exclusiveWriting false; // Interval of time (sec) to write down( writeInterval 1; //(adjustableTime, runTime, clockTime, cpuTime) } |
|
January 30, 2015, 03:29 |
|
#8 |
Member
P.A.
Join Date: Mar 2009
Location: Germany
Posts: 83
Rep Power: 17 |
Hello alexeym,
that's it! Works perfectly! Thank you VERY much! Best regards, Pascal. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Questions about data output | aki_yafuji | OpenFOAM Running, Solving & CFD | 3 | September 9, 2010 02:59 |
lift and drag on ship superstructures | vaina74 | OpenFOAM Running, Solving & CFD | 3 | June 8, 2010 13:30 |
[Other] Output Format of MetaMesh | t42 | OpenFOAM Meshing & Mesh Conversion | 0 | August 3, 2007 05:28 |
can "output control " output Nu in expression? | prayskyer | CFX | 3 | July 7, 2006 20:37 |
Help with DPM UDF for OUTPUT needed | Zhengcai Ye | FLUENT | 0 | January 5, 2004 17:58 |