CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Which grid formats should our solvers support?

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 2 Post By Simbelmynė
  • 2 Post By arjun
  • 1 Post By arjun
  • 1 Post By arjun
  • 2 Post By andy_

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 09:23
Default Which grid formats should our solvers support?
  #1
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Hello everyone,

Which grid formats should our solvers support for maximum support, user friendliness, and performance?

Obviously no perfect answer might exist, so I'm just looking for your personal views. Different answer for each criteria is acceptable, as we'll support multiple formats for the need of different users.

Metrics:
  • support : almost every grid generator should be able to export to this format. Personally I'm kind of liking the I-deas Universal format (*.unv), as it's old, and both gmsh and salome support it.
  • user friendliness : user finds it very useful for their own personal reason.
  • most used : I think Ansys *.msh format is most used in industry, but I don't know if other mesh formats are also very important to specific industries. Maybe structural people use Nastran's meshes.
  • performance : mesh formats you like because of performance. I only use ASCII meshes till now, so I don't know much about this.
Thanks

PS : Cool project with many mesh converters : https://github.com/victorsndvg/FEconv
Mesh formats supported by them : https://victorsndvg.github.io/FEconv/formats.xhtml
aerosayan is offline   Reply With Quote

Old   August 15, 2022, 12:54
Default
  #2
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
Perhaps also have a look at the meshio project



https://pypi.org/project/meshio/
arjun and aerosayan like this.
Simbelmynė is offline   Reply With Quote

Old   August 15, 2022, 14:50
Default
  #3
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
"Which grid formats should our solvers support for maximum support, user friendliness, and performance?"


There shall be one neutral format that shall be very easy to read or write by a simple C or C++ or Fortran code.

Then there shall be converters to it and from it. That would make everyone's life easy.

The project shall be easily available and easy to compile so that it is painless to use by any average joe.


PS: I created bmsh format for wildkatze based on this idea. Bmsh format is nothing but fluent file written without all those markers. Its basically, like (anyone can load this)

--------------------------------------------
Number of reagions

For each region

Number of nodes
x y z
.
.
x y z of nodes

Number of faces groups

For each group
for 1 to Nfaces
number of nodes in this face n1, n2, ... n_nn left cell and right cell.


-----------------------------------------
sbaffini and aerosayan like this.
arjun is offline   Reply With Quote

Old   August 15, 2022, 14:55
Default
  #4
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
By "Number of faces groups", do you mean it supports partitioned meshes, or faces belonging to some boundaries like Inlet, outlet, wall, etc? I partitioned a GMSH mesh using METIS and tried to export it to Su2's format, but it didn't work.
aerosayan is offline   Reply With Quote

Old   August 15, 2022, 15:18
Default
  #5
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by aerosayan View Post
By "Number of faces groups", do you mean it supports partitioned meshes, or faces belonging to some boundaries like Inlet, outlet, wall, etc? I partitioned a GMSH mesh using METIS and tried to export it to Su2's format, but it didn't work.


No no.

I meant say for a pipe with 3 boundaries (all tetra mesh)

Number of face groups = 4


4

interior Interior
2 (number of cv faces)
3 n1 n2 n3 cl cr
3 n1 n2 n3 cl cr

inflow Inlet
2
3 n1 n2 n3 cl cr
3 n1 n2 n3 cl cr

out Outlet
3 n1 n2 n3 cl cr
3 n1 n2 n3 cl cr

sidewall Wall
3 n1 n2 n3 cl cr
3 n1 n2 n3 cl cr


simple to read and write
aerosayan likes this.
arjun is offline   Reply With Quote

Old   August 15, 2022, 15:20
Default
  #6
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Bmsh is divided into two files

.info.bmsh

This contains only the mesh information like number of regions and their names and then their boundaries etc BUT no heavy data

.bmsh

Heavy data


--------------------

The advantage of this in Wildkatze is that you can do the whole set up without loading the heavy data. so if you have a billion cell mesh you can set up the case on laptop since the mesh won't be loaded at all.

Now once it is set up, you can put the whole thing on cluster and run the case.
aerosayan likes this.
arjun is offline   Reply With Quote

Old   August 17, 2022, 10:12
Default
  #7
Senior Member
 
andy
Join Date: May 2009
Posts: 270
Rep Power: 17
andy_ is on a distinguished road
Quote:
Originally Posted by aerosayan View Post
Which grid formats should our solvers support for maximum support, user friendliness, and performance?
The important format to get right is your own internal one. Then support whichever external ones your clients need and/or want. There are usually one or two widely used ones plus a few that are used less. It doesn't take long to write converters to/form you own format once you have done it a few times. Then when you find 3rd party converters are failing to function adequately (and you will) you have a viable way to fix things without having to trawl through some peculiar code written by a student learning to write computer software.
sbaffini and aerosayan like this.
andy_ 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
Control function in Poisson eqtion grid generation? dinhanh Main CFD Forum 0 January 8, 2017 01:53
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Grid Adaptation Suresh FLUENT 0 October 15, 2003 13:18
GRID TO GRID INTERPOLATION in FLUENT calogero FLUENT 3 June 4, 2003 08:32
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 11:18


All times are GMT -4. The time now is 11:30.