CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Openfoam mesh file format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2017, 13:54
Default Openfoam mesh file format
  #1
New Member
 
nkalkote's Avatar
 
Nikhil
Join Date: Mar 2016
Location: India
Posts: 15
Rep Power: 10
nkalkote is on a distinguished road
Hello guys,

Does anyone know a link or reference to a document which explains how elements and their connectivity is stored in openfoam mesh file.

Currently our solver supports .cgns files. we are looking forward to read and write openfoam meshes.

Thanks!!
nkalkote is offline   Reply With Quote

Old   October 4, 2017, 14:05
Thumbs up
  #2
New Member
 
Thomas Evans
Join Date: Dec 2015
Posts: 21
Rep Power: 10
windscion is on a distinguished road
OpenFOAM is designed to obscure the fact that this starts out fairly simple. Also, the documentation is very much piecemeal, but chapter 5 of the user guide is a good place to start.

Run a tutorial (any tutorial) then look under constant/polyMesh. There will be at least five files:
  • boundary
  • points
  • faces
  • owner
  • neighbour

As long as these are in ASCII format, they are mostly self-explanatory.

'points' simply lists vertices in 3d.
'faces' lists faces generated by tracing a given set of vertices in order.
'owner' and 'neighbour' list the owner and non-owner cells which are connected by the given face. Faces without neighbour cells are exterior faces, and must be part of a boundary (see the 'boundary' file). You can denote a lack of neighbour either with a -1 or by simply truncating the neighbour file. This is why the neighbour file is often much shorter than the owner file. Also, for a given face the index of owner must be less than the index of neighbour. Plus, the face vector must point out of the owner cell.

For boundary, know that the order of the faces must be:

interior faces (no entry in boundary file)
first patch
second patch
...
last patch

*****************

Also, see
https://www.cfd-online.com/Forums/op...mpactlist.html

for faceCompactList and how to adjust for it.

******************

Some meshes included Zones and crap that I never use, good luck with those.
windscion is offline   Reply With Quote

Old   December 3, 2017, 09:24
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,
just my 2 cent
take a look at
https://openfoamwiki.net/index.php/S...GNS_Converters

there i a commercial tool as well
https://www.cfd-online.com/Forums/op...converter.html
elvis 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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 03:50
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32


All times are GMT -4. The time now is 23:00.