|
[Sponsors] |
why the function linearInterpolate(phi) can be directly used? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 4, 2015, 10:12 |
why the function linearInterpolate(phi) can be directly used?
|
#1 |
New Member
nemo
Join Date: Jan 2015
Posts: 26
Rep Power: 11 |
Hello.
In this wiki page https://openfoamwiki.net/index.php/O...eInterpolation,include this sentence: "The linear scheme is explicitly included with fvCFD.H, a file that at the top level of most solvers. To specifically force a linear interpolation: linearInterpolate(phi);" But I do not understand this,can anyone explain this to me why in the createPhi.H the linearInterpolate(U) can be directly used?THe linearInterpolate() is a part of the class linear..,it confuses me. |
|
November 5, 2015, 05:50 |
|
#2 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Quote:
This sentence means that fvCFD.H includes the linear interpolation (linear.H), therefore it is available for every solver. linearInterpolate() can be directly used because it is a function not a class. To be more precise it is a template function which calls surfaceInterpolationScheme::interpolate static function. linearInterpolate() is defined in linear.H. Bw, Hassan |
||
November 5, 2015, 06:34 |
|
#3 | |
New Member
nemo
Join Date: Jan 2015
Posts: 26
Rep Power: 11 |
Thank you.
I finally realize my stupid mistake..I did not read the code carefully.. The function linearInterpolate is not part of class linear.It is defined in the namespace Foam. Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 17:22 |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 02:36 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |