CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   PostProcessing folder not updated on convergence (https://www.cfd-online.com/Forums/openfoam-post-processing/229016-postprocessing-folder-not-updated-convergence.html)

b.simpson July 23, 2020 09:22

PostProcessing folder not updated on convergence
 
Hi,

My OpenFOAM model is writing data at the defined writeTime in my controlDict but it is not writing the final simulation data to the PostProcessing folder when the convergence criteria is met. Does anyone have any idea what is causing this?

For information, I am running buoyantSimpleFoam using the OpenFOAM-dev version. I have several volFieldValue, fieldMinMax and surfaces called in my functionObjects. In my last simulation run, these were writen to the PostProcessing folder at times 1000, 2000, and 3000 but not when the simulation converged at time 3917.

Below is my controlDict:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  dev
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application    buoyantSimpleFoam;

startFrom      startTime;

startTime      0;

stopAt          endTime;

endTime        7000;

deltaT          1;

writeControl    timeStep;

writeInterval  1000;

purgeWrite      1;

writeFormat    ascii;

writePrecision  8;

writeCompression off;

timeFormat      general;

timePrecision  6;

runTimeModifiable true;

/*libs (
      "libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
    );*/

functions
{
        #include "surfaces"
       
        fieldMinMax
          {
                type                fieldMinMax;
                libs                                  ("libfieldFunctionObjects.so");
                log                yes;
                writeControl              writeTime;
                //writeInterval              1;
                //mode              magnitude;
                fields                    ( U p T rho CO2);
          }
         
        CO2
                {
                        type                            scalarTransport;
                        libs                                ("libsolverFunctionObjects.so");
                        writeControl              timeStep;
                        writeInterval              1;
                        active                  true;
                        autoSchemes            false;
                        nCorr                  0;
                        resetOnStartUp                false;
                        field                                CO2;
                        fvOptions     
                        {
                       
                        }
                }
               
        comfortAnalysis
                {
                        type            comfort;
                        libs            ("libfieldFunctionObjects.so");
                       
                        metabolicRate        1.2;
                        clothing                0.9;
                        extWork                        0.0;

                        executeControl  writeTime;
                        writeControl    writeTime;

                }
               
        /*modelAverages
                {
                        type            volFieldValue;
                        libs            ("libfieldFunctionObjects.so");
                        log                                true;
                        writeControl    writeTime;
                        writeFields                true;
                       
                        source                        all;
                       
                        operation                volAverage;

                        fields
                        (
                                T
                                CO2
                                U
                        );
                }*/
               
        breathingZoneAverages
                {
                        type            volFieldValue;
                        libs            ("libfieldFunctionObjects.so");
                        log                                true;
                        writeControl    writeTime;
                        writeFields                true;
                       
                        regionType                cellZone;
                        name                        breathingZone;
                       
                        operation                volAverage;

                        fields
                        (
                                T
                                CO2
                                U
                                PMV
                                PPD
                        );
                }
       
        spaceAverage
                {
                        type            volFieldValue;
                        libs            ("libfieldFunctionObjects.so");
                        log                                true;
                        writeControl    writeTime;
                        writeFields                true;
                       
                        regionType                cellZone;
                        name                        spaceZone;
                       
                        operation                volAverage;

                        fields
                        (
                                T
                                CO2
                                U
                        );
                }
               
        /*testAverage
                {
                        type            volFieldValue;
                        libs            ("libfieldFunctionObjects.so");
                        log                                true;
                        writeControl    writeTime;
                        writeFields                true;
                       
                        regionType                cellZone;
                        name                        localTest;
                       
                        operation                volAverage;

                        fields
                        (
                                T
                                CO2
                        );
                }*/
}

// ************************************************************************* //

Thank you in advance for any support you can provide me with solving this issue.

Kind regards,
Ben


All times are GMT -4. The time now is 07:49.