CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Clip by an stl file

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

Like Tree1Likes
  • 1 Post By Carlo_P

LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2019, 16:21
Default Clip by an stl file
Join Date: May 2017
Posts: 39
Rep Power: 7
Ryan. is on a distinguished road
Hello everyone,

is possible to clip my data using an STL file? At the moment, I am using a programmable filter with a cylinder but I would like to replace the cylinder with an STL file or any other format that allows me to use an arbitrary geometry for clipping my original data.

import vtk
input = self.GetInputDataObject(0, 0)
inp_copy = input.NewInstance()
transf = vtk.vtkTransform()
cyl = vtk.vtkCylinder()
clipper = vtk.vtkClipDataSet()
Ryan. is offline   Reply With Quote

Old   October 16, 2019, 08:56
Senior Member
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 6
Carlo_P is on a distinguished road
You can use a sampleDict file in openFOAM.
It will create some points on your .stl file and create some "sample" points.

{ // Sampling on triSurface type sampledTriSurfaceMesh; surface integrationPlane.stl; source boundaryFaces; // sample cells or boundaryFaces interpolate true; }

Here you can find the original file:

Let me know if it can be ok.
Ryan. likes this.
Carlo_P is offline   Reply With Quote


clip, programmable filter, stl file

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 16:35
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08

All times are GMT -4. The time now is 21:34.