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

Forcing Surface Export with VTK to be triangulated

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2019, 12:41
Default Forcing Surface Export with VTK to be triangulated
  #1
New Member
 
Adrian Rohner
Join Date: Mar 2017
Posts: 3
Rep Power: 9
arohner is on a distinguished road
Hi All,


I have updated my openfoam version from of6 to of7 and encountered some issues with vtk surface files. In of6 I had triangulated files, which were very easy to handle in a python-vtk postprocessor. Now with of7 I get tri-, quad- and higher-polygons (see attachement: vtk_of6_of7.png). Is there a way to force openfoam to generate triangles?

I found a keyword "triangulate" (see code snippet) within the surface file and set this to "true" but had no effect.

Any idea how to get vtk's, which are always triangulated?





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

writeControl    adjustableRunTime;
writeInterval   surfWriteIntervalVar;
     
/*
null
dx
vtk
raw
stl
*/

surfaceFormat   vtk;
interpolationScheme cellPoint;

x (1 0 0);
y (0 1 0);
z (0 0 1);
origin (0 0 0);

cuttingPlane
{
    type         cuttingPlane;
    planeType    pointAndNormal;
    pointAndNormalDict
    {
        basePoint    $origin;
        normalVector $x;
    }
    interpolate  true;
    triangulate  true;
}
Attached Images
File Type: jpg vtk_of6_of7.jpg (101.2 KB, 16 views)
arohner is offline   Reply With Quote

Reply

Tags
of6, of7, surfaces, triangulated, vtk


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
volFlowRateSurface function - triangulated surface igor.leo93 OpenFOAM Post-Processing 12 March 15, 2019 09:43
Unable to install OpenFOAM 1.6-ext Maimouna OpenFOAM Installation 23 May 8, 2014 06:47
[ICEM] Forcing surface and curve to match sherifkadry ANSYS Meshing & Geometry 0 August 27, 2010 01:28
Unique vertices of triangulated surface! Anders Jönson Main CFD Forum 5 July 16, 2000 12:04


All times are GMT -4. The time now is 18:13.