CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Meaning of outputime, outputcontrol timestep, outputinterval what do all this mean? (http://www.cfd-online.com/Forums/openfoam-post-processing/122898-meaning-outputime-outputcontrol-timestep-outputinterval-what-do-all-mean.html)

musahossein August 30, 2013 22:56

Meaning of outputime, outputcontrol timestep, outputinterval what do all this mean?
 
Dear all:

I am referencing libforces.so in my controldict. However I need to know how to preset the output. Currently, my write interval is set to 0.05 and I would like the force output to be at the same time. How do I do it? How do I set outputTime and output interval so the output is at 0.05 increments?

Thanks in advance.
Code:

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

application    interDyMFoam;

startFrom      startTime;

startTime      0;

stopAt          endTime;

endTime        48;

deltaT        0.001;

writeControl    adjustableRunTime;

 writeInterval  0.05;

purgeWrite      0;

writeFormat    ascii;

writePrecision  6;

writeCompression compressed;

timeFormat      general;

timePrecision  6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo          0.5;
maxAlphaCo  0.5;

maxDeltaT      1;

functions
{

      wallPressure
      {
        type            surfaces;
        functionObjectLibs ("libsampling.so");
        outputControl  outputTime;
        surfaceFormat  raw;
        fields    ( alpha1
                  p
            );
    interpolationScheme cell;
        surfaces
        (
            leftwalls
            {
                type        patch;
                patches    (leftWall);
        interpolate true;
                triangulate false;
            }
        rightwalls
            {
                type        patch;
                patches    (rightWall);
        interpolate true;
                triangulate false;
            }
        );
      }

    forces
    {
    type forces;
    functionObjectLibs ("libforces.so");        //Lib to load
    outputControl outputTime;
    patches (leftWall rightWall);
    pName p;
    UName U;
    rhoName rhoInf;
    rhoInf 998.2;                    //Reference density for fluid
    nuInf 1e-06;
    CofR (0 0 0);                    //Origin for moment calculations

    outputControl timeStep;
  outputInterval 1;
    }
   

} // end functions


wyldckat August 31, 2013 13:53

Hi Musaddeque,

The current configuration you have should work as you want it to.

For more information: http://foam.sourceforge.net/docs/cpp/a00002.html
(it's the page on the link "Post-processing" that is accessible from the main index: http://foam.sourceforge.net/docs/cpp/index.html )

Best regards,
Bruno

musahossein August 31, 2013 14:51

Thankyou for your explanation.

Many thanks for all your past and present responses. They certainly have helped me along the way (and I am sure other members of the forum have benefited).


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