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

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

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2013, 22:56
Default Meaning of outputime, outputcontrol timestep, outputinterval what do all this mean?
  #1
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
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 13:27. Reason: Added [CODE][/CODE]
musahossein is offline   Reply With Quote

Old   August 31, 2013, 13:53
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 14:51
Default
  #3
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
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


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



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