CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   rhoCentralFoam interpolation function (https://www.cfd-online.com/Forums/openfoam-programming-development/255591-rhocentralfoam-interpolation-function.html)

khoder Alshaar April 18, 2024 03:18

rhoCentralFoam interpolation function
 
Dear friends,

I am learning OpenFOAM Programming. I am planning to edit rhocentralFoam. However, when I started reading the source code, The first thing that stopped me was the following:
Code:

        surfaceScalarField rho_pos(interpolate(rho, pos));
        surfaceScalarField rho_neg(interpolate(rho, neg));

I understand the purpose of the two lines is to interpolate (reconstruct) the fields from cell centers to the left and right sides of each face.

My question is where/how to find the implementation of the
Code:

interpolate(rho, pos)
function. Especially the one that takes two arguments, rho, pos.

Thank you.

klausb May 21, 2024 15:42

see #include section in the source file rhoCentralFoam.C and find:

Code:

#include "directionInterpolate.H"


All times are GMT -4. The time now is 01:16.