CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Plotting sampleDict values and problems with probeLocations format (https://www.cfd-online.com/Forums/openfoam-post-processing/168502-plotting-sampledict-values-problems-probelocations-format.html)

arieljeds March 23, 2016 06:24

Plotting sampleDict values and problems with probeLocations format
 
2 Attachment(s)
Hi everyone,

I have been using probes and probeLocations for some time and getting the data into a csv file using pyFoam:

Code:

pyFoamTimelinePlot.py --fields=<field> --basic-mode=lines --csv-file=<field>.csv postProcessing/
And had no issues with it for a while. I attempted to do the same as I usually do (run foamCalc on various fields, then run probeLocations, and then run pyFoamTimelinePlot.py) but am not getting an error from PyFoamTimelinePlot that the files in postProcessing/probes are the wrong format. I've attached my sampleDict file as a txt file and an example of one of my files created after running the probeLocation utility. I noticed that in a previous example that worked, I didn't have the lines at the top listing the probe numbers and locations.

I have no idea why I would have it this time... am totally stumped on this!!

I tried to work around it by using the sample utility but this creates a new directory for every time step. How would I combine that data from all of the time steps into one file so I can plot over time?

I would really appreciate any help on using these utilities, totally confused because I did have this all working well.

gned May 17, 2016 12:37

Issue solved, Ariel, finally?How?

arieljeds May 17, 2016 12:40

Hi there @gned,

Which version of openfoam are you using?

I discovered that the format that the data for probeLocations is written changes in (I think) version 2.4.0, which makes pyFoamTimelinePlot not work. I resolved this by simply using the source code from an older version (OF 2.3.0) to write the data using probeLocations and then pyFoamTimeLinePlot worked again!

A little bit of a cheating fix, but it worked for me

Hope that helps,
Ariel


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