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

How to ask for time integration scheme

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

Like Tree1Likes
  • 1 Post By tomislav_maric

Reply
 
LinkBack Thread Tools Display Modes
Old   January 31, 2012, 11:15
Default How to ask for time integration scheme
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
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, 13:06
Default
  #2
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 260
Blog Entries: 5
Rep Power: 11
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:

How to access keywords from dictionaries
fisch likes this.
tomislav_maric is offline   Reply With Quote

Old   February 1, 2012, 03:54
Default
  #3
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
how to understand high resolution scheme and high order scheme iilw1314 Main CFD Forum 3 September 30, 2010 10:43
Source term integration; Upwind scheme technocrat.prakash Main CFD Forum 3 March 21, 2009 10: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 05:26.