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

why pyFoamPlotRunner doesn't plot continuity residuals?

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

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   April 30, 2013, 08:56
Default why pyFoamPlotRunner doesn't plot continuity residuals?
  #1
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
is it due to output of rhoCentralFoam and I have to modify it or can do another thing with pyFoam to plot?
Code:
pyFoamPlotRunner.py --hardcopy --with-courant --no-pickled-file --procnr=4 rhoPimpleFoam
and what does --no-pickled-file do in the command?
immortality is offline   Reply With Quote

Old   April 30, 2013, 12:20
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
is it due to output of rhoCentralFoam and I have to modify it or can do another thing with pyFoam to plot?
Code:
pyFoamPlotRunner.py --hardcopy --with-courant --no-pickled-file --procnr=4 rhoPimpleFoam
and what does --no-pickled-file do in the command?
Have you used --help to look at the documentation?

Usually in the *.analzed directory you find a file with all the data necessary to reproduce the plots. --no-pickled-file obviously doesn't write this.
__________________
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
gschaider is offline   Reply With Quote

Old   April 30, 2013, 13:06
Default
  #3
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
help of the pyfoam?
I have been using that for rhoPimpleFoam without any problem.it plots residuals for rhoCentralFoam but not continuity residuals.
where can i find some explanations about its other options? i couldn't find any in pyfoam contrib.
immortality is offline   Reply With Quote

Old   April 30, 2013, 14:18
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
help of the pyfoam?
I think I mention it in every presentation/webpage about pyFoam that for every utility if you add the option --help that you get a complete list of the options plus description

Quote:
Originally Posted by immortality View Post
I have been using that for rhoPimpleFoam without any problem.it plots residuals for rhoCentralFoam but not continuity residuals.
where can i find some explanations about its other options? i couldn't find any in pyfoam contrib.
PyFoam looks for a line like "Time = ...". If it finds that then it should print residuals. If no info about continuity is printed then no continuity will be plotted
immortality likes this.
__________________
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
gschaider is offline   Reply With Quote

Old   May 1, 2013, 12:13
Default
  #5
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
why execution time is like this figure?(clock time lines are vertical.why?)
and whats the difference between cpu and clock time?
Attached Images
File Type: png execution.png (3.9 KB, 7 views)
immortality is offline   Reply With Quote

Old   May 1, 2013, 13:17
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
why execution time is like this figure?(clock time lines are vertical.why?)
and whats the difference between cpu and clock time?
CPU is the time used by the CPU. Clock is the time in the real world. They may differ if the process doesn't get the whole CPU. Clock-time is only printed with a resolution of 1s. Thus the "vertical" lines. Look at the output of the solver
__________________
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
gschaider is offline   Reply With Quote

Old   May 3, 2013, 16:08
Default
  #7
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
is there a simple instruction on how reproduce graphs from .analyzed file?when it will be useful?
and i didn't find out what does --raise option do.
immortality is offline   Reply With Quote

Old   May 4, 2013, 07:26
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
is there a simple instruction on how reproduce graphs from .analyzed file?when it will be useful?
With the pyFoamRedo.py-utility. It is useful if you have large logs (in the GB-range) that would take quite some time to process with the pyFoamPlotWatcher. If you haven't run into that problem yet you don't need the utility

Quote:
Originally Posted by immortality View Post
and i didn't find out what does --raise option do.
If you have to ask you don't need it
__________________
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
gschaider is offline   Reply With Quote

Old   May 4, 2013, 07:56
Default
  #9
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
why after plotting residuals by pyFoamPlotWatcher.py from log file it waits and when use ctrl+c the figure becomes disappeared.how can save the residual figure after run?(I think this would be a good way to have residuals altogether after ending of run)
and this command doesn't work:
Code:
probeDisplay.py
Code:
ehsan@Ehsan-com:~/Desktop/shock_tube_and_backwards/shock_tube_3.5Mpa$ probeDisplay.py
probeDisplay.py: command not found
I just want to know about --raise option.

Last edited by immortality; May 4, 2013 at 08:33.
immortality is offline   Reply With Quote

Old   May 4, 2013, 12:18
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
why after plotting residuals by pyFoamPlotWatcher.py from log file it waits and when use ctrl+c the figure becomes disappeared.how can save the residual figure after run?(I think this would be a good way to have residuals altogether after ending of run)
--help is your friend: --hardcopy already does that

Closing windows after Ctrl-C is a design decision: closing 10 windows "by hand" as well would be annoying. And BTW: you can override this behaviour with --persist

Quote:
Originally Posted by immortality View Post
and this command doesn't work:
Code:
probeDisplay.py
Code:
ehsan@Ehsan-com:~/Desktop/shock_tube_and_backwards/shock_tube_3.5Mpa$ probeDisplay.py
probeDisplay.py: command not found
I just want to know about --raise option.
probeDisplay.py? Don't know that command
__________________
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
gschaider is offline   Reply With Quote

Old   May 5, 2013, 06:13
Default
  #11
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
sorry.that was a script.I executed it in paraview withis error:
Code:
  p, li { white-space: pre-wrap; }  Python 2.7.2+ (default, Jul 20 2012, 22:32:25) 
 [GCC 4.6.1] on linux2
 >>> from paraview.simple import *
 Traceback (most recent call last):
   File "<string>", line 4, in <module>
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython
  >>> 
 Traceback (most recent call last):
   File "<string>", line 11, in <module>
   File "/usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/__init__.py", line 15, in <module>
     from paraview import servermanager
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython
 >>> 
 >>> 
 >>> 
 Traceback (most recent call last):
   File "<string>", line 11, in <module>
   File "/usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/__init__.py", line 15, in <module>
     from paraview import servermanager
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/servermanager.py", line 43, in <module>
     import paraview, re, os, os.path, new, sys, vtk
   File "/opt/paraviewopenfoam3120/lib/paraview-3.12/site-packages/paraview/vtk/__init__.py", line 1, in <module>
     from vtkCommonPython import *
 ImportError: No module named vtkCommonPython
immortality is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial of how to plot residuals ! wolle1982 OpenFOAM Running, Solving & CFD 66 April 11, 2013 07:08
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 7 March 15, 2013 06:08
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 22:20.