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

Troubleshooting SU2 mesh file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2024, 18:49
Default Troubleshooting SU2 mesh file
  #1
New Member
 
aero29
Join Date: Oct 2018
Location: United States
Posts: 6
Rep Power: 8
aero29 is on a distinguished road
Hi Everyone ,

Here is the grid file for 1 stage (2 zone) turbomachinery case. I have written my own code to create grid file in *.su2 format.
While running SU2_CFD or SU2_DEF , I am getting error -
"
+-----------------------------------------------------------------------+
Reading zone 0 from native SU2 ASCII mesh.
Three dimensional problem.
1617 grid points.
1152 volume elements.
10 surface markers.
42 boundary elements in index 0 (Marker = PERIODIC-1A).
42 boundary elements in index 1 (Marker = PERIODIC-1B).
30 boundary elements in index 2 (Marker = PERIODIC-1C).
30 boundary elements in index 3 (Marker = PERIODIC-1D).
192 boundary elements in index 4 (Marker = HUB-ROW-1).
192 boundary elements in index 5 (Marker = SHROUD-ROW-1).
120 boundary elements in index 6 (Marker = BLADE-ROW-1A).
120 boundary elements in index 7 (Marker = BLADE-ROW-1B).
36 boundary elements in index 8 (Marker = INFLOW).
36 boundary elements in index 9 (Marker = OUTMIX).


Error in "void CPhysicalGeometry:istributeColoring(const CConfig*, CGeometry*)":
-------------------------------------------------------------------------
Mismatch between NPOIN and number of points listed in mesh file.
Please check the mesh file for correctness.

------------------------------ Error Exit -------------------------------

"
It shows that BCs are read correctly. I have checked the NPOIN and NELEM, but I could not find the issue.
Can someone please help me figure out the issue with grid file.

Attached: su2 grid file

Thank you
Attached Files
File Type: zip turbo-cfd-grid.su2.zip (73.7 KB, 1 views)
aero29 is offline   Reply With Quote

Old   October 17, 2024, 03:32
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
After the second keyword NPOIN=1372, you should have 1372 point coordinates x,y,z.

It looks like there are more than 1372 points in the file.
bigfootedrockmidget is offline   Reply With Quote

Old   October 17, 2024, 06:04
Default
  #3
New Member
 
aero29
Join Date: Oct 2018
Location: United States
Posts: 6
Rep Power: 8
aero29 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
After the second keyword NPOIN=1372, you should have 1372 point coordinates x,y,z.

It looks like there are more than 1372 points in the file.
So you mean this error is in Zone-2? and Zone-1 is OK

I have checked the mesh file. There was an issue with elements numbers, that is fixed now and new grid file is attached.
But I was not able to fix the NPOIN issue.

Will be possible for you to have a quick look on the grid file again?

Thank you
Attached Files
File Type: zip turbo-cfd-grid-NEW.su2.zip (73.5 KB, 1 views)

Last edited by aero29; October 17, 2024 at 07:10.
aero29 is offline   Reply With Quote

Old   October 17, 2024, 17:36
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Well, there does not seem to be a mismatch anymore between the value of NPOIN and the actual number of points in the file. Do you really get the same error for this mesh, because it seems to me that this NPOIN problem is solved, but I only had a quick look at the SU2 file so I cannot say for sure.
aero29 likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   October 18, 2024, 05:33
Default
  #5
New Member
 
aero29
Join Date: Oct 2018
Location: United States
Posts: 6
Rep Power: 8
aero29 is on a distinguished road
thank you for taking out time to look into the file.

I have attached the complete package here - *.cfg file, *.su2 grid file .

The mesh file looks okay to me as well. The sanity check by SU2 does not goes beyond Zone-1, so I thought the issue is in Zone-1 .

Could it be because of the white-spaces or the number/ float format that might be causing this?

Whenever you get sometime, please have a look.
It would be a great help.

Thanks again.
Attached Files
File Type: zip turbo-su2-testcase-files.zip (76.0 KB, 3 views)

Last edited by aero29; October 20, 2024 at 02:56.
aero29 is offline   Reply With Quote

Old   October 26, 2024, 07:45
Default
  #6
New Member
 
aero29
Join Date: Oct 2018
Location: United States
Posts: 6
Rep Power: 8
aero29 is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
Well, there does not seem to be a mismatch anymore between the value of NPOIN and the actual number of points in the file. Do you really get the same error for this mesh, because it seems to me that this NPOIN problem is solved, but I only had a quick look at the SU2 file so I cannot say for sure.
.

Please have a look as you get time, any lead will be helpful.
Thank you
aero29 is offline   Reply With Quote

Old   October 27, 2024, 04:53
Default
  #7
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Every zone has independent numbering. So the numbering of points in zone 1 go from 0..NPOIN-1 and the number of elements also go from 0..NELEM-1, of NPOIN and NELEM of the zone it belongs to. You have not added the point index and element index at the end of the lines. I do not think it is mandatory, but especially now, it will help in seeing what is going on.

The connectivity in the elements in zone 1 has to use the point indices of the points in zone 1. You have:

Code:
NPOIN= 1617
    -0.03321400     0.03554698     0.38717762
It will help see what's going on if you add the point index:
Code:
NPOIN= 1617
     -0.03321400     0.03554698     0.38717762 0
These indices run from 0..NPOIN-1

in the element block, you have:
Code:
NELEM= 1152
        12         0         1         8         7       427       428       435       434
the indices that are allowed are the indices 0..NPOIN-1
but the last line of the element connectivity for instance is:

Code:
        12      2357      2358      2365      2364      2784      2785      2792      2791
This is not possible, since you only have 1617 points in the first zone and this line says you have at least 2793 points.
You probably have to
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
grid check failed, troubleshooting, turbomachinery cfd


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 23:13.