Saving flow with scalar values along flow lines ?

3 posts / 0 new
Last post
mikolaj.szydlarski
Saving flow with scalar values along flow lines ?
Hi, I wonder if it is possible to "Save Flow" with scalar values read along those flow lines ? For example scalar values used in Color/Opacity Mapping. Such routine would read a scalar value (that would be an additional column in output file) from chosen variable define in datasets (if needed after interpolation). Another (related question): Can I access (and loop) over flow points using build-in python module, and use to those coordinates to read values from data set cubes ? If yes, then I am guessing that writing extracting routine like one describe above wouldn't be a problem. Thank you in advance for all help and suggestions. Cheers, Mikolaj.
alan

Hi Mikolaj,

Neither of these capabilities is currently supported.  I do agree that it would be useful to be able to access the flow seeds from the python API, and/or to output variable values at seed points.

Probably the best way to do this would be to write a python routine that reads the output file from the "save flow" button.  Then you could obtain the variable values in python by reading directly from your source data files.

Sorry this is not easier to do.  I will post a feature request to support this capability.

-Alan

mikolaj.szydlarski
Hi Alan, thank you for your answer. In a mean time I have been trying to modify src code (I love c++ ;-). I found a corresponding routines linked with "Save flow" feature, thus I could iterate over points which 'construct' the given flow line, but I could not find a simple way to obtain interpolated data from my 'cubes' for those points. On the other hand colouring feature i.e., option for choosing color-code to decorate field lines seams to do that in a very efficient manner, but I am guessing that for sake of performance this feature uses OpenGL texture interpolations, thus there may be some loose in precision if one would try to read out final result. Also, this seams to be a part of another module with not that obvious link to the Flow module. For the moment I have implemented a workaround with help of vtk library but I will be happy to try this feature in Vapor once it will be included to the new version. Cheers, Mikolaj.