CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Issue exporting su2 format from gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By TKatt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2018, 04:38
Exclamation Issue exporting su2 format from gmsh
  #1
New Member
 
Gaetano
Join Date: Nov 2017
Posts: 11
Rep Power: 8
Gaetano03 is on a distinguished road
Hello everyone,
I have a bit annoying issue while exporting su2 format from gmsh. The problem is that it includes even construction points that don't belong to the mesh in the su2 file. So when I execute SU2 I get a Segmentation fault. Am I missing something or is it really not possible to use construction points that don't belong to the mesh when exporting the su2 format?


Thanks for any help


Gaetano
Gaetano03 is offline   Reply With Quote

Old   September 16, 2018, 14:46
Default
  #2
Member
 
na
Join Date: Jul 2018
Posts: 83
Rep Power: 7
TKatt is on a distinguished road
Hi,
please try creating Physical Surfaces for 2D meshes (or Volumes in 3D) for all your inner domain and then export the mesh with the -saveall flag (from command line) or the equivalent option from the GUI.

That did the trick for me as I ran into that problem with construction points as well. See https://github.com/su2code/TestCases...ration/0__mesh for the way I did it with .geo script files. In the build_mesh.py you'll find the command how I build the mesh. You don't need to care about all the stuff as it is a multizone mesh.

I hope that helps, cheers,

Tobi
Gaetano03 likes this.
TKatt is offline   Reply With Quote

Old   September 18, 2018, 05:35
Default Still an issue
  #3
New Member
 
Gaetano
Join Date: Nov 2017
Posts: 11
Rep Power: 8
Gaetano03 is on a distinguished road
Hello Tobi,
many thanks, I defined physical and volume groups and I don't have construction points listed in the su2 mesh anymore. But I still have an issue. During Geometry Preprocessing I got the following error:
"The surface element (i,j) doesn't have an associated volume element"


I have no idea how I can manage it. I attach my .geo and the .log file with the error in dwing.zip


Thank you very much again for your help


Gaetano
Attached Files
File Type: zip dwing.zip (5.8 KB, 16 views)
Gaetano03 is offline   Reply With Quote

Old   September 18, 2018, 10:53
Default
  #4
Member
 
na
Join Date: Jul 2018
Posts: 83
Rep Power: 7
TKatt is on a distinguished road
Ok, could you provide the command with which you build the mesh or the steps in the GUI to reproduce your mesh. Secondly a .cfg which shows the error, doesn't need to be the original one if IP is an issue. These two are necessary to reproduce your error! Edit: and your .su2 mesh as well if it is not too big.

Some general Advice: Start with easy geometries which has the rough characteristics of the big mesh and few cells where you have fast turnaround times and can still see structures and even maybe see bad cells. This is beneficial for you because often you can debug your problem there and directly use it for the bigger problem. You are also more likely to get quick help together with the 2 missing pieces above as other people can test without big effort.

I loaded your .geo in gmsh and simply pressed Mesh->3D (as not further specified) which took some 7min on my local machine. The resulting mesh (without further checking) didn't look too good in the farfield. Did you already used that mesh before with another solver to know that it is otherwise correct?

I am optimistic we can get your mesh running

Cheers, Tobi
TKatt is offline   Reply With Quote

Old   September 18, 2018, 11:12
Default Mesh error
  #5
New Member
 
Gaetano
Join Date: Nov 2017
Posts: 11
Rep Power: 8
Gaetano03 is on a distinguished road
Hello,
Thank you again for the help and the advice. I used the Frontal Algorithm to generate the mesh, because the default Delaunay worked too bad for the far field when you have to interface with prisms elements. Actually Gmsh pops up a warning message when I try to use Delaunay, advicing to use Frontal scheme. Then I just pressed 3 on the keyboard. The rest is all defined in the .geo file (attractor).

Honestly, I didn't test the mesh with other solvers.
What do you mean by .cfg with the error? Isn't it the .log file I have already provided?

By the way I am afraid I can't upload the su2 mesh


Thanks again,
Gaetano
Gaetano03 is offline   Reply With Quote

Old   September 20, 2018, 09:23
Default
  #6
Member
 
na
Join Date: Jul 2018
Posts: 83
Rep Power: 7
TKatt is on a distinguished road
Hey,
With .cfg I mean, that the error occurs during the program execution "SU2_CFD <filename.cfg>" ... I would like to have <filename.cfg> to be sure that I can reproduce your error. Otherwise I would need to create/remix my own .cfg for the case which, again, costs time.

An idea towards the error message "The surface element (0, 0) doesn't have an associated volume element" -> Can you assure/test whether you have a matching mesh at the interface near the Wing with a structured mesh to the farfield with an unstructured? To me the error sounds like a non-matching mesh connection might be the problem here.

Cheers Tobi
TKatt is offline   Reply With Quote

Old   September 21, 2018, 11:18
Default mesh su2 gmsh
  #7
New Member
 
Gaetano
Join Date: Nov 2017
Posts: 11
Rep Power: 8
Gaetano03 is on a distinguished road
hello,
Here is the config file. Anyway, the first number in the error message ( 0 ) isn't it associated with the first marker in su2 mesh file, that is Farfield?


Cheers,
Gaetano
Attached Files
File Type: zip dWingConfig.zip (3.3 KB, 17 views)
Gaetano03 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
[Gmsh] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 05:46
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 11:27
[ICEM] Exporting geometry as parasolid format taram ANSYS Meshing & Geometry 0 June 26, 2013 02:38
[Commercial meshers] Exporting from V grid to fluent, .msh format Karl SG OpenFOAM Meshing & Mesh Conversion 0 April 14, 2013 23:33
Macro Issue Exporting Chart Data recon9 CFX 1 March 24, 2011 12:46


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