|
[Sponsors] |
Meaning of outputime, outputcontrol timestep, outputinterval what do all this mean? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 30, 2013, 23:56 |
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 |
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] |
|
August 31, 2013, 14:53 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
August 31, 2013, 15:51 |
|
#3 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
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). |
|
Tags |
outputcontrol, outputime, outputinterval, sloshingtank2d, timestep |
|
|