CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

unstructued mesh generation for my own fv code

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

LinkBack Thread Tools Display Modes
Old   April 13, 2014, 20:10
Default unstructued mesh generation for my own fv code
New Member
Join Date: Dec 2013
Posts: 19
Rep Power: 6
desanga is on a distinguished road

I m beginner for cfc coding. But I have experience with commercial codes and open source coded like fluent, openfoam.

I'm thinking about write my own finite volume code for my research. But problem is how I'm going to get required mesh (unstructured) for this code. I have access To ansys icem or other open source mesh generators

How I'm going adapt meshes which are generated by third-party Software for my own code. Your Valuable comments are appreciated

Thanks in advance
desanga is offline   Reply With Quote

Old   April 13, 2014, 23:06
Join Date: May 2012
Posts: 68
Rep Power: 7
som87 is on a distinguished road
Why not just use cgns format...?
Most mesh generator has option to save mesh in cgns & it'll save you a lot trouble.
Best wishes,

Somdeb Bandopadhyay
som87 is offline   Reply With Quote

Old   April 14, 2014, 02:59
Senior Member
sbaffini's Avatar
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 824
Blog Entries: 17
Rep Power: 23
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Basically, all the grid generators will provide you with a minimum information regarding node location and connectivity, grouping of the different cell/face zones and the related boundary conditions.

It might depend from your specific code but, in general, you likely need to store all these information. Additionally, you might need to pre-compute some additional information and store it, like face normals and areas, cell volumes, additional connectivity relations (node-cells, cell-faces, etc.).

It is not clear if you are asking for a suitable mesh generator and output format or simply a storage method for such information.

In the first case i would say to promote usability for your code, which means using an input format allowing using your expected input or a very common one. In this case, it seems to me that the input used by OpenFOAM or Fluent is in such format because:

- you already have used both
- they are certainly the two most common format in CFD today
- OpenFOAM is likely to have a mesh converter from any other format to its own, has free mesh generators and additional tools to manipulate the mesh

If you are asking for a storage method the question is fairly more complicated and depends from several factors. Serial vs. parallel, dynamic vs. static mesh, etc. Still, i think that a static data structure is probably the preferred choice today.

You should elaborate more on your specific needs.
sbaffini is offline   Reply With Quote

Old   April 14, 2014, 04:45
New Member
Join Date: Dec 2013
Posts: 19
Rep Power: 6
desanga is on a distinguished road
Thanks all for quick reply,

I just want to use mesh generated by 3rd party tool(ICEM) in my code. That mean read nodes and cells and process using my codes and save the state in suitable format for further analysis. As som87 said I focused on CGNS format which is popular among in many mesh generation sw.

desanga is offline   Reply With Quote


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
New Mesh Generation and Pre-Processing Forums pete Site News & Announcements 2 December 26, 2012 18:56
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
3-d elliptic generation mesh Gang Sun Main CFD Forum 5 September 16, 1998 00:24

All times are GMT -4. The time now is 21:27.