# 4DFlow Pathline Streamline

**URL:** <https://discourse.paraview.org/t/4dflow-pathline-streamline/13124>\
**Category:** ParaView Support\
**Tags:** vtk\
**Created:** [October 27, 2023, 11:26am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124 "2023-10-27T11:26:43Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 10:19am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/21 "2023-11-17T10:19:28Z")

</div>

Hi, I need help again.  
In the software before I made an interpolation and so I have a pretty ugly contours  
I found the filter smooth to adjust the contour but there is some way to smooth also the flow out of the contours? Because if I use Smooth filter also for the 4dflow it smooth also the inside and I don’t want that.  
I saw the possibility to use extract selection but I don’t understand how to use it!

Do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 10:20am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/22 "2023-11-17T10:20:59Z")

</div>

> [@mar.premi](#):
>
> In the software before I made an interpolation and so I have a pretty ugly contours

please share a screenshot

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 10:23am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/23 "2023-11-17T10:23:41Z")

</div>

Before the smooth of the contours:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/555d6eb11e490a634503c108020c3dc308f659fe.png)

After the smooth of the contour:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/253e02ceefa0949393bf7fea4362bb9acb7a4da0.png)

Can I remove the arrows of the velocity field out of the contour?

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 10:25am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/24 "2023-11-17T10:25:22Z")

</div>

> [@mar.premi](#):
>
> Can I remove the arrows of the velocity field out of the contour?

Hide the glyph filter ?

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 10:26am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/25 "2023-11-17T10:26:50Z")

</div>

I don’t understand.  
I want to “cut” the velocity field with the contour to obtain the velocity field only inside of the contour and then export them

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 10:30am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/26 "2023-11-17T10:30:42Z")

</div>

You can use the Polydatadistance trick for this I think.

> [@Slice/Clip with a surface](https://discourse.paraview.org/t/slice-clip-with-a-surface/9436):
>
> It is possible to slice and clip a volume with a surface by using a Phyton Programmable Filter. This relies on the [vtkImplicitPolyDataDistance](https://vtk.org/doc/nightly/html/classvtkImplicitPolyDataDistance.html#details), so the result is an approximation, not an actual boolean operation. Steps for clip: Open a volume, apply Open a surface, apply In the pipeline browser, click on the volume, then press Ctrl, then click on the surface Add a Programmable Filter Set the output type to vtkUnstructuredGrid Set the script to import paraview.modules.vtkPVVTKExtensionsFilte…

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 10:52am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/27 "2023-11-17T10:52:31Z")

</div>

I create the filters but then this happen

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3d137c29c675ba03000163eeba1d242ab29adf2e.png)

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 10:58am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/28 "2023-11-17T10:58:25Z")

</div>

The programmable filter should have your velocity field has an input.

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 11:04am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/29 "2023-11-17T11:04:00Z")

</div>

Both clipper and slicer?  
import paraview.modules.vtkPVVTKExtensionsFiltersGeneral as ext

inpMain = self.GetInputDataObject( 0, 0 )  
inp = self.GetInputDataObject( 0, 1 )  
out = self.GetOutput()

clipper = ext.vtkPVMetaClipDataSet()  
clipper.SetInputDataObject(1998753LV\_3dflow\_vec\_ph001.vtk\*)  
clipper.SetInsideOut(True)  
function = vtk.vtkImplicitPolyDataDistance()  
function.SetInput(1998753LV\_3dflow\_vec\_ph001\*)  
clipper.SetDataSetClipFunction(function)  
clipper.Update()

outData = clipper.GetOutputDataObject(0)  
out.DeepCopy(outData)

and same for the other?

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 11:07am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/30 "2023-11-17T11:07:35Z")

</div>

Absolutely not. Please follow the steps in the link I shared closely.

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 11:15am UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/32 "2023-11-17T11:15:06Z")

</div>

![image](https://discourse.paraview.org/uploads/default/original/2X/3/3ca7471ecb8eb5af9614276d06d511510001f21e.png)  
nothing happen

I’m appying them correctly?  
The volume is my velocity fiels and the surface is the contour?

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [November 17, 2023, 1:49pm UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/33 "2023-11-17T13:49:03Z")

</div>

please share your data

---

<div class="post-metadata">

**Author:** ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)\
**Post date:** [November 17, 2023, 2:00pm UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/34 "2023-11-17T14:00:46Z")

</div>

[1998753LV\_3dflow\_vec\_ph001.vtk](https://discourse.paraview.org/uploads/short-url/kr9mV0pmkST7QOoa9DTvO16r5f.vtk) (694.0 KB)  
[1998753LV\_3dflow\_vec\_ph002.vtk](https://discourse.paraview.org/uploads/short-url/lHQ6VEHi5HmB9jkLq9a9SCuf5Xx.vtk) (683.4 KB)  
[1998753LV\_3dflow\_vec\_ph003.vtk](https://discourse.paraview.org/uploads/short-url/cDDKf3rRXxcPBaS3J1NOQ6amFrd.vtk) (620.6 KB)  
[1998753LV\_3dflow\_vec\_ph004.vtk](https://discourse.paraview.org/uploads/short-url/bEdTae9PoBE4AhE1KkYunpNEu52.vtk) (562.0 KB)  
[1998753LV\_3dflow\_vec\_ph005.vtk](https://discourse.paraview.org/uploads/short-url/uf8VX5lzmLREGWUFn0Idj21xVjS.vtk) (501.0 KB)  
[1998753LV\_3dflow\_vec\_ph006.vtk](https://discourse.paraview.org/uploads/short-url/XAQ63zx3OoXatS40ohaE3SNOJM.vtk) (378.4 KB)  
[1998753LV\_3dflow\_vec\_ph007.vtk](https://discourse.paraview.org/uploads/short-url/qaUqRnyTrSuxQTxBF52FAqPbe8x.vtk) (325.3 KB)  
[1998753LV\_3dflow\_vec\_ph008.vtk](https://discourse.paraview.org/uploads/short-url/juUnnOm41qbohlxhepSA338yv0V.vtk) (280.9 KB)  
[1998753LV\_3dflow\_vec\_ph009.vtk](https://discourse.paraview.org/uploads/short-url/aCc3Oj84H9LNthiwnDOkxxX8xkJ.vtk) (245.3 KB)  
[1998753LV\_3dflow\_vec\_ph010.vtk](https://discourse.paraview.org/uploads/short-url/5PCGx4ZLKjou2fNvq1S4uxy7VKj.vtk) (220.8 KB)  
[1998753LV\_3dflow\_vec\_ph011.vtk](https://discourse.paraview.org/uploads/short-url/3ZwK1CqTLqIaLRT7fPxKmHnMfRw.vtk) (223.4 KB)  
[1998753LV\_3dflow\_vec\_ph012.vtk](https://discourse.paraview.org/uploads/short-url/lmVbsfndSBJkoOHDPfdmgUSOYjr.vtk) (236.2 KB)  
[1998753LV\_3dflow\_vec\_ph013.vtk](https://discourse.paraview.org/uploads/short-url/zZHrYTj2cklm9gPd7LEpVr0iCD2.vtk) (255.5 KB)  
[1998753LV\_3dflow\_vec\_ph014.vtk](https://discourse.paraview.org/uploads/short-url/dwHwvrTe21OabYg1yJBfMBemHax.vtk) (278.0 KB)  
[1998753LV\_3dflow\_vec\_ph015.vtk](https://discourse.paraview.org/uploads/short-url/znODJyuPmh9ud24A4lf6FSMJe5N.vtk) (344.8 KB)  
[1998753LV\_3dflow\_vec\_ph016.vtk](https://discourse.paraview.org/uploads/short-url/rs2OX8MnzoBMqx4YJdP8eErw5Hx.vtk) (420.7 KB)  
[1998753LV\_3dflow\_vec\_ph017.vtk](https://discourse.paraview.org/uploads/short-url/ggrYIfvuDbwQE7Le8qlM89KT5UL.vtk) (477.7 KB)  
[1998753LV\_3dflow\_vec\_ph018.vtk](https://discourse.paraview.org/uploads/short-url/1qBw7tTkqHnPCafSeNmdH5ZeArL.vtk) (514.9 KB)  
[1998753LV\_3dflow\_vec\_ph019.vtk](https://discourse.paraview.org/uploads/short-url/fO58rehYTQJfY3HBHk2fk6XfTMa.vtk) (597.0 KB)  
[1998753LV\_3dflow\_vec\_ph020.vtk](https://discourse.paraview.org/uploads/short-url/pz7xdYgkK64m8akxdX9xdcYwRbV.vtk) (595.3 KB)  
[1998753LV\_3dflow\_vec\_ph021.vtk](https://discourse.paraview.org/uploads/short-url/1JW8j2l5nuqtGXMEZ02m7AALQ5J.vtk) (587.6 KB)  
[1998753LV\_3dflow\_vec\_ph022.vtk](https://discourse.paraview.org/uploads/short-url/uDU7KPhFWXKDPfOJ3zs5KV1Steg.vtk) (579.3 KB)  
[1998753LV\_3dflow\_vec\_ph023.vtk](https://discourse.paraview.org/uploads/short-url/fZ1dQQcwn7pzCUJC77csK4ykL9U.vtk) (573.4 KB)  
[1998753LV\_3dflow\_vec\_ph024.vtk](https://discourse.paraview.org/uploads/short-url/ufYWt1U14fWrsCV5Kuc66Jxdl10.vtk) (578.2 KB)  
[1998753LV\_3dflow\_vec\_ph025.vtk](https://discourse.paraview.org/uploads/short-url/hk5xKARQFXlw1TIG7i3rn5uu72J.vtk) (583.3 KB)  
[1998753LV\_LV\_Endo\_ph001.vtk](https://discourse.paraview.org/uploads/short-url/ksPY7NbZusTyz3tU9II0sJO5AGl.vtk) (167.6 KB)  
[1998753LV\_LV\_Endo\_ph002.vtk](https://discourse.paraview.org/uploads/short-url/w13Drvbb96k0OfAHwQG43o5GJUM.vtk) (167.7 KB)  
[1998753LV\_LV\_Endo\_ph003.vtk](https://discourse.paraview.org/uploads/short-url/mQC6HwclQQCtoIHW2AVN02Uwi0q.vtk) (167.6 KB)  
[1998753LV\_LV\_Endo\_ph004.vtk](https://discourse.paraview.org/uploads/short-url/81NyEFx7vMgtk3Ardbz73ImWuI6.vtk) (167.5 KB)  
[1998753LV\_LV\_Endo\_ph005.vtk](https://discourse.paraview.org/uploads/short-url/cvIw3XAVth7rvsPKJiJqdEWZ8RM.vtk) (167.3 KB)  
[1998753LV\_LV\_Endo\_ph006.vtk](https://discourse.paraview.org/uploads/short-url/kquJ24aR6NGpVPG5HJ7Vt9tGTa1.vtk) (152.7 KB)  
[1998753LV\_LV\_Endo\_ph007.vtk](https://discourse.paraview.org/uploads/short-url/hVDB14ct5he5kwug7F2LSnD0Kov.vtk) (152.6 KB)  
[1998753LV\_LV\_Endo\_ph008.vtk](https://discourse.paraview.org/uploads/short-url/8DnNTsDGpSgKlEc6qef5h94yV29.vtk) (152.3 KB)  
[1998753LV\_LV\_Endo\_ph009.vtk](https://discourse.paraview.org/uploads/short-url/f73YTiTKoitYhl4PFGAPBHLbyk5.vtk) (152.2 KB)  
[1998753LV\_LV\_Endo\_ph010.vtk](https://discourse.paraview.org/uploads/short-url/qdLSBKz5ZLcdpl12M00ZJJ4Qe99.vtk) (152.2 KB)  
[1998753LV\_LV\_Endo\_ph011.vtk](https://discourse.paraview.org/uploads/short-url/nMhlHs6remfDoiCTGWXAj3SNbrd.vtk) (152.2 KB)  
[1998753LV\_LV\_Endo\_ph012.vtk](https://discourse.paraview.org/uploads/short-url/rsN7RAWPzT1qosohE2jiWM5QR7T.vtk) (152.2 KB)  
[1998753LV\_LV\_Endo\_ph013.vtk](https://discourse.paraview.org/uploads/short-url/s9QzhOOBcTPdBecZUn87SuEs4uU.vtk) (152.2 KB)  
[1998753LV\_LV\_Endo\_ph014.vtk](https://discourse.paraview.org/uploads/short-url/uubSl0ygm4xRtpE307H1xaIAHQq.vtk) (152.1 KB)  
[1998753LV\_LV\_Endo\_ph015.vtk](https://discourse.paraview.org/uploads/short-url/9LcXNdBVdk8n4yNf24lAwg2Kz2f.vtk) (152.3 KB)  
[1998753LV\_LV\_Endo\_ph016.vtk](https://discourse.paraview.org/uploads/short-url/6HmzYZ4f783cKjsav5KcaxiuMYQ.vtk) (152.4 KB)  
[1998753LV\_LV\_Endo\_ph017.vtk](https://discourse.paraview.org/uploads/short-url/5YkDrMZojPfE1Z818IntjUwCnIM.vtk) (152.6 KB)  
[1998753LV\_LV\_Endo\_ph018.vtk](https://discourse.paraview.org/uploads/short-url/sr8z0MIJmBCnPApegmRfv7iVWZQ.vtk) (152.6 KB)  
[1998753LV\_LV\_Endo\_ph019.vtk](https://discourse.paraview.org/uploads/short-url/hLyukPC1ZIthKAQ6MeLD56B478n.vtk) (167.1 KB)  
[1998753LV\_LV\_Endo\_ph020.vtk](https://discourse.paraview.org/uploads/short-url/5KJaItefARDzh9VKJBBR5ODngmW.vtk) (167.1 KB)  
[1998753LV\_3dflow\_vec\_ph026.vtk](https://discourse.paraview.org/uploads/short-url/4zTZBj8oKXK6l0vQsoQCCSZ7TLT.vtk) (598.8 KB)  
[1998753LV\_3dflow\_vec\_ph027.vtk](https://discourse.paraview.org/uploads/short-url/dvCNJbmfSRBb1J6656TntR3H5H.vtk) (642.4 KB)  
[1998753LV\_3dflow\_vec\_ph028.vtk](https://discourse.paraview.org/uploads/short-url/aNhnaDQeeGDP4HgPrT39mCVBZdV.vtk) (722.7 KB)  
[1998753LV\_3dflow\_vec\_ph029.vtk](https://discourse.paraview.org/uploads/short-url/vtD0wlVxoZ5phTHCNG7kRlIuACa.vtk) (751.0 KB)  
[1998753LV\_3dflow\_vec\_ph030.vtk](https://discourse.paraview.org/uploads/short-url/xz6AUmHJuxGNLhwSzw2aJWq1IIy.vtk) (723.5 KB)  
[1998753LV\_LV\_Endo\_ph021.vtk](https://discourse.paraview.org/uploads/short-url/xCdRX543C10nQurZ7Go5zP23T3N.vtk) (167.1 KB)  
[1998753LV\_LV\_Endo\_ph022.vtk](https://discourse.paraview.org/uploads/short-url/18LU2WS60yXCL0sUQ2XiIM19UN5.vtk) (167.1 KB)  
[1998753LV\_LV\_Endo\_ph023.vtk](https://discourse.paraview.org/uploads/short-url/eDVa3VSdApGc0SIQhjAUekOszBM.vtk) (167.1 KB)  
[1998753LV\_LV\_Endo\_ph024.vtk](https://discourse.paraview.org/uploads/short-url/n9EdkzmMAb0bmfFi729xn5LZSXK.vtk) (167.2 KB)  
[1998753LV\_LV\_Endo\_ph025.vtk](https://discourse.paraview.org/uploads/short-url/sTw0WKei0J4E5f9jCkItumS7v9G.vtk) (167.2 KB)  
[1998753LV\_LV\_Endo\_ph026.vtk](https://discourse.paraview.org/uploads/short-url/cmFKkwhUoSZbxkwNhMBuFG0ZUZU.vtk) (167.3 KB)  
[1998753LV\_LV\_Endo\_ph027.vtk](https://discourse.paraview.org/uploads/short-url/zlNbdarPipluGu88NqmW3GFbZXD.vtk) (167.4 KB)  
[1998753LV\_LV\_Endo\_ph028.vtk](https://discourse.paraview.org/uploads/short-url/eedKzOlUZWYM8nqaLUY918hXfSs.vtk) (167.6 KB)  
[1998753LV\_LV\_Endo\_ph029.vtk](https://discourse.paraview.org/uploads/short-url/wLqH8cpZLbzmD5mDtRpkS9DJlb4.vtk) (167.6 KB)  
[1998753LV\_LV\_Endo\_ph030.vtk](https://discourse.paraview.org/uploads/short-url/gPAt0ee0gwuLKyEsFW6vIofFpw9.vtk) (167.5 KB)

---

<div class="post-metadata">

**Author:** ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)\
**Post date:** [November 17, 2023, 4:06pm UTC](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124/35 "2023-11-17T16:06:58Z")

</div>

It looks to me like the velocity field glyphs protrude out of the contour even before the smoothing. I’m not sure you’ll be able to get the result you want without cutting a bunch of the arrows in half, and I’m not sure if that’s what @mwestphal is suggesting.

The nature of arrow glyphs like that is that they protrude out of the velocity field pretty easily. Perhaps a stream tracer filter will do what you want?

[Previous page](https://discourse.paraview.org/t/4dflow-pathline-streamline/13124.md?page=1)
