Best Practice For Plotting Streamlines Around a Cylinder

Dear Ali, I did used the slice filter. I took z normal so to get a XY plane where to do the streamlines. Still go the error. I see after the calculator filter that I can choose for “showing” the 3 directions however the z direction shows values from 0 to 1.2*10^-38.

Can this be the reason, that is still a 3D vector?
Thanks a lot.

Joao

If you attach your case I hope I can help better.

Dear Ali,

I sent you a message. How can I share my case here?
Thanks a lot.

Best wishes,

Joao

When you press reply button, a box appears, above of which are some keys like Hyperlink , Emoji , Upload… . press upload and attach your file. your stat file is not enough. Make a minimum sized zip file including stat and your case.

1 Like

Dear Ali, thanks once again for your help. This is the case. I shared like this as it is a quite large one (around 400 mb)
I tried to do a 2D slice at z=0 with normal (0 0 1) and plot the 2D streamlines

Thanks a lot in advance for any help.3D data

I tested the case, however unfortunately with no success. I also left a comment here in the hope that the issue be solved.

1 Like

A fix for this issue is at:
https://gitlab.kitware.com/vtk/vtk/merge_requests/6436

It will take a few weeks for this fix to be picked up by ParaView, but it will be eventually in ParaView master.

Here is a picture I generated from that dataset.

1 Like

Thanks a lot. I will have a look.

You are welcome.

Here is the paraview statefile I used
But you’ll have to wait for the change to be propagated to ParaView master or build ParaView from source using my VTK branch.

Dan

streamlines.pvsm (490 KB)

2 Likes

By the way, ParaView master is always available as binary installs on the paraview.org website. Go to downloads, and change “Version” to Nightly.

1 Like

I believe that @danlipsa change are not available in the nightlies nor in master since his VTK branch is not even merged in VTK yet.

Hello Everyone,
Thanks a lot for the help!
I downloaded the new Paraview 5.8 but still got the same error. Has the change been pushed to the VTK branch? If not, is there any timeline?

Thanks a lot once again.
Best wishes,

João

It should be in the nightlies :
https://www.paraview.org/download/

Dear Mathieu,
Thanks a lot for the answer
I downloaded the ParaView 5.8 for windows 10.
I tried to run the data I provided but still got the same error (related to data not being on xy plane). I used the stateFile provided by Dan Lipsa above. Can you confirm that it has been merged?
Thanks a lot for all the help!

Best wishes,
João

Did you download a nightly like this one :
https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=nightly&type=binary&os=Windows&downloadFile=ParaView-latest-Windows-Python3.7-msvc2015-64bit.exe

?

Dear Mathieu,
Yes, exactly that one!
thanks a lot.

Best wishes,

João

I confirm that this nightly release contains the fix from @danlipsa

1 Like

I tried again, but still got errors. I used the data I provided before and the stateFile by @danlipsa

The error log is:
errors_paraview.txt (1.6 KB)

ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Filters\FlowPaths\vtkEvenlySpacedStreamlines2D.cxx, line 125
vtkEvenlySpacedStreamlines2D (000001B47CA1A080): vtkEvenlySpacedStreamlines2D does not support planes not aligned with XY.

ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkPVCompositeDataPipeline (000001B47CB8F480): Algorithm vtkEvenlySpacedStreamlines2D(000001B47CA1A080) returned failure for request: vtkInformation (000001B47E072120)
  Debug: Off
  Modified Time: 1923613
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0



ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000001B47D76FA30): Algorithm vtkPVGeometryFilter(000001B47D94BF20) returned failure for request: vtkInformation (000001B47E2277A0)
  Debug: Off
  Modified Time: 1923657
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0



ERROR: In C:\bbd\ecd3383f\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 753
vtkCompositeDataPipeline (000001B47D76FA30): Algorithm vtkPVGeometryFilter(000001B47D94BF20) returned failure for request: vtkInformation (000001B47E2277A0)
  Debug: Off
  Modified Time: 1923657
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0

Make sure you use nightly not 5.8.0. I just tried and works fine.
There are a number of warnings

vtkMath.cxx:1314 WARN| Unable to factor linear system

but those don’t seem to affect the result.

2 Likes

Worked perfectly! Thanks a lot.
Last question, will the Nightly version be merged on the standard distribution?
Thanks a lot.

1 Like