why the function linearInterpolate(phi) can be directly used?
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. |
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 |
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:
|
All times are GMT -4. The time now is 04:23. |