EvenlySpacedStreamlines2D not working properly


I’m completely new in Paraview so let me first apologize if the problem I’m presenting is trivial.
I would like to represent a velocity field with streamlines in a plane, just as this picture I found in a similar work than mine: (My results come from Simscale)

After a bit of investigation I found that I had to use the filter EvenlySpacedStreamlines2D, first I placed a plane perpendicular with Z-axis with the tool Slice and then I used the filter Evenly… to recreate the top picture. No matter what option I change in the filter settings, the lines are poor and start/end not properly.

In a similar post (Evenly Spaced Streamlines 2D filter - streamlines ending too soon) I saw that this could be due to the plane not being perfectly perpendicular with the Z-axis, however, in my case I’m not rotating a non XY plane, I’m directly creating a XY plane. I still tryed to ensure the XY plane with the calculator, but I don’t know how to do it.

Any help is appreciated.



try to transform first your 3D velocity field to a 2D using the calculator filter and an expressions like this:
v_X*iHat + v_Y*jHat + 0 *kHat

where v is the 3D velocity field. Use then this new field as input to EvenlySpacedStreamlines2D

Thanks for your message.

I tried and no matter what setting I put (line distance …), the program crash after clying apply in the EvenlySpaced… filter.
I am using it in Windows with a good PC.


it is possible to share your data ?

Yes, but it’s very heavy. I am trying to put the XY plane at Z=0.01.
It is impossible to share it here as it shows an error message.
I think you will have to ask permission, if this method is not suitable for you, just suggest one.



I see multiple files and none of them seems familiar to me. How should Ioad the data ?

You have to load the file case.foam in Paraview.

in the dataset you provided this file is empty.

Yes it says 0 kb but you should be able to open it, at least I can.

I just get an error trying to do so. Could you save the slice you create as a vtk file , so we can start from the same reference point.

Hope it’s fine this time.
slice.vtm (603 Bytes)

Sorry, I think is not working , check the drive for the correct one.

Thank you for sharing the data. Indeed it seams to be some issue with the filter. This is the best I could get

U_XY = U_X*iHat + U_Y*jHat

How about using the standard streamtracer filter with U_XY ?

Marc, this is the surface LIC filter…not streamlines.

Activate under Tools Manage Plugin…Surface LIC.

Restart paraview

Load your data and switch to surface lic representation

Make sure your velocity field is set as onout source.

1 Like

Marc, this is the surface LIC filter…not streamlines.

Totally forgot about SurfaceLIC ! Thank you @Gabriel_Axtmann ! Using this option generates results very close to you reference pictures:

Now set color mode to multiply and set enhance contrast to both

That worked! Thank you.

1 Like