CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   CGNS Boundary conditions using SU2 (https://www.cfd-online.com/Forums/su2/148787-cgns-boundary-conditions-using-su2.html)

denzell February 19, 2015 12:34

CGNS Boundary conditions using SU2
 
Hi,

I have a question about implementing boundary conditions on my CGNS mesh while using SU2.

My mesh is consists of a simple car within a rectangular control volume.

The surfaces of the car are marked as "simplecar", which is being recognized while running SU2.

The problem I encounter is with the other Markers; I don't understand how I can assign the appropriate boundary conditions towards these markers.

These control volume markers are:
- velocity-inlet
- pressure-outlet
- side-left
- side-right
- top
- road

Within the SU2 documentation I found this:

https://github.com/su2code/SU2/wiki/Mesh-File

It is important to note that SU2 will not use any specific boundary conditions that are embedded within the CGNS mesh. However, it will use the names given to each boundary as the marker tags. These marker tags are used to set the boundary conditions in the configuration file. Therefore, it is recommended that the user give names to each boundary in their mesh generation package before exporting to CGNS. If you do not know the number of markers or their tags within a CGNS file, you can simply attempt a simulation in SU2_CFD (leaving out the boundary information in the configuration file at first), and during the preprocessing stage, SU2 will read and print the names of all boundary markers to the console along with other grid information before throwing an error due to incomplete boundary definitions. The user can then incorporate these marker tags into the configuration file with the appropriate boundary conditions.

My question is thus the last sentence. How do I do this within the config file?

I figured it would be, for e.g. the inlet marker

MARKER_INLET= ( velocity-inlet, 1.225, 0.10, 0, 1, 0 )
( marker, density, velocity (in Mach?), unit vector in x, unit vector in y, unit vector in z )

SU2 complains as follows:
Loading CGNS data into SU2 data structures...
Three dimensional problem.
155452 interior elements.
131752 tetrahedra.
23700 prisms.
38686 points.
8 surface markers.
4279 boundary elements in index 0 (Marker = SIMPLECAR).
342 boundary elements in index 1 (Marker = VELOCITY-INLET).
The configuration file doesn't have any definition for marker VELOCITY-INLET!!

Any help on how to implement boundary conditions is much appreciated!

-denzell

fpalacios February 20, 2015 02:04

Hi Denzell,

Thanks for using SU2, the capitalization is important, could you please try with

MARKER_INLET= ( VELOCITY-INLET, 1.225, 0.10, 0, 1, 0 ).

The velocity should be in m/s or in/s

Best Regards,

Francisco Palacios
SU2 lead developer

denzell February 20, 2015 15:33

Dear Mr. Palacios,

Thank you for your quick reply, that helped to resolve the problem.

The next problem I face is the following.

The CGNS mesh consists of a fluid volume "AIR" which is a rectangle with a boolean subtract operation of the vehicle geometry.

Because this volume has a name "AIR", I think SU2 interprets this volume such that it requires extra identification of what this volume is. I think this because of the following error:

The configuration file doesn't have any definition for marker AIR_1_1!!

Where the subscript _1_1 comes from is unclear to me by the way.

Do you maybe have a suggestion how I can indicate that AIR (_1_1) can be treated as a fluid?


Thanks again and have a nice weekend,

--denzell


PS: For the sake of completeness I have added the CGNS file and current config file within this folder if this helps:
https://www.dropbox.com/sh/xmvr86lvw...CgQ24S_La?dl=0

RIA123 July 9, 2018 06:58

I am new to SU2 and gmsh.
I've assigned the physical groups in gmsh but after exporting it to su2 and running it I get an error message:

Error in "short unsigned int CConfig::GetMarker_CfgFile_TagBound(std::__cxx11:: string)":
-------------------------------------------------------------------------
The configuration file doesn't have any definition for marker



What does this mean?


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