|
[Sponsors] |
April 6, 2009, 13:34 |
|
#21 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
a) There was only one time-step yet (in your case that would be t=1) b) there is more than one time-step but pyFoam doesn't recognize it. This happened in the past (certain solvers use a different annotation for the time-steps) Could you tell me a) which solver you're using (and which version of OF) b) could you provide me with the complete output of two or three time-steps so that I can try to reproduce the problem Quote:
Quote:
Bernhard |
||||
April 7, 2009, 09:59 |
|
#22 | |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi Bernhard,
I got the error message for example with the solver icoFoam by solving the tatorial-file from the tutorial icoFoam/cavity. The OpenFOAM version is the git version (OpenFOAM-1.5.x.git) Here is the output from the log file: Quote:
Regards, Thomas |
||
April 7, 2009, 15:09 |
|
#23 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Thomas!
Strange. Could you try the watcher on that file with the option --tail=0 ? Bernhard |
|
April 8, 2009, 03:51 |
|
#24 | |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi Bernhard,
with pyFoamPlotWatcher.py --tail=0 logfile I get nearly the same massage: Quote:
I installed pyFoam as root, too, but nothing changed. Regards, Thomas |
||
April 8, 2009, 12:00 |
|
#25 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Have I understood you correctly: - OpenSuse with Python 2.6: Not working - Ubuntu with Python2.6 on 64 Bit: working (other posting) Weird. I think the problem is that the regular expression for "Time =" is not correctly matched on the Suse-system. I have a number of suspicions that involve stuff like Unicode and other encoding issues (nevertheless this would be a very weird problem). I'll try to come up with a test that helps to show what the problem might be, but it'll take some time. Just another weird idea: You're using Suse and your surname sounds german: could you try this again with a user with English locales (Keyboard can stay ) - if you're using non-english locales. This is one of the "other encoding"-ideas Bernhard BTW: Pointing out other peoples typos is the sign of a very simple mind, but the "I get nearly the same massage" was one of the highlights of this day. One of these days I really should try OpenSuse .... |
||
April 9, 2009, 12:08 |
|
#26 |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi,
you're right, I'm from Germany (that's the reason for my bad English.. ) I have changed to English locales, but the problem still exists. The Ubuntu System uses Python 2.5.1 with GCC 4.1.3. But the log-file, which has been created in the Suse system, works. So you can use the log file (created in Suse) and plot it in Ubuntu. Happy Easter! Thomas |
|
April 14, 2009, 16:35 |
|
#27 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
Bernhard |
||||
April 27, 2009, 17:35 |
|
#28 | |
Member
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17 |
Quote:
did you prepare simple tutorial how to install and run pyFoam? i read this thread, and seems interesting but i dont know how to start with your script please show me any link how to start from the simple work with pyFoam and what is the latest ''feature'' of pyFoam has right now? please so be kind to teach me danke |
||
April 28, 2009, 13:36 |
|
#29 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi!
Quote:
http://openfoamwiki.net/index.php/Co...m#Installation Quote:
Every utility has documentation that is shown when calling it with the --help-option Sorry. That's all the documentation there is. Bernhard |
|||
October 5, 2009, 11:13 |
|
#30 |
Senior Member
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17 |
Hi.
Curious. Did this problem find its solution? I am experiencing the same error messages about empty ranges as Thomas did. The system I am using is 64 bit OpenSUSE 11.1 and OpenFOAM 1.6.x. Kindly, Rasmus |
|
October 7, 2009, 09:24 |
Was this problem sorted?
|
#31 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi,
Firstly pyFoam is a great utility. But I sometimes, using pyFoamPlotWatcher, get a similar error to that posted above, and a blank gnuplot appears. Code:
Warning: empty x range [1:1], adjusting to [0.99:1.01] Warning: empty y range [1:1], adjusting to [0.99:1.01] The strange thing is that 'pyFoamPlotWatcher' works for me on similar cases... strange. I just recently downloaded pyFoam from using svn from the link on the wiki. Was this problem figured out? Philip BTW: I am using OpenSUSE 11.0 32 bit and OF-1.4.1-dev EDIT: When I try run the pyFoamPlotWatcher on the same case later, it works. I think the reason I got the error is because the first timestep hasn't been completed yet. I have many corrector steps within each timestep and didn't realise it was still on the first step. So problem solved from my perspective... i think/hope. Last edited by bigphil; October 7, 2009 at 11:18. Reason: Problem figured out I think |
|
October 9, 2009, 13:42 |
|
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
October 9, 2009, 13:50 |
|
#33 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Thanks for the reply Bernhard,
I understand now. Philip |
|
October 21, 2009, 08:21 |
pyFoamPlotWatcher with python 2.6?
|
#34 |
Senior Member
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17 |
Is it confirmed that pyFoamPlotWatcher works with python 2.6? I am asking because I just saw that there is no problem with plotting residuals on my server where python 2.3.5 is installed as default.
Running pyFoamPlotWatcher.py on the very same logfile on my own computer (with python 2.6) spits out the *wrong* error messages about empty x and y ranges. As Bernhard points out in a post above, it appears to be something related to pattern matching. Best, Rasmus |
|
October 21, 2009, 08:39 |
|
#35 |
Member
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17 |
Hello Bernhard!!
I have a small problem when installing the latest of PyFoam: when I try to compile it (as a regular user, not as root, on Gnome), I get this following error: Neither numpy nor Numeric python-package installed. Plotting won't work. And indeed, if I want to use PyFoamPlotWatcher.py utility, it doesn't work. Any idea if I am missing some package, or how I can go around this error message? Thank you very much! Olivier |
|
October 21, 2009, 14:02 |
|
#36 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
They are quite common and almost any python-software that does large numerical array uses them. Talk to your friendly neighborhood admin about installing one of them Bernhard |
||
October 21, 2009, 14:06 |
|
#37 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
October 21, 2009, 15:32 |
|
#38 |
Member
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17 |
Thank you for the answer Bernhard,
I actually found some NumPy installed somewhere in the system, but I think it is not at the right place so that PyFoam doesn't find it. Would you happen to know where you specify the path of NumPy in PyFoam? I guess somewhere before the compilation there is a file that is read where NumPy's path is given. If I could change this path to the one that I have, I guess there would be no problems. Cheers, Olivier |
|
October 21, 2009, 15:43 |
|
#39 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
October 21, 2009, 15:48 |
|
#40 |
Member
olivier Petit
Join Date: Mar 2009
Location: Göteborg, Sweden
Posts: 67
Rep Power: 17 |
Then I am missing something, because I am poiting at the NumPy installation in the PYTHONPATH. I will try to have a look at it tomorrow. I hate when I am not admin...
Olivier |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 04:45 |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 13:13 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 06:44 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 12:00 |