CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   plot trisurface sampling data in 3d (http://www.cfd-online.com/Forums/openfoam-post-processing/101604-plot-trisurface-sampling-data-3d.html)

mihaipruna May 8, 2012 16:42

plot trisurface sampling data in 3d
 
I want to display pressures over the surface of the STL file in 3d with something like OpenGL.
I was assuming I would get a sequence of points that form triangles but this is not the case. I don't get a number of points that is a multiple of 3.
This is my sampledict:

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      sampleDict;
}
setFormat csv;
surfaceFormat raw;
formatOptions
{
    ensight
    {
        format  ascii;
    }
}
interpolationScheme cellPoint;
fields
(
    p
    U
);
sets
(
);
surfaces
(
 
    triSurfaceSampling
    {
        type        sampledTriSurfaceMesh;
        surface    capri.stl;
        source      boundaryFaces;
        interpolate true;
        triangulate true;
    }
);


JR22 May 1, 2013 15:38

Mihai, Did you get this to work correctly?


All times are GMT -4. The time now is 00:07.