CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   unstructued mesh generation for my own fv code (https://www.cfd-online.com/Forums/main/133340-unstructued-mesh-generation-my-own-fv-code.html)

desanga April 13, 2014 20:10

unstructued mesh generation for my own fv code
 
Hello,

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

som87 April 13, 2014 23:06

Why not just use cgns format...?
Most mesh generator has option to save mesh in cgns & it'll save you a lot trouble.

sbaffini April 14, 2014 02:59

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.

desanga April 14, 2014 04:45

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.

Thanks:)


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