CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   transfering from fluent to openfoam (https://www.cfd-online.com/Forums/openfoam/76739-transfering-fluent-openfoam.html)

T3rmInAt0r June 2, 2010 21:14

transfering from fluent to openfoam
 
hello guys, I am new to CFD community and I would need your experience for something (maybe) too trivial, but because of my level please forgive me.

I have a mesh file, whom I am trying to import into OpenFOAM 1.6

I followed (maybe not 100% sure) http://openfoamwiki.net/index.php/Fluent3DMeshToFoam in order to have the respective mesh file.
Now I would like to set some boundary conditions and run the icoFOAM solver. I know that I can do it by hand, but I am wondering whether there is any "easier" way to set it without editing files since it is extremely error-prone.

[I am thinking like Fluent-way, create mesh, set boundary, run simulation. it is the same here. right? - or what else would I need in order to have a parallel simulation starting from the previous mesh file]

Thanx all in advance
T3rmy

alberto June 3, 2010 09:16

Quote:

Originally Posted by T3rmInAt0r (Post 261473)
Now I would like to set some boundary conditions and run the icoFOAM solver. I know that I can do it by hand, but I am wondering whether there is any "easier" way to set it without editing files since it is extremely error-prone.

No, you have to edit the files. Take a look at constant/polyMesh/boundary to know the names of the BC's, and set them accordingly in your 0 folder.

Quote:

[I am thinking like Fluent-way, create mesh, set boundary, run simulation. it is the same here. right? - or what else would I need in order to have a parallel simulation starting from the previous mesh file]
Yes, it's the same, but with a different approach. That's not "FLUENT-like", you do that with whatever code. :D
If you want, you can write a script in whatever language you prefer (bash, m4, ...) to generate your blockMeshDict, and your initial conditions files once for all, if you plan to do a parametric study or a grid refinement study.

How to run cases in parallel is explained in the damBreak tutorial in the user's guide.

Best,
Alberto

JasonG June 4, 2010 17:43

I have been experimenting with another 3rd party program called "Engrid". This will import an ascii "*.msh" file, and allow the user to pick the boundary conditions and then directly write to the OpenFOAM file structure.

alberto June 4, 2010 20:32

Quote:

Originally Posted by JasonG (Post 261753)
I have been experimenting with another 3rd party program called "Engrid". This will import an ascii "*.msh" file, and allow the user to pick the boundary conditions and then directly write to the OpenFOAM file structure.

Good. But slowly learn to use the text files. It is not that hard, and it makes you more familiar with the code, independently from what you'll use everyday.

Best,

JasonG June 5, 2010 06:20

Quote:

Originally Posted by alberto (Post 261758)
Good. But slowly learn to use the text files. It is not that hard, and it makes you more familiar with the code, independently from what you'll use everyday.

Best,

Yes. I agree. I like having a deeper understanding of how the code is processed and what is actually occurring.

T3rmInAt0r June 5, 2010 11:30

thanx so far
 
I would like to thank sincerely all of you for your answers. The main reason that I would like to have this kind of software is to compare the "handwritting" with the "derived" version and check if I had done everything correctly. Of course I agree up to the point that editing gives insight and knowledge but at the starting point, where I am, personally I believe is the best way out.

Once again thanx all and waiting more proposals (if any)
T3rmy


All times are GMT -4. The time now is 17:15.