CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to ask for time integration scheme (http://www.cfd-online.com/Forums/openfoam-programming-development/96762-how-ask-time-integration-scheme.html)

fisch January 31, 2012 11:15

How to ask for time integration scheme
 
Hello,

is it possible to get the name or something similar of the current time integration scheme during the solver process, e.g. in pisoFoam? And where can i find such commands?

thank you very much,

rupert

tomislav_maric January 31, 2012 13:06

Quote:

Originally Posted by fisch (Post 342106)
Hello,

is it possible to get the name or something similar of the current time integration scheme during the solver process, e.g. in pisoFoam? And where can i find such commands?

thank you very much,

rupert

Hi,

try this:

Code:

const IOdictionary& fvSchemes = mesh.lookupObject<IOdictionary>("fvSchemes");

    Info << fvSchemes << endl;

    const dictionary& ddtSchemes = fvSchemes.subDict("ddtSchemes");

    Info << ddtSchemes << endl;

Se the explanation here:

http://www.cfd-online.com/Forums/ope...tionaries.html

fisch February 1, 2012 03:54

Dear Tomislav,

thanks for your help.

The final code for this request is now (for any other with this problem):

Code:

    const IOdictionary& fvSchemes = mesh.lookupObject<IOdictionary>("fvSchemes");
        const dictionary& ddtSchemes = fvSchemes.subDict("ddtSchemes");
        word ddtScheme(ddtSchemes.lookup("default"));
        Info << "current time integration scheme is "<< ddtScheme << endl;

rupert


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