CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Access probe function object from post processing code (https://www.cfd-online.com/Forums/openfoam-programming-development/236385-access-probe-function-object-post-processing-code.html)

Agavi May 27, 2021 09:47

Access probe function object from post processing code
 
1 Attachment(s)
Hi everyone!

I am not really experienced in OpenFOAM programming but am writing a post processing utility (based on postChannel), and would like to access the probes function object. My utility should be able to read the coordinates as well as the time series results of the probes function object.

I'm pretty sure I'll have to read the flow field values of the probes ''manually'' since it is probably not registered anywhere in the case setup, but I was wondering if there is a good way to access at least the coordinates of the 'probes' function object, in a smarter way than just reading the postProcessing/probes/0/U file. (Defining a probe object and get the list of probes from there).

Also, I wonder if there is an 'OpenFOAM-based' way to read the time series in the postProcessing/probes/0/U file (see photo). Can I define it as an IOStream and read it so that I can directly input the (x y z) streams into openfoam vectors?

Thank you!

Agave


Attachment 84554


All times are GMT -4. The time now is 02:28.