CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] OpenFoam Mesh Converter

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2010, 18:03
Default OpenFoam Mesh Converter
  #1
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16
Sccrman06 is on a distinguished road
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,
Sccrman06 is offline   Reply With Quote

Old   November 30, 2010, 11:42
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Hello David,

what have you tried, and why has it failed?
akidess is offline   Reply With Quote

Old   November 30, 2010, 11:52
Default What has been tried
  #3
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16
Sccrman06 is on a distinguished road
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?
Sccrman06 is offline   Reply With Quote

Old   November 30, 2010, 11:59
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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).
akidess is offline   Reply With Quote

Old   November 30, 2010, 12:07
Default foamToVTK
  #5
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16
Sccrman06 is on a distinguished road
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?
Sccrman06 is offline   Reply With Quote

Old   November 30, 2010, 12:16
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
You don't need any simulation data, just the folder structure.
akidess is offline   Reply With Quote

Old   November 30, 2010, 12:28
Default Just need the folder structure
  #7
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16
Sccrman06 is on a distinguished road
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?
Sccrman06 is offline   Reply With Quote

Old   November 30, 2010, 15:45
Default
  #8
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I'm assuming you have no time directories. In that case all you need is "mkdir 0" and all will be good.
akidess is offline   Reply With Quote

Old   November 30, 2010, 15:58
Default checkMesh and renumberMesh
  #9
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 16
Sccrman06 is on a distinguished road
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?
Sccrman06 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
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


All times are GMT -4. The time now is 14:57.