CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Problems with inputting ansys mesh(.cgns) to SU2 (https://www.cfd-online.com/Forums/su2/243124-problems-inputting-ansys-mesh-cgns-su2.html)

Jim gigi May 31, 2022 02:29

Problems with inputting ansys mesh(.cgns) to SU2
 
Hello everyone,

I'm trying to use the mesh made in Ansys workbench(fluent) to work in the inv_naca0012 simulation which can be find in https://su2code.github.io/docs_v7/Quick-Start/ .

I had have read the manuals and knew that SU2 can use mesh file type such as .cgns and .su2 , however when i tried to export the mesh(.cgns) from ansys and input it in the inv_naca0012.cfg the following issue occured,


------------------- Geometry Preprocessing ( Zone 0 ) -------------------
Reading the CGNS file: ansys_mesh_naca0012_2.cgns.
WARNING: The CGNS file version (3.21) is old and may cause high memory usage issues, consider updating the file with the cgnsupdate tool.
CGNS file contains 1 database(s).
Database 1, BASE#1: cell dimension of 2, physical dimension of 3.
1 total zone(s).
Zone 1, ansys_mesh_naca0012_2: 71616 total vertices, 71118 total elements.
Loading CoordinateX values.
Loading CoordinateY values.
Number of connectivity sections is 3.
Section SURFACE_BODY_1_1 contains 71118 elements of type Mixed.
Section FARFIELD contains 941 elements of type Line.
Section AIRFOIL contains 200 elements of type Line.
Loading volume section SURFACE_BODY_1_1 from file.
Loading surface section FARFIELD from file.
Loading surface section AIRFOIL from file.
Two dimensional problem.
71616 grid points.
71118 volume elements.
2 surface markers.
941 boundary elements in index 0 (Marker = FARFIELD).


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


It seems like SU2 can't recognize the boundary condition although that i have set the b.c. in the configuration file,

MARKER_EULER= ( airfoil )
MARKER_FAR= ( farfield )


The mesh for naca0012 is a unstructured C-type mesh, and has two nameselection as to farfield and airfoil.



Have anyone encountered this problem and how to resolve this,
Thanks so much for your help.

Test condition Info:
OS: Windows 10
SU2 Version: 7.3.1 Blackbird
Mesh File: Made from ansys
Configuration File: inv_NACA0012.cfg
Operation Running: SU2_CFD

TKatt May 31, 2022 04:26

upper- lower case ;)


as far as I see:



MARKER_EULER= ( AIRFOIL )
MARKER_FAR= ( FARFIELD )


should do the trick.


Best, Tobi

Jim gigi May 31, 2022 08:34

Hello TKatt,

Thanks for the quick reply,

I have change all my b.c. to capital and some how it works but soon diverge(i think its because i put the "type line" that are not really b.c. to marker_far).

And the lines that in ansys mesh are for sizing(numbers of divisions), has no physical meaning to the flow.

Hence, i made a mesh with a circle, no other lines ,and it runs perfectly.

so, if i have a complicated mesh with lots of lines for sizing , how to deal with those lines in SU2 ? because if i don't give them a marker SU2 will not run and i don't see any command that categorize those lines that are in no use.

Thanks for the tips,

best,
JIM GIGI


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