CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   What is Gauss linear upwind? (https://www.cfd-online.com/Forums/openfoam-solving/103400-what-gauss-linear-upwind.html)

 okroud June 19, 2012 04:36

What is Gauss linear upwind?

Hi,

i have a question concerning an existing case i didn't create by myself, but I have to use it. There's a divScheme i don't understand:

div((nuEff*def(grad(U).T()))) Gauss linear upwind;

I know linear is second order interpolation.
I know upwind is first order interpolation.

But I don't know how this one behaves and which on the argument of the other one is.
Could someone tell me something like
Gauus <interpolationScheme> <...>?
Gauss <...> <interpolationScheme>?

Thanks for your help, okroud

 kmooney June 20, 2012 18:38

You could check out the source code for it here:

Code:

`/src/finiteVolume/lnInclude/linearUpwind.C`
I'm not too familiar with its functionality. The code describes it as upwind with an explicit linear correction.

 okroud June 20, 2012 18:52

Thanks. So you think that linear upwind is the same as linearUpwind and therefore a second Order Scheme?

 kmooney June 20, 2012 18:55

I'm not completely sure. I've actually never seen anything with that particular syntax. I've seen
Code:

`Gauss linear`
and
Code:

`Gauss linearUpwind phi`
but never the way you've written it.

 okroud July 2, 2012 10:04

Quote:
 Originally Posted by kmooney (Post 367547) You could check out the source code for it here: Code: `/src/finiteVolume/lnInclude/linearUpwind.C` I'm not too familiar with its functionality. The code describes it as upwind with an explicit linear correction.
I looked at the file linearUpwind.C, but i have some Problems interpreting it. I see that it's upwind, but where do you see it has an explicit linear correction?

I'd realy like to understand the mathematical background of some of the schemes by watching the sourcecode, is there any source or work where the schemes are mathematically further explained?

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