@fabian: It works like this: Source (first argument) gets copied to destination(second argument). Unfortunately if the destination folder exists, it gets overwritten (so in your case the _poly-folder was overwritten with the initial condition of the _epsilon-folder? The _rng-folder was ignored?) But this should happen without the traceback you posted (I found no way to reproduce this)
Does pyFoamCloneCase.py work for regular cases? Try something like
pyFoamCloneCase.py $FOAM_TUTORIAL/interFoam/damBreak /tmp/testDam
(Anyway: I'll change the default behaviour of pyFoamCloneCase.py to not overwriting existing data)

@jason:
Q1: No. The graphs are not saved. One of the reasons is that for performance reasons the left (older) part of the graph becomes "cruder" (data is resampled).
Q2: I'm not sure if the --write-files option was already implemented in the version you have (check with -h)
Q3: I'm afraid: yes.

__________________
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

I attached two small python scripts for creating some matplotlib plots of your log data and a small script which creates looks for boundaries and creates the corresponding 'initial' data structure with having to use Foamx. Both scripts are nothing special and no great python programing style, but they work and in combination with emacs and dired even better ;-) Maybe it is possible to include them into pyFoam!?

The plotting needs the case directory and the boundary-set-up needs the directory of the variables. The boundary setup works for simple cases and on boundaries declared by starting letters like 'w' for walls, 'i' for velocity inlets and 'o' for pressure outlets... so it's nothing special, but maybe someone would like to use it as a start...

I just uploaded a new release (0.4.2) to the Wiki, but I'll have a look at your stuff for the next version. For your script for setting for setting default values I noticed that the pyFoamCreateBoundaryPAtches.py (which does something similar, but not the same) was not documented on the Wiki.

Some problems that have been adressed in this thread have been incorporated in the new release
* the way mpirun is called can be configured
* pyFoamCloneCase is hopefully more careful when juggling with data (your lost case)
* Plotting now uses either Numeric or numpy (whatever is available)
* the empty plots-problem I still can't put my finger on (but the plotWatcher be a bit more responsive when starting up - it sometimes needed one more timestep to start plotting)

Various utilities have been improved (not all changes are documented on the Wiki-page, but the --help-option might reveal some new options for some) and some new utilities have been added.

__________________
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

Hi Bernhard,
nice work! I saw your pyFoamCreateBoundaryPatches, but it probably did not work due to my syntax of the boundaries. I usual use something like 'w-part1' and some of your tools have problems with the '-' sign...
Probably your approach is much better and powerful then mine anyways... see you and talk to you in London!?

Looked at the grammar of the parser: you're right. It doesn't allow minus in names although OF accepts it. I will fix this (I just don't happen to use minus in patch-names)

See you in Windsor

Bernhard

__________________
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

How very embarrassing. You're using the recent 0.4.2-version, right? From that version the required Gnuplot-Package was missing. I uploaded an update (0.4.2.1) to the Wiki.

Sorry for any inconvenience caused.

BTW: Fabian. The fix that allows minus in patch-names is also included.

__________________
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

Hi Bernhard,
I think that I have the same problem as Markus Rehm. PyFoam work perfectly except plotting. Here is my output for standard cavity tutorial (I have the same output for all cases and solvers).

Strange. I have CentOS5(==RHEL5) x64 with python2.4 and gnuplot4.0 (so it can't be a pure 32/64-bit issue) and I don't have that problem. Just tested it with python2.5 and gnuplot4.2 and it works too (so I don'T think that's the problem). Which version of PyFoam are you using? Have you checked whether for your configuration either Numeric or numpy is installed? (in Python ineractive mode either say
import Numeric
or
import numpy)

Bernhard

PS: I'll try and write a small test for that problem

__________________
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

I found why PyFoam do not plot with OpenSUSE x64 (not only with OpenSUSE). The problem is gnuplot-py-1.7.
I have downloaded and installed the latest version of gnuplot-py from cvs (trunk). So, with new gnuplot-py I have no warnings about empty range and plotting is working.

Thanks for pointing that out (am ashamed that I didn't come up with a solution yet). I hoped to have removed that kind of problem by adding Gnuplot.py as a ThirdParty-Library to the distribution. Must check whether the preinstalled or the distributed version take precedence. Will also have a look whether the CVS-version differs from the version that is included

Bernhard

__________________
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

Can you tell me, where you found the CVS-version of gnuplot-py that works? It seems that the project http://gnuplot-py.sourceforge.net/ switched to Subversion (wise decision) and I don't want to switch to the new version (which seems to be in the works) before it is released

Bernhard

__________________
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

Should do the trick for you. Basically it works by getting the "root entry" and then applying the subexpression to it. It's a bit clumsy, but that is because subexpressions were added to the utility as an afterthought.

To be honest: I havn't used that utility in a long time. One of the reasons is, that some quotes are needed for the shell (and stripped by it) and some are by python and it is a bit harder to get it right (I usually write a script using the ParsedParamterFile-class, that works quite pythony; but I understand that it's not an option for everyone)

Bernhard

PS: there might be a bug in the distribution that stops the utility from working with fields. It's not really a bug. It's a case of being too clever.

PPS: there might be a way to let the utility work the way you tried to use it. But I can't promise anything

@Ivan: I will have a look at the new version (whether it breaks anything) and try to include 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