CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

OpenFoam Mesh Converter

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 29, 2010, 18:03
Default OpenFoam Mesh Converter
  #1
New Member
 
David
Join Date: Nov 2010
Posts: 6
Rep Power: 6
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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: 6
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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: 6
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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: 6
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: Delft, Netherlands
Posts: 919
Rep Power: 17
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: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
mesh from ANSA to OpenFOAM bephi OpenFOAM Meshing & Mesh Conversion 18 April 8, 2013 07:14
Can OpenFOAM convert foam mesh to stl? liying02ts OpenFOAM Meshing & Mesh Conversion 6 July 15, 2010 05:08
salome, openfoam and moving mesh prhlava OpenFOAM Running, Solving & CFD 8 November 9, 2009 09:59
Mathematical exact definition of mesh quality measures in OpenFOAM checkMesh utility albcem OpenFOAM Meshing Format & General Technical 1 October 31, 2008 05:12


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