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/)
-   -   moveDynamicMesh disobey my writeControl settings (https://www.cfd-online.com/Forums/openfoam-solving/238205-movedynamicmesh-disobey-my-writecontrol-settings.html)

ordinary August 29, 2021 13:23

moveDynamicMesh disobey my writeControl settings
 
1 Attachment(s)
Hello,

I try to run a dynamic case of overset method which requires moveDynamicMesh to be run first. However it doesn't obey my time settings. As you can see I set it to be runTime. So that means I expect OpenFOAM to generate files 0.1, 0.2, 0.3 so on.

Code:

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


libs            ("liboverset.so");

DebugSwitches
{
    overset                0;  //0 off - 1 give more information
    dynamicOversetFvMesh    0;
    cellVolumeWeight        0;
    inverseDistance    0;  //2 Force dumping of cellInterpolationWeight
}



application    overPimpleDyMFoam;

startFrom      startTime;

startTime      0;

stopAt          endTime;
//stopAt          writeNow;

endTime        55.217;  //10 periyot değil 30 periyot 55.217

//deltaT          0.05;
deltaT          0.0061352;  //periyot/300 = 0.006135333

writeControl    runTime; //timeStep, runTime, adjustableRunTime

writeInterval  0.1;

purgeWrite      0;

writeFormat    ascii;

writePrecision  8;

writeCompression off;

timeFormat      general;

timePrecision  6;

runTimeModifiable true;

adjustTimeStep  no;
//adjustTimeStep  yes;
//maxCo          0.9;
//maxDeltaT      0.1;



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


functions
{

///////////////////////////////////////////////////////////////////////////
    inMassFlow
    {
        type            surfaceFieldValue;

        libs ("libfieldFunctionObjects.so");
        enabled        true;

    writeControl  timeStep;
    writeInterval  1;

        log            true;

        writeFields    false;

        regionType          patch;
        name      inlet;

    operation      sum;
        fields
        (
            phi
        );
    }
///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////
    outMassFlow
    {
        type            surfaceFieldValue;

        libs ("libfieldFunctionObjects.so");
        enabled        true;

    writeControl  timeStep;
    writeInterval  1;

        log            yes;

        writeFields    false;

        regionType          patch;
        name      outlet;

    operation      sum;
        fields
        (
            phi
        );
    }
///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////

    fieldAverage
    {
        type            fieldAverage;
        libs ("libfieldFunctionObjects.so");
        enabled        false;
        writeControl  outputTime;

    //writeControl  timeStep;
    //writeInterval  100;

    //cleanRestart true;

    //timeStart      20;
    //timeEnd        200;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////

    forces_object
    {
    type forces;
    libs ("libforces.so");

    //writeControl outputTime;
    writeControl  timeStep;
    writeInterval  1;

    //// Patches to sample
    //patches ("body1" "body2" "body3");
    patches ("airfoil");

    //// Name of fields
    pName p;
    Uname U;

    //// Density
    rho rhoInf;
    rhoInf      998.2;

    //// Centre of rotation
    CofR (0 0 0);
    }

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////

    forceCoeffs_object
    {
    // rhoInf - reference density
    // CofR - Centre of rotation
    // dragDir - Direction of drag coefficient
    // liftDir - Direction of lift coefficient
    // pitchAxis - Pitching moment axis
    // magUinf - free stream velocity magnitude
    // lRef - reference length
    // Aref - reference area
    type forceCoeffs;
    libs ("libforces.so");
    //patches ("body1" "body2" "body3");
    patches (airfoil);

    pName p;
    Uname U;
    rho rhoInf;
    rhoInf 998.2;

    //// Dump to file
    log true;

    CofR (0.0 0 0);
    liftDir (0 1 0);
    dragDir (1 0 0);
    pitchAxis (0 0 1);
    magUInf 1.0;
    lRef 1.0;        // reference lenght for moments!!!
    Aref 0.00039675;  // wingspan area = span*chord = 0.005*0.07935

        writeControl  timeStep;
        writeInterval  1;
    }

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////

    minmaxdomain
    {
    type fieldMinMax;
    //type banana;

    libs ("libfieldFunctionObjects.so");

    enabled true;

    mode component;

    writeControl timeStep;
    writeInterval 1;

    log true;

    fields (p U);
    }

///////////////////////////////////////////////////////////////////////////

};

But instead of folders named 0.1, 0.2, I see those:
Attachment 86085 Names of folders are close to magnitudes of 0.1 but why is there small error? Any idea?
Regards

https://www.cfd-online.com/Forums/da...AAAElFTkSuQmCC


All times are GMT -4. The time now is 22:38.