|
[Sponsors] |
November 29, 2010, 18:03 |
OpenFoam Mesh Converter
|
#1 |
New Member
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16 |
All,
I am attempting to write a mesh converter that converts an inhouse mesh format to polyMesh format. I have completed, I hope, the converter but am having problems viewing it in paraview. This is what I'm looking to get help with. I am very familiar with the mesh format but am lost as to how to view this kind of mesh in paraview. I have all of the files required in the constant/polyMesh folder, i.e. points, faces, owner, neighbour, and boundary. Any help would be greatly appreciated. Thanks, |
|
November 30, 2010, 11:42 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Hello David,
what have you tried, and why has it failed? |
|
November 30, 2010, 11:52 |
What has been tried
|
#3 |
New Member
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16 |
Thanks for the reply. All I have tried is using the documentation to try and figure out how to use paraview to open the mesh. I can't find the correct option in the menu of supported file types in order to read the mesh that I've converted.
What should have I been trying? |
|
November 30, 2010, 11:59 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
You could try to set up a bare-bone OpenFOAM case, then run foamToVTK and open the resulting VTK file with paraview (alternatively paraFoam without the intermediate foamToVTK).
|
|
November 30, 2010, 12:07 |
foamToVTK
|
#5 |
New Member
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16 |
Thanks for the help. I was thinking that was going to be one my only options. I was trying to find out how to read just the mesh without any simulation data so that I can test larger geometries which will allow me to test the complexity of my algorithm(s) without having to contrive some simulations.
Any other avenues I could explore? |
|
November 30, 2010, 12:16 |
|
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
You don't need any simulation data, just the folder structure.
|
|
November 30, 2010, 12:28 |
Just need the folder structure
|
#7 |
New Member
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16 |
Please pardon my ignorance but I guess I am missing something. When I run foamToVTK it exits with a:
"// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM FATAL ERROR: No times selected From function foamToVTK in file db/Time/timeSelector.C at line 240. FOAM exiting" I also still cannot find the correct option in paraview to open the OpenFOAM mesh. Is this possible? |
|
November 30, 2010, 15:45 |
|
#8 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
I'm assuming you have no time directories. In that case all you need is "mkdir 0" and all will be good.
|
|
November 30, 2010, 15:58 |
checkMesh and renumberMesh
|
#9 |
New Member
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16 |
So, I decided to run a checkMesh on the converted mesh and got an error in the form of
" Foam:rimitiveMesh::checkUpperTriangular(bool, Foam::HashSet<int, Foam::Hash<int> >*) const " I did some searching on the forum and then tried the following command " renumberMesh -constant -overwrite " The renumbering, which I thought would take care of the upperTriangular issue, exited with no errors. I then tried the checkMesh utility on the mesh created from renumberMesh and got the same error as before. Any ideas on this one? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[CGNS] CGNS to OpenFOAM mesh converter | alpha23 | OpenFOAM Meshing & Mesh Conversion | 0 | January 22, 2016 10:11 |
[Salome] Mesh conversion Salome to OpenFOAM | VMartinez | OpenFOAM Meshing & Mesh Conversion | 11 | April 21, 2014 03:54 |
salome, openfoam and moving mesh | prhlava | OpenFOAM Running, Solving & CFD | 8 | November 9, 2009 09:59 |