CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

moveDynamicMesh disobey my writeControl settings

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2021, 14:23
Unhappy moveDynamicMesh disobey my writeControl settings
  #1
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
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:
Screenshot from 2021-08-29 20-20-28.png Names of folders are close to magnitudes of 0.1 but why is there small error? Any idea?
Regards


Last edited by ordinary; August 29, 2021 at 17:05.
ordinary is offline   Reply With Quote

Reply

Tags
dynamic, overset, runtime, transient, write control

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply AMR settings kahjoonyong CONVERGE 11 July 28, 2017 05:18
Lift and Drag coeff change with V 16 and 13 PISO for same mesh file and same settings arunraj FLUENT 0 June 2, 2016 23:43
Fluid-Solid Interface Settings for a Rotating Water Container r.mojtaba CFX 4 October 14, 2013 20:01
Settings in Solver Control Roland R CFX 1 October 12, 2011 07:44
thermoBaffleProperties object settings calim_cfd OpenFOAM 0 October 4, 2011 11:17


All times are GMT -4. The time now is 15:54.