CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Different velocity write method results in different readings (https://www.cfd-online.com/Forums/openfoam-solving/166337-different-velocity-write-method-results-different-readings.html)

f0208secretx February 7, 2016 03:05

Different velocity write method results in different readings
 
I noticed that using the following function call to dump velocity will give a slightly different reading than the normal write (which is controlled by the keyword "writeInterval" in the dict). I assume its because one is done before and the other is done after the current iteration? Can someone with more experience answer this? I don't want to write all the fields because in my postprocessing I only need velocity. Thanks.

Version is OF2.4.0 on Ubuntu.

Code:

functions
{
    velocityDump
    {
        type                writeRegisteredObject;
        functionObjectLibs  ("libIOFunctionObjects.so");
        //outputControl        outputTime;
        //outputInterval      1;
        outputControl      adjustableTime;
        writeInterval      0.0001;
        objectNames
            (
            "U"
            );
    }
}


f0208secretx February 8, 2016 15:24

I wonder if anyone has some insights about this?


All times are GMT -4. The time now is 06:55.