CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

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

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   August 30, 2013, 23:56
Default Meaning of outputime, outputcontrol timestep, outputinterval what do all this mean?
  #1
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 277
Rep Power: 8
musahossein is on a distinguished road
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

Last edited by wyldckat; August 31, 2013 at 14:27. Reason: Added [CODE][/CODE]
musahossein is offline   Reply With Quote

Old   August 31, 2013, 14:53
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,510
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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 likes this.
wyldckat is offline   Reply With Quote

Old   August 31, 2013, 15:51
Default
  #3
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 277
Rep Power: 8
musahossein is on a distinguished road
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).
musahossein is offline   Reply With Quote

Reply

Tags
outputcontrol, outputime, outputinterval, sloshingtank2d, timestep

Thread Tools
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 On
Pingbacks are On
Refbacks are On



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