CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Using TVD Schemes in fvScheme (https://www.cfd-online.com/Forums/openfoam-pre-processing/140390-using-tvd-schemes-fvscheme.html)

aydemirk August 14, 2014 00:52

Using TVD Schemes in fvScheme
 
Hi everyone,

I am trying to run a simulation in wind tunnel with a supersonic flow and a shock holder. Since I have a shock, I wanted to use TVD scheme in my fvscheme file. I looked up at the information on OpenFoam's website and decided to use 'limitedLinear 1' for my 'interpolationSchemes' but I am getting this error:

wrong token type - expected word, found on line 44 the label 1

I searched the forums and I saw this type of error is mostly based on a missing identifier like 'uniform' or 'constant' but this is not my case. Do you have any idea what's the problem? Here is my fvScheme file:

dtSchemes
{
default backward;
}

gradSchemes
{
default Gauss linear;
}

divSchemes
{
default none;
div(phi,k) Gauss limitedLinear 1;

}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default limitedLinear 1; //this is where I have a problem
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
p ;
}

Tushar@cfd August 20, 2014 04:26

Try the following..

interpolationSchemes
{
default limitedLinear phi 1;
}

-
Best Luck!


All times are GMT -4. The time now is 23:47.