Extract mesh surfaces from .STL files

Hi there!

Very silly problem here. But unfortunately i haven’t founded any solutions yet. I aim to estimate the flow rate at some 2D-surfaces internal to my mesh (i.e no boundaries or inlet-outlet patch), using the filter SurfaceFlow. Could do it by taking different slices, but in this way it’s going to be too laborious.

I have instead the .STL files of these internal surfaces (made it by FreeCAD). Basically internal circular holes of my burner. Can i so extract surfaces from my computed mesh that coincide with my STL geometry? Following what method, in case?

Hope to have been clear enough.

ResampleWithDataSet should be what you are looking for.

Thank you Matt! Unfortunately i’m not still be able to manage my issue. As you can see my internal surface (.STL, blue circle) is entirely contained in my mesh domain (grey region).

Then i apply as you have suggested the ResampleWithDataSet command (hopefully in the right way):

Screenshot from 2024-12-19 13-39-22
Screenshot from 2024-12-19 13-40-27

Eventually it actually extracts my internal surface. But with no fluid data on it (and therefore i cannot estimate anything).

Surely i have made a trivial mistake. But i don’t see where.

Please share your data

About what? Have i to upload my complete simulation?

Yes, you can create an archive and share it on wetransfer.

What e-mail address? Should i pay for this service?

mathieu.westphal@kitware.com (but I dont think its needed). Its free up to 2G I think.

I confirm that we cannot use ResampleWithDataSet with your volume.

However you can use Slice trivially since your stl is an axis-aligned plane. Just press P to position a Y-normaled slice.

Here is the resulting state file:
slice.pvsm (1014.4 KB)

Gusp :cold_sweat:! What i’ve posted before were just an example. I have to compute the flow rate for the holes of my burner crown (the circles in the middle):

Is there a smart way to select one by one each of them?

Sure, modify the threshold filter or add more threshold to select the right regions

Thank you very much Matthieu. Your suggestions are always gold, for each of us. Is it okay in your opinion if i manually select these circular surfaces with the command “Select cells on”? Or the “select points on” command instead?

I don’t know what choice could be better if i run “surfaceFlow” aftermath.

PS: merry Christmas to you and to your family!

Definitely “SelectCellsOn” here.

Thank you Mathieu, you are very kind. My last question (then i swear i close the topic), for these tangential holes the ‘surfaceFlow’ filter holds?

I really appreciate your help.

What is the question here ?

Hello Mathieu, you’re perfectly right, the question is quite unclear.

From the picture above you can see some holes whose normals are not aligned with the Cartesian coordinates - Y (i.e tangential injectors). If i apply the ‘surfaceFlow’ filter on these holes do i get some reasonable values of the volumetric flow rate? As far as i know the radial and tangential velocity components in polar coordinates are not calculated by default in Paraview.

Apologizes if i has gone off topic with this demand.

Im not really following the question, as you should first extract a 2D slice to compute flow on it.

Hi Mathieu,

Sorry for my late reply. This is the question indeed: does the surfaceFlow filter hold if i apply it on a 2D patch whose normal is not aligned with the three Cartesian directions?

Thanks really a lot!

As fair as I understand,yes, as it use the cells surface for computation

What a great help have you provided me! Thank you and have a good week!

1 Like