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

Gradient schemes and backward second order time scheme

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 26, 2013, 12:17
Default Gradient schemes and backward second order time scheme
  #1
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi,

I read from the user guide that the gradient scheme could be just Gauss plus an interpolation scheme. Then I tried to do something as below:

gradSchemes
{
default Gauss linear;
grad(p) Gauss limitedLinear 1;
grad(U) Gauss limitedLinear 1;
}

And I got the following error message:

--> FOAM FATAL IO ERROR:
wrong token type - expected word, found on line 27 the label 1

file: /home/ttjs3/OpenFOAM/ttjs3-2.1.1/run/duct1/system/fvSchemes::gradSchemes::grad(U) at line 27.

From function operator>>(Istream&, word&)
in file primitives/strings/word/wordIO.C at line 74.

FOAM exiting

I don't know what kind of parameter should follow "Gauss limitedLinear 1" in such a case. I am still virtually illiterate about C++ and can't really understand how to dig out the information in the relevant code as I am really baffled by all the class definitions, selectors and so on...

Could someone give me on hint on what I have done wrong in this setting? Thank you very much.

Actually I got another problem with the second order backward time scheme. I am testing it on a simple straight duct case.

It's just never stable...and I don't know why. My CFL number is as low as 0.001. Increasing it further just made the simulation blow up in a few time steps. Reducing it can help to make the simulation run longer, but still not stable.

Does anyone have any experience on this backward second order scheme? Thank you.

Best Regards,
Callum
callumso is offline   Reply With Quote

 


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
Euler, Backward time schemes idrama OpenFOAM Running, Solving & CFD 4 December 17, 2015 09:16
Implicit versus Explicit Deepak Main CFD Forum 17 November 7, 2015 13:14
order of time integration schemes fisch OpenFOAM Running, Solving & CFD 0 January 26, 2012 03:03
4th order schemes in channelOodles maka OpenFOAM Bugs 9 January 19, 2009 11:58
AMG parallelisation and convection schemes christian OpenFOAM Running, Solving & CFD 3 December 17, 2007 08:21


All times are GMT -4. The time now is 14:04.