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

Gmsh does not ouput SU2 markers from physical surfaces

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

Like Tree1Likes
  • 1 Post By stewels

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2016, 08:02
Default Gmsh does not ouput SU2 markers from physical surfaces
  #1
New Member
 
Join Date: Jun 2016
Posts: 2
Rep Power: 0
stewels is on a distinguished road
Hi All

For the last two days I've struggled with a problem I can't seem to solve, some help would be appreciated...

When I output a volume mesh from Gmsh in .SU2 format, the physical surfaces / volumes are not exported as "markers" in the file. Thus, SU2 does not not know which nodes form the surfaces of the body, farfield, inlet, etc. The volume mesh itself exports fine, it's just the marker sections that are missing.

Any ideas why this could be? Is there perhaps a way to export only the defined physical surfaces to SU2 format, so that I can manually merge the volume mesh with the physical surface boundaries? Gmsh doesn't give me the option to select specific physical entities when saving as .SU2?

For information, I generate an .STL geometry in OpenVSP with the inbuilt CFD meshing function. I then process the geometry as follows in Gmsh (I know I could have used extrude, but I kept the possibility open to have a non-box shaped boundary):

Merge "ABCDEFG.stl";
Point(1) = {-30, 20, 20, 1.0};
Point(2) = {-30, 20, -20, 1.0};
Point(3) = {-30, -20,20, 1.0};
Point(4) = {-30, -20,-20, 1.0};
Point(5) = {30, 20, 20, 1.0};
Point(6) = {30, 20, -20, 1.0};
Point(7) = {30, -20, 20, 1.0};
Point(8) = {30, -20, -20, 1.0};
Line(1) = {3, 7};
Line(2) = {1, 5};
Line(3) = {2, 6};
Line(4) = {4, 8};
Line(5) = {2, 4};
Line(6) = {6, 8};
Line(7) = {1, 3};
Line(8) = {5, 7};
Line(9) = {2, 1};
Line(10) = {4, 3};
Line(11) = {8, 7};
Line(12) = {6, 5};
Line Loop(13) = {9, 7, -10, -5};
Plane Surface(14) = {13};
Line Loop(15) = {2, 8, -1, -7};
Plane Surface(16) = {15};
Line Loop(17) = {12, -2, -9, 3};
Plane Surface(18) = {17};
Line Loop(19) = {5, 4, -6, -3};
Plane Surface(20) = {19};
Line Loop(21) = {12, 8, -11, -6};
Plane Surface(22) = {21};
Line Loop(23) = {10, 1, -11, -4};
Plane Surface(24) = {23};

Surface Loop(25) = {14, 18, 22, 16, 24, 20};
Surface Loop(27) = {1};
Volume(28) = {25,27};
Physical Surface("FARFIELD") = {25};
Physical Surface("BODY") = {27};

//To do inlet, outlet, etc.

Coherence;

Thanks a lot!
stewels is offline   Reply With Quote

Old   June 17, 2016, 08:22
Default Solved...
  #2
New Member
 
Join Date: Jun 2016
Posts: 2
Rep Power: 0
stewels is on a distinguished road
Just my luck, solved it 10 min after posting...

The physical surfaces must be of type "plane surface" and not "surface loop". Thus, replace the last two lines with

Physical Surface("FARFIELD") = {14, 18, 22, 16, 24, 20};
Physical Surface("BODY") = {1};

and it works perfectly.
hlk likes this.
stewels is offline   Reply With Quote

Old   June 18, 2016, 09:50
Default
  #3
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by stewels View Post
Just my luck, solved it 10 min after posting...

The physical surfaces must be of type "plane surface" and not "surface loop". Thus, replace the last two lines with

Physical Surface("FARFIELD") = {14, 18, 22, 16, 24, 20};
Physical Surface("BODY") = {1};

and it works perfectly.
Thank you for posting your solution - it may be useful to future users.
hlk is offline   Reply With Quote

Old   April 14, 2017, 15:14
Default gmsh to SU2 format
  #4
New Member
 
Join Date: Feb 2017
Posts: 2
Rep Power: 0
stebbt is on a distinguished road
Hi,

I am trying to output gmsh mesh file in .su2 format. It appears that you have done this, could you please explain how this was done?

Thanks!
stebbt is offline   Reply With Quote

Old   May 17, 2023, 05:15
Default similar error
  #5
New Member
 
Nicola Trippella
Join Date: May 2023
Location: Milan
Posts: 14
Rep Power: 2
Nicles43 is on a distinguished road
Hi
I'm trying to run a simulation of an apollo-like capsule



I have the farfield that is a circle
Inside i have a conical shape 2D


In the geo file i have defined the markers as follows:


// capsule
Curve Loop(1) = {4,1,3,2,5,6,7,8};
// farfield
Curve Loop(2) = {9};
Plane Surface(1) = {1,2};
Physical Curve("FARFIELD")= {9};
Physical Curve("CAPSULE")= {4,1,3,2,5,6,7,8};
Physical Surface("VOLUME") = {1};


Obv, in my config i am placing BC markers on the capsule and on the farfield, while the Physcial Surface called "VOLUME" does not require any BC , any marker:
MARKER_EULER= ( CAPSULE )
MARKER_FAR= ( FARFIELD )
MARKER_PLOTTING= ( NONE )
MARKER_MONITORING= ( CAPSULE )


However, the simulation does not beging , showing me this error:
Error in "short unsigned int CConfig::GetMarker_CfgFile_TagBound(std::string) const":
-------------------------------------------------------------------------
The configuration file doesn't have any definition for marker VOLUME
------------------------------ Error Exit -------------------------------





I tried to set the number of marker as 2 in the geo file (NMARK = 2) But the result is the same
Help me please!
Nicles43 is offline   Reply With Quote

Reply

Tags
su2 markers gmsh physical

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
[Gmsh] Nasa Nozzle: Plot 3D -->gmsh -->fluent - no physical groups Nico89 OpenFOAM Meshing & Mesh Conversion 1 June 14, 2016 05:40
[Gmsh] Gmsh physical line and .msh Chacha OpenFOAM Meshing & Mesh Conversion 1 November 23, 2015 08:10
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56


All times are GMT -4. The time now is 04:31.