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

Markers and parts name in SU2 and ICEM for my own case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2017, 08:36
Default Markers and parts name in SU2 and ICEM for my own case
  #1
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Hello all,
I am trying to use SU2 for my own projects,
I have read the tutorials and the guides but still can`t run my own cases
I exported the mesh file from ICEM as .cgns but I don`t know how to make the names for the parts as in the ICEM the same as for the .cfg file?

To be more clear, I have a .cgns mesh file and the .cfg template and I want to define the Markers - as I understood - but I don`t know what markers represent the inlet, outlet symmetry, symmetry 2 and the airfoil or the wall for example.
How to use them to run my own calculations?

Thanks very much in advance
McAero is offline   Reply With Quote

Old   November 4, 2017, 09:39
Default
  #2
Member
 
Mehdi Mortazawy
Join Date: Mar 2017
Posts: 30
Rep Power: 9
mhd_mrt is on a distinguished road
Hello McAero,

When you are generating the mesh (either in .CGNS or native .SU2 format) you will assign each of your boundaries a name (for example in your case I am assuming you have: inlet, outlet, symmetry, symmetry 2, airfoil or wall) l. These are the names that should be used exactly in the .cfg file.
Take a look at config_template.cfg in the main source directory of SU2 code and you will find many different boundary conditions that you can use along with the format that they need to be in. For instance: if you are running inviscid calculation (EULER) when defining your airfoil, it is like this:
MARKER_EULER=(airfoil)

Here are some of the most common ones for your convenience:

% Euler wall boundary marker(s) (NONE = no marker)
MARKER_EULER= ( airfoil )
%
% Navier-Stokes (no-slip), constant heat flux wall marker(s) (NONE = no marker)
% Format: ( marker name, constant heat flux (J/m^2), ... )
MARKER_HEATFLUX= ( NONE )
%
% Navier-Stokes (no-slip), isothermal wall marker(s) (NONE = no marker)
% Format: ( marker name, constant wall temperature (K), ... )
MARKER_ISOTHERMAL= ( NONE )
%
% Far-field boundary marker(s) (NONE = no marker)
MARKER_FAR= ( farfield )
%
% Symmetry boundary marker(s) (NONE = no marker)
MARKER_SYM= ( NONE )


%
% Inlet boundary type (TOTAL_CONDITIONS, MASS_FLOW)
INLET_TYPE= TOTAL_CONDITIONS
%
% Inlet boundary marker(s) with the following formats (NONE = no marker)
% Total Conditions: (inlet marker, total temp, total pressure, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
% Mass Flow: (inlet marker, density, velocity magnitude, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
% Incompressible: (inlet marker, NULL, velocity magnitude, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
MARKER_INLET= ( NONE )
%
% Supersonic inlet boundary marker(s) (NONE = no marker)
% Format: (inlet marker, temperature, static pressure, velocity_x,
% velocity_y, velocity_z, ... ), i.e. primitive variables specified.
MARKER_SUPERSONIC_INLET= ( NONE )
%
% Outlet boundary marker(s) (NONE = no marker)
% Format: ( outlet marker, back pressure (static), ... )
MARKER_OUTLET= ( NONE )
%
% Supersonic outlet boundary marker(s) (NONE = no marker)
MARKER_SUPERSONIC_OUTLET= ( NONE )
%


Let me know how it goes and if you have further questions.

Cheers,
Mehdi
mhd_mrt is offline   Reply With Quote

Old   November 4, 2017, 10:06
Default
  #3
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Thanks Mehdi for your reply,

Excuse me, I saw the .cfg file but I don`t know what to replace by my boundaries ,
What shall i replace in cfg file by my parts names ?
That`s the thing stopping me
Thanks again for your support
Mamnoon
McAero is offline   Reply With Quote

Old   November 4, 2017, 10:36
Default
  #4
Member
 
Mehdi Mortazawy
Join Date: Mar 2017
Posts: 30
Rep Power: 9
mhd_mrt is on a distinguished road
Quote:
Originally Posted by McAero View Post
Thanks Mehdi for your reply,



Excuse me, I saw the .cfg file but I don`t know what to replace by my boundaries ,

What shall i replace in cfg file by my parts names ?

That`s the thing stopping me

Thanks again for your support

Mamnoon


Hello McAero,

All you need to do is to replace the name of the MARKER with the name that you specified to each boundary when you generated your mesh. For instance I use Pointwise which has .SU2 output. In that case I only assign names in my mesh and then use those exact same names in the .cfg file for my case. For example for airfoil case you should usually have the followings:

Inlet
Outlet
Top
Bottom
Airfoil

Again it’s your choice some people also call the Top Bottom and Airfoil “wall” for convenience.

Cheers,
Mehdi
mhd_mrt is offline   Reply With Quote

Old   November 4, 2017, 18:21
Default
  #5
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Thanks again very much
But I have a problem, I don`t know which marker to replace with a name of the part ? I see many markers like for heat flux, isothermal, interference, far-field and near field
I`d be very glad if you can guide me how or if you can show me a photo
Thanks very much for your support and concern
McAero is offline   Reply With Quote

Old   November 5, 2017, 04:10
Default
  #6
Member
 
Mehdi Mortazawy
Join Date: Mar 2017
Posts: 30
Rep Power: 9
mhd_mrt is on a distinguished road
Quote:
Originally Posted by McAero View Post
Thanks again very much
But I have a problem, I don`t know which marker to replace with a name of the part ? I see many markers like for heat flux, isothermal, interference, far-field and near field
I`d be very glad if you can guide me how or if you can show me a photo
Thanks very much for your support and concern
That is related to the physiscs of your problem that you are trying to model. Whether your simulation is inviscid or viscous, Time dependent or steady state, etc...
mhd_mrt is offline   Reply With Quote

Old   November 6, 2017, 18:48
Default
  #7
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Thanks very much for your reply
and sorry for my late reply
In sometimes the number of BC is less than what i use for ICEM and CFX
Like in the quickguide case of NACA0012 there is only two BCs (named airfoil and farfield) even for 3D cases like ONERA M6 they have only three BCs while my cases usually works this way :
Inlet
Outlet
Airfoil
Symm
Symm2
I tried to see some test cases and relate it to my cases but I couldn`t succeed, for example, I wanna run a RANS. how should I make it in SU2?

Thanks very much for your support
McAero is offline   Reply With Quote

Old   November 7, 2017, 10:40
Default
  #8
Member
 
Mehdi Mortazawy
Join Date: Mar 2017
Posts: 30
Rep Power: 9
mhd_mrt is on a distinguished road
Quote:
Originally Posted by McAero View Post
Thanks very much for your reply
and sorry for my late reply
In sometimes the number of BC is less than what i use for ICEM and CFX
Like in the quickguide case of NACA0012 there is only two BCs (named airfoil and farfield) even for 3D cases like ONERA M6 they have only three BCs while my cases usually works this way :
Inlet
Outlet
Airfoil
Symm
Symm2
I tried to see some test cases and relate it to my cases but I couldn`t succeed, for example, I wanna run a RANS. how should I make it in SU2?

Thanks very much for your support
Hello McAero,

That is completely fine. Please share an image of your mesh + boundary conditions that you would like to impose and I can try to help you with how to impose them in SU2.

Regards,
Mehdi
mhd_mrt is offline   Reply With Quote

Old   November 7, 2017, 11:37
Default
  #9
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Thanks very very much,
I made a 2D mesh then extruded it.
kindly find attached the photos
Thanks again very very much
Attached Images
File Type: jpg mesh1su2.jpg (55.9 KB, 35 views)
File Type: jpg mesh2su2.jpg (54.3 KB, 34 views)
File Type: jpg mesh3su2.jpg (41.5 KB, 31 views)
McAero is offline   Reply With Quote

Old   November 7, 2017, 12:07
Default
  #10
Member
 
Mehdi Mortazawy
Join Date: Mar 2017
Posts: 30
Rep Power: 9
mhd_mrt is on a distinguished road
Quote:
Originally Posted by McAero View Post
Thanks very very much,
I made a 2D mesh then extruded it.
kindly find attached the photos
Thanks again very very much
McAero,

Based on what is shown, you need to have these into your .cfg file under your BOUNDARY CONDITION DEFINITION:

% Euler wall boundary marker(s) (NONE = no marker)
MARKER_EULER= ( WALL )

% Symmetry boundary marker(s) (NONE = no marker)
MARKER_SYM= ( FLUID , FLUID_2 )

% Inlet boundary marker(s) with the following formats (NONE = no marker)
% Total Conditions: (inlet marker, total temp, total pressure, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
% Mass Flow: (inlet marker, density, velocity magnitude, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
% Incompressible: (inlet marker, NULL, velocity magnitude, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
MARKER_INLET= ( OPEN, choose one from the three options above and input each value in the order specified )

% Outlet boundary marker(s) (NONE = no marker)
% Format: ( outlet marker, back pressure (static), ... )
MARKER_OUTLET= ( OUT, input your back pressure here (static) )


Let me know if you still have questions

Regards,
Mehdi
mhd_mrt is offline   Reply With Quote

Old   November 7, 2017, 19:05
Default
  #11
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 9
McAero is on a distinguished road
Thanks very much Mehdi,
I don`t know how to thank you,
I used this way and seems working but only for 2D because it can`t capture the two symmetries ( FLUID and FLUID_2 )
so i exported another file but 2D mesh - not extruded and worked

Do you have an idea how to use it for the 3D ( my original case )?

Thanks very very much for your help )
Attached Images
File Type: jpg su2error.JPG (99.3 KB, 21 views)
File Type: jpg su2error2.JPG (102.3 KB, 19 views)
McAero 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



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