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

sample refined surface and keep cell order

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2022, 06:12
Default sample refined surface and keep cell order
  #1
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 3
sezer is on a distinguished road
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 is offline   Reply With Quote

Old   September 7, 2022, 04:13
Default
  #2
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 3
sezer is on a distinguished road
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?
sezer is offline   Reply With Quote

Reply


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



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