CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Create Zero-Folder (http://www.cfd-online.com/Forums/openfoam-pre-processing/116451-create-zero-folder.html)

olhe0002 April 19, 2013 07:23

Create Zero-Folder
 
Hello Foamers,

i'm using a special commercial Foam Version for serveral years, especially
simplePorousFoam and buoyantSimpleFoam.
In the future we want to switch to the official openFoam.

Is there meanwhile an application, that creates the Folder "0" with the necessary files "U" "T" "p" and so on, based on the boundaries in the polyMesh (for example every boundary is a wall).

Or do you still have to create "U" "T" "P" by hand and then using changeDictionary?

Best Regards and thanks!

Oli

JR22 April 19, 2013 11:07

I ran into the same problem initially, and found out that you have to do a couple of things you have to do and watch out for. The transition will likely cause you grief:
  1. In your software, try to build a model in serial and not in parallel, and copy that 0 folder.
  2. Make sure that the directory/file structure is the same as a typical OpenFoam case. Some commercial software packages change this structure. Go into BlockMesh, make sure it is in the correct directory and the header agrees. Look at the definitions there and make sure that they are patch or wall depending on your case.
  3. SnappyHexMesh allows you to name STL meshes by using patchInfo expression when defining geometries from STL files. The names of STLs change when your model is built (sometimes a _Mesh, _cvg, or other trailing text is added, watch for this). This information will be transferred to your "boundary" file.
  4. If you are using multiprocessors, and it is not working, you might have to follow this mpirun recipe which I found worked for me. However, try getting your model to run in a single CPU before jumping to parallel.

Update: To create a Zero(0) folder, I have used an open source pre-processing tool called Helyx-OS. You might want to try it, it is available in SourceForge. Use the serial mode (as in single CPU) to get the zero directory at the case folder.

Quote:

Originally Posted by olhe0002 (Post 421726)
Is there meanwhile an application, that creates the Folder "0" with the necessary files "U" "T" "p" and so on, based on the boundaries in the polyMesh (for example every boundary is a wall).


wyldckat April 19, 2013 16:33

Greetings to all!

I haven't studied OpenFOAM 2.2 closely (yet), so I don't know if they've added anything new for setting up new cases.

But I do remember reading something about PyFoam being able to do this... a quick search lead me to this presentation: http://www.tfd.chalmers.se/~hani/kur...011/pyFoam.pdf

Best regards,
Bruno


All times are GMT -4. The time now is 23:43.