|
[Sponsors] |
pyfoamPlotRunner and Watcher do not show any plots, only terminal outputs |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 15, 2022, 04:21 |
pyfoamPlotRunner and Watcher do not show any plots, only terminal outputs
|
#1 |
New Member
Marrie
Join Date: Dec 2014
Posts: 13
Rep Power: 0 |
I am running the Vortex Shedding c2 case. I run my case using the following commands:
Code:
foamCleanTutorials Code:
fluent3DMeshesToFoam ../../../meshes_geometries/vortex_shedding/ascii.msh Code:
checkMesh Code:
renumberMesh -overwrite Code:
icoFoam | tee log.icofoam Code:
pyFoamPlotWatcher.py log.icofoam Code:
gnuplot scripts0/plot_coeffs Code:
paraFoam Code:
pyFoamPlotWatcher.py log.icofoam I made sure that my simulation does have a lot of time step data (350 seconds in total, and plot_coeffs do have a lot of time data). I also tried to use Code:
pyFoamPlotRunner.py icoFoam So, to sum up: Code:
pyFoamPlotWatcher.py log.icofoam https://pastebin.com/iKqkDD07 Code:
pyFoamPlotRunner.py icoFoam https://pastebin.com/nzJPPzCr I see no plot outputs popping up. I am on Arch Linux and also tried to switch Desktop Environment to see if it helps, still didnt get any plots. Also, i made sure that my Code:
gnuplot Any help is appreciated. |
|
August 26, 2022, 09:43 |
|
#2 |
Member
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17 |
Do you use openfoam10?
In OF10, I have a same issue for PyFoam. |
|
August 29, 2022, 04:19 |
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Trigger warning: this posting may contain sarcasm. Don't read if you find that disturbing
Yeah. It is OF10 PyFoam needs to the detect the current time to do the plotting. For the last 20 years OF printed out the time in this format Code:
Time = 42 Code:
Time = 42s As a temporary fix you can create a file ~/.pyFoam/pyfoamrc.d/of10.cfg with the content Code:
[SolverOutput] timeregexp: ^(Time =|Iteration:) (.+)s$ For the next PyFoam-version I'll hardcode a time-expression that - works for older versions (because I think that backwards-compatibility is courtesy towards the user) - recognizes the alternate format - does not accept everything that has "Time =" in it as a valid time (this is the hard part because there are outputs like "ExecutionTime =" that should not fit)
__________________
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 |
|
August 29, 2022, 07:52 |
|
#4 |
Member
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17 |
Thanks for your kind explanation.
|
|
|
|