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

Strange STL when using cuttingPlane

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2017, 08:32
Default Strange STL when using cuttingPlane
  #1
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 47
Rep Power: 3
C-L is on a distinguished road
Hi all,

I'm trying to use cuttingPlanes to visualise my results but the creation of the surface file seems very strange (see the attached image). The geometry of the mesh is captured fine but there are lots of strange cells scattered on the nearest mesh boundary. Has anyone seen this before?

Attachment 58616

There aren't many options for creating the cuttingPlane but I have tried changing the surface format from stl to vtk with no difference. I have also tried keeping the data as a foamFile but I'm not sure how to visualise this.

I have also tried using a standard plane instead of a cutting plane; this removes the strange 'dotted' surfaces but some of the cells seem to be missing from the surface (also attached - the missing ones are the squares)!

Attachment 58617

Let me know if you have any other suggestions!

Charlie
C-L is offline   Reply With Quote

Old   September 25, 2017, 08:41
Default
  #2
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 47
Rep Power: 3
C-L is on a distinguished road
Forgot to attached the cuttingPlane script:

cuttingPlane
{
type surfaces;
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat stl;
fields ( );// p U vorticity Q grad(U) mag(grad(U)) );
interpolationScheme cellPoint;

surfaces
(
xNormal0{type plane; normalVector (1 0 0); basePoint (0.87 0 0); interpolate false;}
// xNormal1{type cuttingPlane; planeType pointAndNormal; pointAndNormalDict{basePoint (0.925 0 0); normalVector (1 0 0);} interpolate true;}
);
}
C-L is offline   Reply With Quote

Old   September 26, 2017, 05:44
Default
  #3
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 47
Rep Power: 3
C-L is on a distinguished road
An update ..

I have been creating these cut planes using paraview instead and I have found that I can remove the problem if I decompose the mesh into tets. The below image is the non-decomposed mesh with a slice which gives me the same gaps in the surface as the openfoam cuttingPlane utility.

non-decomposed.png

If I turn on crinkle cut you can clearly see that this gap is not a feature of the mesh (below image).

non-decomposed-crinkleSlice.png

The issue only goes away when I decompose the mesh into tets and then create the slice (see below).

decomposed.png

HOWEVER - I would like to avoid decomposing the mesh in order to save memory since I will be creating many of these vtk files. Has anyone come across this issue before?
C-L is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 30 August 10, 2017 08:11
[ICEM] STL file! How is it useful? bidi ANSYS Meshing & Geometry 0 December 26, 2016 22:33
What CAD software do you use to define STL surfaces? Awak OpenFOAM Native Meshers: snappyHexMesh and Others 6 April 8, 2016 04:35
[ICEM] Work with imported STL geometry KateEisenhower ANSYS Meshing & Geometry 2 July 9, 2015 10:46
Experimentally obtained STL file for internal Flow SnappyHexMesh Irish09 OpenFOAM Native Meshers: snappyHexMesh and Others 9 April 7, 2012 08:50


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