CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   sample refined surface and keep cell order (https://www.cfd-online.com/Forums/openfoam-post-processing/244904-sample-refined-surface-keep-cell-order.html)

sezer September 4, 2022 06:12

sample refined surface and keep cell order
 
Hey,

I have a refined mesh after using snappyHexMesh and I want to sample data from a surface of that mesh with one sample each cell.
But the samples are in a different order than the real cell order of the surface.
Is there any way to preserve the right cell order?
This is my surface file:
Code:

 
  type            surfaces;
    libs            ("libsampling.so");

    writeControl    writeTime;

    surfaceFormat  raw;
    fields          ( U);

    interpolationScheme cellPoint;

    surfaces
    (
        surface
        {
            type            cuttingPlane;
            planeType      pointAndNormal;
            pointAndNormalDict
            {
                point  (1 0 0);
                normal  (1 0 0);
            }
            interpolate    false;
        }
    );

thanks

sezer September 7, 2022 04:13

Or , to put the question in a different way: Is it possible with this surfaces file to get an extra column with the cell id number?


All times are GMT -4. The time now is 04:40.