CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   pyFoam, pyFlu, extend: How does they relate? (https://www.cfd-online.com/Forums/openfoam/88262-pyfoam-pyflu-extend-how-does-they-relate.html)

Horus May 12, 2011 08:08

pyFoam, pyFlu, extend: How does they relate?
 
Hello,

I've just began working with pyFoam (which seems pretty well designed so far...). But I'm a bit confused about the projekt structure:

There is http://sourceforge.net/projects/pyfoam/ which says that the project has moved to pyFlu... the homepage of pyFlu though makes not mention of that (beside one sentence). The current released package contains no sign of pyFoam and on the projekt page I found no reference to a VCS (subersion, git, ...).

http://openfoamwiki.net/index.php/Contrib_PyFoam however links to http://sourceforge.net/projects/openfoam-extend/ which contains an SVN with the source code of pyfoam.

My questions are:

- Are pyFoam and pyFlu are going to merge?
- What is the current source code repository for pyFoam?
- How do these projects relate...?

Thanks!

elvis May 12, 2011 10:19

Hi,

PyFoam (swak4foam http://openfoamwiki.net/index.php/Contrib/swak4Foam and many other tools like groovyBC and funkySetFields ) are based on the work made by Bernhard Gschaider.
pyFlu is the successor of "valushaka (with another pyfoam)" and is based on the work of Alexey Petrov and his collegues read http://pythonflu.wikidot.com/ or http://www.cfd-online.com/Forums/ope...vulashaka.html
Bernhard Gschaider made some comments in that thread as well

Horus May 12, 2011 10:56

Ok, thanks for the (non) clarification. ;-)

The openFoam community seems to be pretty scattered and suffering some not-invented-here syndrome.

I think I'll stick the pyFoam project mentioned here http://openfoamwiki.net/index.php/Contrib_PyFoam.

Horus May 17, 2011 16:08

Just another follow up...

Any one knows whats the source repository in which development happs of pyfoam is? If I understand the wiki doc correctly it's not https://openfoam-extend.svn.sourcefo...ipting/PyFoam/

(e.g. for contributing back fixes)

gschaider May 18, 2011 04:32

Quote:

Originally Posted by Horus (Post 308023)
Just another follow up...

Any one knows whats the source repository in which development happs of pyfoam is? If I understand the wiki doc correctly it's not https://openfoam-extend.svn.sourcefo...ipting/PyFoam/

(e.g. for contributing back fixes)

Currently development happens in a private SVN. From time to time I mirror that to the SVN above and call it a release.

Changes done to the Sourceforge-SVN will be transplanted to my development version

Bernhard

alexey2petrov May 18, 2011 06:04

Hi Horus,
Quote:

Originally Posted by Horus (Post 307369)
The openFoam community seems to be suffering some not-invented-here syndrome

Here is some explanation on this point :
Quote:

Originally Posted by alexey2petrov (Post 302327)
pyFoam and pythonFlu suggest completely different approaches (one controls OpenFOAM solver execution from outside, another aims to define OpenFOAM solver from inside) and do not overlap their goals with each other

Actually, this was an accidental name collision, not "me-not-invented-yet" syndrome. To resolve this issue VulaSHAKA's pyFoam project was recently renamed to pythonFlu. So, if you are interested into enhancing your CFD calculation environment with some kind of automation and interactivity, OpenFOAM community will be happy to supply you with two different approaches, at least - what ever you prefer ;).

Best regards,
Alexey

Horus May 19, 2011 06:01

Ah, ok. The name collision confused me.

Bernhard: If I had any patched for pyFoam should I send a diff to yours? Have you ever thought about switching to a more open development model?

gschaider May 19, 2011 10:44

Quote:

Originally Posted by Horus (Post 308310)
Bernhard: If I had any patched for pyFoam should I send a diff to yours? Have you ever thought about switching to a more open development model?

Yep. If that becomes a habit I'd prefer to set you up access to the SVN because that way contributions can be attributed to whoever did them

Horus May 19, 2011 12:37

Let's see what comes...

I dare to post my first question here. I try to use CaseBuilder to prepare a case. My understanding is:

- CaseBuilder take the files listed in parameterfiles from the template dir and copies them over. (+ modifications)

- If <meshpreparation mode="utility"> is given it runs the specified utility on the new case.

- It creates the boundary condition based on <boundaries> and <bc>.

I have an Case.template directory which just contains 0/.., constant/.., system/... No polyMesh anywhere.

pyFoamCaseBuilder.py case.pfcb case.test DrivFliess110209.msh

gives (case.test does not exist):

Problem reading the boundary file: [Errno 2] No such file or directory: '[...]/sandbox/case.test/constant/polyMesh/boundary.gz'

which is perfectly correct. But why is fluentMeshToFoam no being run before, which should create the polyMesh.

My case.pfcb: http://pastebin.com/aKUiu9zh

Thanks!

Horus May 21, 2011 13:49

Quote:

Originally Posted by gschaider (Post 308378)
Yep. If that becomes a habit I'd prefer to set you up access to the SVN because that way contributions can be attributed to whoever did them

Somehow I'm to stupid to figure out how to send a private message to you... :confused:

I've made a bugfix to CaseReport.py. What's the best way to contribute it back to you?


All times are GMT -4. The time now is 03:34.