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

which open source meshing software exports in cgns?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2012, 15:02
Default which open source meshing software exports in cgns?
  #1
New Member
 
Viggy Palaniappan
Join Date: Jul 2012
Posts: 10
Rep Power: 13
spitfire is on a distinguished road
I'm using a newly released solver SU2 and would like to do a mesh convergence study.

The problem I have is that the program requires meshes to be in the .cgns format and atm I'm really struggling to find any open source mesh generators that allow you to export in this format. Commercial mesh generators (like Pointwise/Gridgen) are capable of doing so but I don't have access to them.

Are there any open source mesh generators that allow you to export in this format? Or can i create the mesh in another format and then use a converter? I'd love some help please. =)
spitfire is offline   Reply With Quote

Old   July 23, 2012, 20:15
Default
  #2
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 231
Rep Power: 17
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
You could use openFoam as an intermediate format and then use foamToCgns (which I think is part of the standard distribution). I have no personal experience and it probably is not straightforward.

BTW: I had a look at SU2 and when I noticed that they had their own mesh format or CGNS, I left it in the too hard basket...

Cheers.
Julien
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Old   July 24, 2012, 04:50
Default
  #3
Senior Member
 
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17
ogloth is on a distinguished road
Hello,

the native SU2 format is incredibly simple. We have an export function in our open-source mesher enGrid (see http://engits.eu/en/engrid). I have tried to use SU2 myself, but I had problems when using highly an-isotropic boundary layers. It turned out that this might be due to a too low accuracy for the output file. If you try it and you run into problems, please drop me a note.

Cheers,
Oliver
ogloth is offline   Reply With Quote

Old   August 8, 2012, 17:14
Default
  #4
New Member
 
Viggy Palaniappan
Join Date: Jul 2012
Posts: 10
Rep Power: 13
spitfire is on a distinguished road
Hi,

I get the following error message when trying to export with CGNS:

CGNS support has not been compiled

file:cgnswriter.cpp
line:333

How do I get it working? Thanks
spitfire is offline   Reply With Quote

Old   August 20, 2012, 11:16
Default
  #5
New Member
 
Join Date: Aug 2012
Posts: 22
Rep Power: 13
AeroMike is on a distinguished road
If you are just using structured grids it is very easy to generate them using a really simple Fortran code. There are some really good examples which are easy to follow provided by the NASA website: http://www.grc.nasa.gov/WWW/cgns/CGN...r/started.html
Mike
AeroMike is offline   Reply With Quote

Old   August 20, 2012, 13:18
Default
  #6
New Member
 
Viggy Palaniappan
Join Date: Jul 2012
Posts: 10
Rep Power: 13
spitfire is on a distinguished road
No, unfortunately, I need an unstructured grid
spitfire is offline   Reply With Quote

Old   August 20, 2012, 13:19
Default
  #7
New Member
 
Join Date: Aug 2012
Posts: 22
Rep Power: 13
AeroMike is on a distinguished road
Ah, in that case it is do-able but potentially a lot tricker, I don't have any experience with writing grid gens for unstructured cases, sorry!
AeroMike is offline   Reply With Quote

Old   August 20, 2012, 13:22
Default
  #8
New Member
 
Viggy Palaniappan
Join Date: Jul 2012
Posts: 10
Rep Power: 13
spitfire is on a distinguished road
Do you know how to get cgns support on for meshers like Gmsh? That seems like the best open souce mesher to me but I still can't get CGNS to work.
spitfire is offline   Reply With Quote

Old   August 20, 2012, 13:25
Default
  #9
New Member
 
Join Date: Aug 2012
Posts: 22
Rep Power: 13
AeroMike is on a distinguished road
Sorry, no experience with anything other than commercial and writing my own generators.
AeroMike is offline   Reply With Quote

Old   August 21, 2012, 01:11
Default
  #10
Super Moderator
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 342
Blog Entries: 6
Rep Power: 18
praveen is on a distinguished road
Quote:
Originally Posted by spitfire View Post
Do you know how to get cgns support on for meshers like Gmsh? That seems like the best open souce mesher to me but I still can't get CGNS to work.
If you want to use gmsh, you can easily rewrite the file in SU2 native format. I have some code here

https://code.google.com/p/cfdlab/sou...trunk/3d/grid/

There is a gmsh2cgns program which can handle tetrahedral grids only but you should be able to modify it for general case. The generated cgns grids work with freecfd but I have not tested with su2.

If you use them and have some success/failure please let me know.

I would recommend directly converting gmsh format to su2 format, rather than using cgns format.
praveen is offline   Reply With Quote

Old   August 21, 2012, 06:35
Default @spitfire
  #11
Senior Member
 
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17
ogloth is on a distinguished road
Sorry, I missed your post with the CGNS problem.

If you are using enGrid, you can directly export to SU2 format -- no need for CGNS. You might have to check out the branch called "release-1.4" from our GIT repository (the default is still 1.3). In order to do that you can edit the script "build.bash", or if you know your way around GIT it is very easy.

If you get stuck, please look at the enGrid Wiki, or use the enGrid forum (I check that on a regular basis).

Btw. I am also interested in any feedback you have with SU2 ;-)

Cheers,
Oliver
ogloth is offline   Reply With Quote

Old   September 2, 2012, 16:30
Default
  #12
New Member
 
Viggy Palaniappan
Join Date: Jul 2012
Posts: 10
Rep Power: 13
spitfire is on a distinguished road
Thanks all, I ended up writing my own mesh conversion tool in matlab to go from the .geo (Gmsh) to .su2 (SU2).
spitfire is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam & decomposition method: scotch MacGyver OpenFOAM Running, Solving & CFD 2 May 23, 2012 08:00
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
[OpenFOAM] ParaView 33 canbt open OpenFoam file hariya03 ParaView 7 September 25, 2008 18:33
Could the CFD community benefit from Open Source? JF Main CFD Forum 13 December 18, 2006 00:06
Open source software and commercial CFD YF K Main CFD Forum 2 January 7, 2003 02:11


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