generating streamlines with a custom number of source points

I have a case folder from OpenFOAM with the converged results.
The geometry is simple; one inlet and one outlet, no complex flow at all.
My inlet patch has exactly 100 elements.

I need to be able to generate streamlines from the inlet with an arbitrary number of point sources (which might be larger than the number of my inlet’s elements/cell centers); e.g. I may need to generate 500 streamlines.

That is my current work flow:

  • Load the foam case.
  • Extract inlet patch.
  • Mask points on the extracted inlet block.
  • StreamTracerWithCustomSource (My internal domain as input and masked points as source).

But the problem is that no matter how much I increase the “Maximum Number of Points”, the number of streamline does not increase.
Can someone help me figure a way out?

Thanks

the problem is that no matter how much I increase the “Maximum Number of Points”, the number of streamline does not increase.

This is expected as the stream tracer cant create more seeds than there is point in your inlet.
A workaround is to ressample your inlet into a more rafined dataset.

You will need to share it if you need more help.

1 Like

thanks @mwestphal ;
I will share my case by the end of today, if I cannot resolve it by myself.