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

[PyFoam] why pyFoamPlotRunner doesn't plot continuity residuals?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2013, 09:56
Default why pyFoamPlotRunner doesn't plot continuity residuals?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 30, 2013, 13:20
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 14:06
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 30, 2013, 15:18
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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
j-avdeev and immortality like 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, 13:13
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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, 60 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   May 1, 2013, 14:17
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 17:08
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   May 4, 2013, 08:26
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 08:56
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

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

Old   May 4, 2013, 13:18
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 07:13
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
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
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Reply


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
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 172 December 6, 2024 07:20
plot residuals in multiregion solver val46 OpenFOAM 4 December 12, 2016 07:06
Plot Residuals in each Outer Iteration using foamLog or PyFoam coolcrasher OpenFOAM Running, Solving & CFD 1 October 30, 2015 11:41
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 15:16.