CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

interpolationSchemes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2020, 13:48
Default interpolationSchemes
  #1
New Member
 
Cleyton
Join Date: Jun 2020
Posts: 4
Rep Power: 6
Cleyton is on a distinguished road
Hi!

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

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?

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

Last edited by Cleyton; July 28, 2020 at 15:29.
Cleyton is offline   Reply With Quote

Old   July 29, 2020, 09:54
Default
  #2
New Member
 
Cleyton
Join Date: Jun 2020
Posts: 4
Rep Power: 6
Cleyton is on a distinguished road
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
Cleyton is offline   Reply With Quote

Old   July 29, 2020, 12:40
Default
  #3
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
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
clapointe is offline   Reply With Quote

Old   July 30, 2020, 10:46
Default
  #4
New Member
 
Cleyton
Join Date: Jun 2020
Posts: 4
Rep Power: 6
Cleyton is on a distinguished road
Thanks for reply Caelan
Cleyton is offline   Reply With Quote

Old   July 30, 2020, 17:13
Default
  #5
New Member
 
Cleyton
Join Date: Jun 2020
Posts: 4
Rep Power: 6
Cleyton is on a distinguished road
I found what I'm looking for in this thread Basic Questions about fvSchemes file

interpolationSchemes gives the way on how the flux (phi) is calculated.
Cleyton is offline   Reply With Quote

Old   July 30, 2023, 12:20
Default Interpolation Scheme
  #6
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 5
H...G is on a distinguished road
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
H...G is offline   Reply With Quote

Reply

Tags
discretization scheme, interpolationschemes


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
Accuracy when using upwind for interpolationSchemes in hypersonic flow quarkz OpenFOAM Running, Solving & CFD 2 February 6, 2018 08:30
Numerical diffusion between TVD and NVD schemes Eric Brant OpenFOAM Running, Solving & CFD 0 November 21, 2016 08:14
rhoCentralFoam linearUpwind Andy_bm OpenFOAM Running, Solving & CFD 8 November 14, 2011 12:34


All times are GMT -4. The time now is 21:30.