CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Create Zero-Folder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2013, 07:23
Default Create Zero-Folder
  #1
New Member
 
Oli
Join Date: Apr 2009
Posts: 27
Rep Power: 17
olhe0002 is on a distinguished road
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
olhe0002 is offline   Reply With Quote

Old   April 19, 2013, 11:07
Default
  #2
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 17
JR22 will become famous soon enough
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 View Post
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).

Last edited by JR22; April 20, 2013 at 15:59. Reason: Added HelyxOS tool to create 0 folder
JR22 is offline   Reply With Quote

Old   April 19, 2013, 16:33
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create a probe with fluent Aenseeiht FLUENT 3 April 29, 2010 03:27
create own case for laplacianFoam rahulrp OpenFOAM Pre-Processing 6 April 8, 2010 00:03
[ICEM] how can i create a consistent transitions between tet and hex? specifically my model? snailstb ANSYS Meshing & Geometry 3 March 15, 2010 20:26
[snappyHexMesh] Folder structure from snappyHexMesh elisenda OpenFOAM Meshing & Mesh Conversion 3 January 6, 2010 03:52
Create new material: Natural gas Van FLUENT 0 August 18, 2005 04:55


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