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

SU2 compressor / turbomachinery case

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 2 Post By joshkellyjak
  • 1 Post By joshkellyjak
  • 1 Post By Jonathan
  • 2 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2024, 01:21
Default SU2 compressor / turbomachinery case
  #1
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
hi,
I was wondering whether anyone could help me troubleshoot a turbomachinery test case I am trying to get working in SU2.

I get the following error when i run my case:

Quote:
---------------------- Turbomachinery Preprocessing ---------------------

Initialize Turbo Vertex Structure.


Error in "virtual void CPhysicalGeometry::ComputeNSpan(CConfig*, short unsigned int, short unsigned int, bool)":
-------------------------------------------------------------------------
At the moment only turbomachinery with the same amount of span-wise section can be simulated
nSpan inflow 37, nSpan outflow 0
------------------------------ Error Exit -------------------------------
I've seen one or two previous posts and Github issues where this appeared to be as a result of orientation of the rotation axis as 'x' or 'y' and not 'z-axis'.

So i reorientated my grid (to the z-axis) but still get the same error. The case is a test case, so I can post the entire case, but the grid is 50MB.

The grid generator is a custom, but very simple H-grid generator which i wrote a custom converter to, to get it into .su2 format.

Perhaps some can try to run it, and check the setup? As i said its an open case, so happy to share the mesh / config, assuming i can upload the mesh here.
Attached Files
File Type: zip compressor.zip (15.4 KB, 3 views)
Jonathan is offline   Reply With Quote

Old   November 1, 2024, 09:59
Default
  #2
New Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 28
Rep Power: 7
joshkellyjak is on a distinguished road
Hi Jonathan,


Firstly, you are correct in reorienting your grid around the z-axis, this is essential for turbomachinery. Secondly, ensure the flow path follows a positive z-direction. You also need to ensure the 'inflow' and 'outflow' boundaries have the same number of spanwise divisions. The error you show here indicates the code cannot find the start and end points between the two periodic boundaries at the outflow. This could be a mesh issue, make sure your grid is periodic and the boundaries are defined as you would expect. Can you upload an image of your domain with boundary labels, it is difficult to work out what is going on. I suspect the issue may be you are using multiple periodic boundaries in a single zone, this is probably why the turbovertex structure can't be built.
joshkellyjak is offline   Reply With Quote

Old   November 1, 2024, 11:19
Default
  #3
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Hi Joshua,

Quote:
Originally Posted by joshkellyjak View Post
Hi Jonathan,


Firstly, you are correct in reorienting your grid around the z-axis, this is essential for turbomachinery. Secondly, ensure the flow path follows a positive z-direction. You also need to ensure the 'inflow' and 'outflow' boundaries have the same number of spanwise divisions. The error you show here indicates the code cannot find the start and end points between the two periodic boundaries at the outflow. This could be a mesh issue, make sure your grid is periodic and the boundaries are defined as you would expect. Can you upload an image of your domain with boundary labels, it is difficult to work out what is going on. I suspect the issue may be you are using multiple periodic boundaries in a single zone, this is probably why the turbovertex structure can't be built.
Thanks a lot for the response. Nice to make your acquaintance since I was just watching your talk for a conference on SU2 Coding (massflow BC). Very good and clearly presented. Much more tractable than OF tbh.

Attached is a screenshot of the mesh. Luckily flow is in the positive z-direction, but yeah, the periodics are split due to the way the mesh is exported from the grid generator. Hopefully that isnt a problem.

The mesh is generated as a circumferential sweep from a 2D surface in the so it should be 1-to-1 periodic. The grid in the axial direction is a pure sweep in that direction too, so the input / output cell counts in the radial direction should be the same, unless i messed something up in the mesh conversation tool. But from the paraview images, it looks fine ...
Attached Images
File Type: jpg Screenshot from 2024-11-01 16-10-25.jpg (57.7 KB, 7 views)
File Type: jpg Screenshot from 2024-11-01 16-18-23.jpg (42.9 KB, 5 views)
Jonathan is offline   Reply With Quote

Old   November 1, 2024, 11:35
Default
  #4
New Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 28
Rep Power: 7
joshkellyjak is on a distinguished road
Ah nice to get a positive review my youtube tutorial career is beginning to take-off The mass flow BC is now in the master branch in a bit of a better form than that tutorial and I would reccomend using that version for your calculations.



The periodics may be the cause of the issue, it should be fairly simple to concatenate periodics directly in the .su2 mesh file. You can modify the MARKER_TAG directly to include the corresponding elements. If that doesn't work you should try modifying your mesh script to include them as one boundary. The turbovertex structure implementation currently needs a bit of a reformating but it is not a trivial task.
Jonathan and Sakun like this.
joshkellyjak is offline   Reply With Quote

Old   November 1, 2024, 11:46
Default
  #5
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Ok, thanks a lot. I can definitely concatenate the periodics into a single marker ... I hadnt thought about putting them together, but I suppose numerically there potentially might not be an issue ... I dont know enough of how its coded up but that would be much easier than hacking at the mesh ...

thanks again a lot, i'll give it a go and report back as to how it went. hopefully thats the issue, and its not something else i've done wrong.

Cheers
Jon

Quote:
Originally Posted by joshkellyjak View Post
Ah nice to get a positive review my youtube tutorial career is beginning to take-off The mass flow BC is now in the master branch in a bit of a better form than that tutorial and I would reccomend using that version for your calculations.



The periodics may be the cause of the issue, it should be fairly simple to concatenate periodics directly in the .su2 mesh file. You can modify the MARKER_TAG directly to include the corresponding elements. If that doesn't work you should try modifying your mesh script to include them as one boundary. The turbovertex structure implementation currently needs a bit of a reformating but it is not a trivial task.
Jonathan is offline   Reply With Quote

Old   November 1, 2024, 11:57
Default
  #6
New Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 28
Rep Power: 7
joshkellyjak is on a distinguished road
No worries, if that doesn't work update here or contact me on the Slack channel. I can show a simple way to hack the mesh that should work pretty easily
Jonathan likes this.
joshkellyjak is offline   Reply With Quote

Old   November 1, 2024, 12:00
Default
  #7
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Thanks mate

Quote:
Originally Posted by joshkellyjak View Post
No worries, if that doesn't work update here or contact me on the Slack channel. I can show a simple way to hack the mesh that should work pretty easily
Jonathan is offline   Reply With Quote

Old   November 12, 2024, 16:22
Default
  #8
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Just an update, so merging all the periodic patches into the same periodic + periodic_shadow, and reorienting things into the positive z-direction managed to get things working.

So in summary for anyone else who runs into this:
1) Rotation axis must be positive z-axis using right hand rule
2) Flow must be in positive z-direction
3) periodic faces cant be split i.e. you must have only x1 pair of periodic faces per blade row

Cheers
Jon
Sakun likes this.
Jonathan is offline   Reply With Quote

Old   November 13, 2024, 04:09
Default
  #9
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 652
Rep Power: 19
bigfootedrockmidget is on a distinguished road
Great to hear that things are working now.


@Josh: maybe we can add some warning and error messages for each of these points to guide users.
Jonathan and Sakun like this.
bigfootedrockmidget is offline   Reply With Quote

Old   November 13, 2024, 07:03
Default
  #10
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
Great to hear that things are working now.


@Josh: maybe we can add some warning and error messages for each of these points to guide users.
An error message at runtime would be great. the error i got was quite cryptic and took quite a bit of hunting to start tracking things down.
Jonathan is offline   Reply With Quote

Old   November 15, 2024, 03:21
Default
  #11
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 652
Rep Power: 19
bigfootedrockmidget is on a distinguished road
https://github.com/su2code/SU2/issues/2378
bigfootedrockmidget is offline   Reply With Quote

Old   November 15, 2024, 06:32
Default
  #12
New Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 28
Rep Power: 7
joshkellyjak is on a distinguished road
Agree on the error message, but also think a refactor of the whole turbovertext structure is probably more beneficial in the long run.
joshkellyjak is offline   Reply With Quote

Old   November 15, 2024, 06:48
Default
  #13
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 652
Rep Power: 19
bigfootedrockmidget is on a distinguished road
I agree, Josh. My guess is that you already have a pretty good idea what needs to be done. If you can start a PR, that would be great!
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
compressor, su2, 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
Volume marker definition in SU2 Shijian-20 SU2 2 February 18, 2024 20:15
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
Problem with MPI when testing my first case in SU2 Tomjugj SU2 2 September 8, 2023 04:55
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
MRFSimpleFoam wind turbine case diverges ysh1227 OpenFOAM Running, Solving & CFD 2 May 7, 2015 11:13


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