CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Running a very large parameter range with OpenFOAM-2.1.x (http://www.cfd-online.com/Forums/openfoam-solving/108148-running-very-large-parameter-range-openfoam-2-1-x.html)

JLight October 15, 2012 22:58

Running a very large parameter range with OpenFOAM-2.1.x
 
Hi OF Users!
I want to run a wide range of parameters for a case that I am studying. When using fluent, I used to work with Python to create the journal files put them in seprate directories and then submit the job (work is done on a HPC).

I would like to do the same in OpenFOAM-2.1.x. I have seen some examples in python wrapers called pyFoam now pythonFlu.

Unfortunately I am not able to compile pythonFlu against OF-2.1.x.

The binaries are for python24 which make it tough for me to work on my laptop (to then later submit to the HPC). I use ArchLinux and there is no offical Python24.

Is there any tool that I can use to create OF cases.

Cheers!
Nishit

gschaider October 16, 2012 04:24

Quote:

Originally Posted by JLight (Post 386782)
Hi OF Users!
I want to run a wide range of parameters for a case that I am studying. When using fluent, I used to work with Python to create the journal files put them in seprate directories and then submit the job (work is done on a HPC).

I would like to do the same in OpenFOAM-2.1.x. I have seen some examples in python wrapers called pyFoam now pythonFlu.

Unfortunately I am not able to compile pythonFlu against OF-2.1.x.

The binaries are for python24 which make it tough for me to work on my laptop (to then later submit to the HPC). I use ArchLinux and there is no offical Python24.

Is there any tool that I can use to create OF cases.

Cheers!
Nishit

Well. If you don't want to modify the solvers anyway then you can use the other PyFoam (which is still called PyFoam). PyFoam can be used for manipulating case files and running the solvers (also analyzing the output of those), it has no compiled parts. But you can't write new solvers like you can in PythonFlu.

For an example on a parameter variation see http://openfoamwiki.net/index.php/Co...eter_Variation (while writing I realised that the example still uses the pre-1.5 convention for utility-calling. But it should give you an idea)


All times are GMT -4. The time now is 19:10.