|
[Sponsors] |
November 21, 2012, 12:39 |
gives unexpected output
|
#1 |
New Member
Florian
Join Date: Mar 2012
Location: Munich
Posts: 13
Rep Power: 14 |
Hi All,
I want to use pyFoam for getting some plots like timeStep and Courant number. When I type Code:
pyFoamPlotWatcher.py --progress out.dat Any idea how to solve this? Best regards, Florian |
|
November 21, 2012, 15:04 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
All this behaviour (and also the writing of datafiles) can be controlled by options: the --help-option is your friend and will tell you all there is to know about these (I can't stress enough that the documentation of the PyFoam-utilities is "hidden in plain sight" with that option: if you think a utility "should be able to do this" check there first)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 28, 2012, 05:24 |
|
#3 |
New Member
Florian
Join Date: Mar 2012
Location: Munich
Posts: 13
Rep Power: 14 |
Ok, thank you for the quick reply. The --with-all option did the job.
By the way, is there a size limit for log files? I have a log file with 1.3GB and pyFoamPlotWatcher gets stuck after 28% of it. Same command works perfectly fine for a log file with 66MB. Regards, Florian |
|
November 28, 2012, 06:11 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Did 1Gig logs some time ago with the watcher. The experience lead to the development of a new feature: pyFoamRunner.py (and other utils) writes in the *.analyzed-directory a file called pickledPlots. This contains all the data collected during the run. With the utility pyFoamRedoPlots.py you can produce the plots in an instance (this only works for plots that were defined during the running: the stuff you get with --with-all and customRegexp. If you add stuff to customRegexp AFTER the run you've got to rerun the watcher) Anyway: Because of this feature I don't have experience with current versions of PyFoam+large logs+pyFoamWatcher.py
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 28, 2012, 06:32 |
|
#5 |
New Member
Florian
Join Date: Mar 2012
Location: Munich
Posts: 13
Rep Power: 14 |
I don't observe any excessive memory usage, and disk space is also still available. But I will resort to the pyFoamRunner and pyFoamRedoPlots process in the future.
Thanks again for your help and the useful pyFoam-toolbox! Regards, Florian |
|
November 28, 2012, 07:54 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Just make sure that before you go into production that pyFoamRunner.py doesn't show a similar behaviour with the run that produced the 1.3Gig log. Although the only thing that could be a problem with pyFoam is a counter variable for the lines, but that is a long so it shouldn't be a problem ... I think
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
Tags |
pyfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ANSYS Workbench on "Uncertified" Linux Distros | hsr | CFX | 289 | April 20, 2023 10:23 |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 13:08 |
FLUENT installation on UBUNTU 12.04 (LTS) | teymourj | FLUENT | 2 | March 1, 2017 23:24 |
error 262144 and unexpected disconnect when run on 2 nodes | Emily1412 | SU2 Installation | 1 | April 10, 2014 18:08 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |