CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to ask for time integration scheme

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomislav_maric

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2012, 10:15
Default How to ask for time integration scheme
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
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
fisch is offline   Reply With Quote

Old   January 31, 2012, 12:06
Default
  #2
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
Quote:
Originally Posted by fisch View Post
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 likes this.
tomislav_maric is offline   Reply With Quote

Old   February 1, 2012, 02:54
Default
  #3
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
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
fisch is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to understand high resolution scheme and high order scheme iilw1314 Main CFD Forum 7 April 12, 2022 12:29
2nd order upwind scheme (Fluent and CFX) Far FLUENT 0 May 22, 2011 01:50
Integration Scheme m.maneshi OpenFOAM Running, Solving & CFD 0 October 24, 2010 16:16
Source term integration; Upwind scheme technocrat.prakash Main CFD Forum 3 March 21, 2009 09:30
Looking for stable integration scheme for 2D Shallow Water Equations maddhi OpenFOAM Running, Solving & CFD 1 August 23, 2008 06:24


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