CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Plotting sampleDict values and problems with probeLocations format

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 07:24
Default Plotting sampleDict values and problems with probeLocations format
  #1
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 7
arieljeds is on a distinguished road
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.
Attached Files
File Type: txt sampleDict.txt (10.7 KB, 49 views)
File Type: txt vorticity.txt (11.0 KB, 12 views)
arieljeds is offline   Reply With Quote

Old   May 17, 2016, 13:37
Default
  #2
New Member
 
gned
Join Date: Oct 2012
Posts: 18
Rep Power: 10
gned is on a distinguished road
Issue solved, Ariel, finally?How?
gned is offline   Reply With Quote

Old   May 17, 2016, 13:40
Default
  #3
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 7
arieljeds is on a distinguished road
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
arieljeds is offline   Reply With Quote

Reply

Tags
post processing, probedict, pyfoam, pyfoamtimelineplot.py, sample

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence problems using extreme coefficient values like 1e-16 with porous jump recepky FLUENT 3 November 11, 2017 03:12
Polyflow : Fibre drawing, Problems when viscosity recheaches high values (about 1e14) michael.jeunehomme@gmail. ANSYS 0 August 13, 2015 07:13
Problems with the values of "OBJFUNC_SCALE" Fang-SIAMM SU2 1 April 11, 2013 14:27
CFX problems with supersonic inlet condition - Inlet values in CFX-Post are wrong jannnesss CFX 5 February 25, 2011 17:24
Values of k and e for multiphase problems!! zack FLUENT 0 January 28, 2006 03:16


All times are GMT -4. The time now is 08:45.