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/)
-   -   interpolationSchemes (https://www.cfd-online.com/Forums/openfoam-pre-processing/229139-interpolationschemes.html)

Cleyton July 28, 2020 12:48

interpolationSchemes
 
Hi!

I'm trying understand the discretization schemes in the fvSchemes and I have a doubt :confused::

If for each discretization scheme (grad, div and laplacian) we already set the interporlation schemes, for exemple "Gauss Linear". So, why do I need to fill the interpolationSchemes subdictionary? :confused:

gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}

divSchemes
{
default none;
div(phi,U) Gauss linear;
}

laplacianSchemes
{
default Gauss linear orthogonal;
}

interpolationSchemes
{
default linear;

Regards,

Cleyton

Cleyton July 29, 2020 08:54

I’m sorry, I dont’ know if my question is clear. I’m new in openFoam
Let me try again…
When I set for example the divSchemes like Gauss linear it means that the spatial discretization will follow Gauss theorem, where appears face fluxes and then I have to set the interpolation scheme for the fluxes, in this case linear (central differences). (please let me know if I’m wrong in my thinking)
I don’t understand why I have to set the interpolationSchemes sub-dictionary if I already do it for each term (div, grad and laplacian). Where OpenFoam use that information?
Thanks for your help

clapointe July 29, 2020 11:40

Check out the interpolation section here : https://cfd.direct/openfoam/user-guide/v6-fvschemes/. So the interpolation schemes are for interpolating to faces only -- likely using something like fvc::interpolate -- to compute/update a surfaceScalarField/surfaceVectorField.

Caelan

Cleyton July 30, 2020 09:46

Thanks for reply Caelan:)

Cleyton July 30, 2020 16:13

I found what I'm looking for in this thread https://www.cfd-online.com/Forums/op...emes-file.html

interpolationSchemes gives the way on how the flux (phi) is calculated.

H...G July 30, 2023 11:20

Interpolation Scheme
 
Dear foamers

Is there any interpolation Scheme that set the value at the surface just equal to that on the same cell center.

For lapalacian term, I do not want to set the conductivity value as the average of two adjacent cell. i need it axactly equal to the value at the same cell center.

best,

Hoss


All times are GMT -4. The time now is 06:56.