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

3D Turbomachinery Case Failure

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2024, 16:54
Default 3D Turbomachinery Case Failure
  #1
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi,



I am running the 3D model of my previous case as mentioned in this thread Bad Match Turbomachinery. It is an infinite blade so I just extruded in the z-direction (spanwise direction) by 100 layers. 2D case was well converged but 3D case just failed without a proper error explanation. I have attached the console outcome in the txt file (info.txt file).



By the information from it, I am not quite sure is it because of the negative minimum orthogonal angle.


Much appreciate for the help.
Attached Files
File Type: txt info.txt (16.0 KB, 15 views)
Sakun is offline   Reply With Quote

Old   November 21, 2024, 18:20
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 761
Rep Power: 21
bigfootedrockmidget is on a distinguished road
How large is your mesh now? Can you monitor the memory consumption while it runs?
It might be that you just start to run out of memory and the linux memory manager decided to kill the process.
bigfootedrockmidget is offline   Reply With Quote

Old   November 22, 2024, 05:11
Default
  #3
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi bigfoot,

Well coarse mesh size around 6 million. Tried to run in my laptop before running in the cluster so that I can confirm my .cfg file would work without an issue.
Basically, my laptop has 14 physical cores and 16 GB of RAM.
Sakun is offline   Reply With Quote

Old   November 22, 2024, 06:39
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 761
Rep Power: 21
bigfootedrockmidget is on a distinguished road
A 2.6M elements case on my machine used between 12G and 14G of memory, so I do not think you would be able to run a 6M cell case with 16Gb. Maybe you can run first with 10 layers as a test.
But a negative orthogonal angle also does not sound correct.
bigfootedrockmidget is offline   Reply With Quote

Old   November 25, 2024, 10:39
Default
  #5
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi,

So I was trying to run the case in the cluster for 10 iterations but after 6min later I got this “nan in mixing process routine for iSpan: 75 in marker INLET” and then “SU2 has diverged (NaN detected)” error. (error was repeated for 128 times, i had to delete some lines to reduce the file size) No data were recorded in the “History.csv” as well.

I have attached the full console details with this reply.
Attached Files
File Type: txt SU2_3D.txt (192.7 KB, 8 views)
Sakun is offline   Reply With Quote

Old   November 27, 2024, 11:40
Default
  #6
New Member
 
Evert Bunschoten
Join Date: Nov 2024
Location: Netherlands
Posts: 11
Rep Power: 2
EvertBunschoten is on a distinguished road
It looks like there are some warnings in the output regarding the mesh quality when loading the geometry:
Quote:
There has been a re-orientation of 2079 HEXAHEDRON volume elements.
>>> WARNING: 4225 HEXAHEDRON, volume elements are distorted.
It was not possible to determine if their orientation is correct.
There has been a re-orientation of 88 QUADRILATERAL surface elements.
>>> WARNING: 38 QUADRILATERAL surface elements are distorted.
It was not possible to determine if their orientation is correct.
This may be the cause of the problem. Can you run one iteration at a very low CFL and check the volume output? Perhaps there you may be able to find out which areas in the domain are problematic.
EvertBunschoten is offline   Reply With Quote

Old   November 28, 2024, 12:00
Default
  #7
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi Evert,

Really appreciate for the reply,

I am using ansys ICEM to generate the mesh, so in order to define periodicity I have to use vertices method. After applying that method edges that associated with vertices would incline and mesh cell become skewed (attached a picture with white arrows).

To tackle this, I have merged couple of blocks from top and bottom (merged blocks and mesh attachment) and applied tri/hex mesh cells. Then tried to run 1 iteration in the cluster and I got an error (simulation_update attachment).
Attached Images
File Type: jpg afterapplyingPeriodic.jpg (195.4 KB, 23 views)
File Type: jpg mergedEdges.jpg (41.4 KB, 10 views)
File Type: jpg mergedMesh.jpg (193.8 KB, 11 views)
Attached Files
File Type: txt simulation_Update.txt (12.4 KB, 6 views)
Sakun is offline   Reply With Quote

Old   November 28, 2024, 13:09
Default
  #8
New Member
 
Evert Bunschoten
Join Date: Nov 2024
Location: Netherlands
Posts: 11
Rep Power: 2
EvertBunschoten is on a distinguished road
The error you get now is related to your boundary conditions. It means that not all outer surface elements in your mesh file have been assigned a boundary condition. Make sure that when generating your mesh file in ICEM all outer surfaces have been assigned to a named selection.
EvertBunschoten is offline   Reply With Quote

Old   November 29, 2024, 09:42
Default
  #9
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi,

I just went back to the 2D mesh, where I didn’t do any treatments for inclined mesh cells and ran 5000 iterations without an issue (attached 2D simulation output file).
So I used the 2D mesh to create 3D mesh where I just transform both geometry and blocks to the spanwise direction (+Z direction). Then I got and error called “nan in mixing process…….” (attached 3D simulation output file with the error). Also, i made sure proper edge, vertices association and mesh allocation done for both 2D and 3D before running the simulation.

Many thanks for your help and time.
Attached Images
File Type: jpg 2D Geo.jpg (39.7 KB, 12 views)
File Type: jpg 2D.jpg (159.1 KB, 12 views)
Attached Files
File Type: txt 3D.txt (159.4 KB, 4 views)
Sakun is offline   Reply With Quote

Old   November 29, 2024, 10:03
Default
  #10
New Member
 
Evert Bunschoten
Join Date: Nov 2024
Location: Netherlands
Posts: 11
Rep Power: 2
EvertBunschoten is on a distinguished road
Hi,
Three things:
1: As of yet, SU2 assumes the axial flow path to go in the +Z direction. We are working on making the axial flow path more general, but this is still in early stages. Therefore, your mesh should be oriented accordingly. If you have a 2D mesh defined on the XY plane and extrude it in the Z direction, SU2 still assumes a +Z axial flow path, which may be the reason why your simulation crashes in 3D.



2: Even though your 2D simulation runs, it doesn't seem to converge very well (residual of > +1.0 is not desirable). If you include RESIDUAL in the option for VOLUME_OUTPUT in your configuration file and visualize the volume field in your post-processor of choice, you can locate the areas where SU2 has trouble converging.


3: My advice is to use Ansys TurboGrid for the mesh generation rather than ICEM. TurboGrid generates meshes dedicated for turbomachinery applications and is less prone to user error than ICEM is (saves you a lot of time too).
Sakun likes this.
EvertBunschoten is offline   Reply With Quote

Old   November 29, 2024, 11:41
Default
  #11
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Hi,

At the moment I am using following settings in the .cfg file (3D_sim.txt file). I guess 3D turbomachinery flow simulation possible in SU2 right ?, cause i have seen some people have published similar cases to mine with 3D simulations and seen in the SU2 conference videos as well.

I have specified 3rd axis faces as BACK [ MARKER_HEATFLUX= (BLADE, 0.0, BACK, 0.0 ) ] and FRONT [MARKER_SYM= ( FRONT )] .
Do I have to add anything special to define the flow direction ? or 3rd axis.

Yeah, I am figuring out TGrid at the moment, it is bit confusing to learn that. hopefully I will be able to.

Thanks for the advice on the convergence and your time spend on this,
Attached Files
File Type: txt 3D_sim.txt (6.0 KB, 7 views)
Sakun is offline   Reply With Quote

Old   December 3, 2024, 07:51
Default
  #12
New Member
 
Evert Bunschoten
Join Date: Nov 2024
Location: Netherlands
Posts: 11
Rep Power: 2
EvertBunschoten is on a distinguished road
Hi Sakun,


3D turbomachinery simulations are definitely possible in SU2. You need to make sure however that your mesh is oriented correctly. Here, the rotation axis of the machine should be the z-axis. If that's not the case, rotate your mesh accordingly before initiating the simulation. The z-axis is currently hard-coded in SU2 to be the rotation axis for 3D simulations.
From my understanding, you took a 2D blade mesh defined on the xy plane and extruded it in the z-direction to generate a 3D mesh. This will not work in SU2, for the reason I mentioned earlier. If you switch the x- and z- coordinates of the nodes in the mesh file, I suspect your simulation will run much better.
EvertBunschoten is offline   Reply With Quote

Old   December 3, 2024, 09:10
Default
  #13
Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 54
Rep Power: 8
joshkellyjak is on a distinguished road
Quote:
Originally Posted by Sakun View Post
Hi,

At the moment I am using following settings in the .cfg file (3D_sim.txt file). I guess 3D turbomachinery flow simulation possible in SU2 right ?, cause i have seen some people have published similar cases to mine with 3D simulations and seen in the SU2 conference videos as well.

I have specified 3rd axis faces as BACK [ MARKER_HEATFLUX= (BLADE, 0.0, BACK, 0.0 ) ] and FRONT [MARKER_SYM= ( FRONT )] .
Do I have to add anything special to define the flow direction ? or 3rd axis.

Yeah, I am figuring out TGrid at the moment, it is bit confusing to learn that. hopefully I will be able to.

Thanks for the advice on the convergence and your time spend on this,
You should remove the option NUM_SPANWISE_SECTIONS.

Maybe add some more linear solver iterations to help the solver out in the early iterations where your solution is crashing.

Is this geometry representative of an experimental case? Your outlet static pressure is lower than the inlet total pressure for a compressor case, but I'm not sure if the inlet static pressure would be lower at the inlet than the outlet (i.e. is it compressing?)

Try running first order ROE first and restarting, or using JST. JST can be a bit more stable in some cases.
joshkellyjak is online now   Reply With Quote

Old   December 3, 2024, 15:04
Default
  #14
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 761
Rep Power: 21
bigfootedrockmidget is on a distinguished road
If only we had a couple of tutorials that shows the correct/preferred settings :-)
Sakun likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   December 3, 2024, 15:05
Default
  #15
Member
 
Josh Kelly
Join Date: Dec 2018
Posts: 54
Rep Power: 8
joshkellyjak is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
If only we had a couple of tutorials that shows the correct/preferred settings :-)
I have been assured they are on the way
joshkellyjak is online now   Reply With Quote

Old   December 4, 2024, 05:30
Default
  #16
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by EvertBunschoten View Post
Hi Sakun,


3D turbomachinery simulations are definitely possible in SU2. You need to make sure however that your mesh is oriented correctly. Here, the rotation axis of the machine should be the z-axis. If that's not the case, rotate your mesh accordingly before initiating the simulation. The z-axis is currently hard-coded in SU2 to be the rotation axis for 3D simulations.
From my understanding, you took a 2D blade mesh defined on the xy plane and extruded it in the z-direction to generate a 3D mesh. This will not work in SU2, for the reason I mentioned earlier. If you switch the x- and z- coordinates of the nodes in the mesh file, I suspect your simulation will run much better.

Hi Evert,

Many thanks for the reply and confirmation,

Yeah that’s the method I have used but I have simulated a 3D airfoil case using the same method (2D mesh defined on the xy plane and extruded that in the z-direction to generate a 3D mesh) and simulation ran without an issue for 30000 iterations and got well converged as well (attachment).

I suspect something wrong in the mesh, like highly skewed mesh cell.
Attached Images
File Type: png Airfoil 3D_cD.PNG (80.9 KB, 9 views)
Sakun is offline   Reply With Quote

Old   December 4, 2024, 05:32
Default
  #17
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by joshkellyjak View Post
You should remove the option NUM_SPANWISE_SECTIONS.

Maybe add some more linear solver iterations to help the solver out in the early iterations where your solution is crashing.

Is this geometry representative of an experimental case? Your outlet static pressure is lower than the inlet total pressure for a compressor case, but I'm not sure if the inlet static pressure would be lower at the inlet than the outlet (i.e. is it compressing?)

Try running first order ROE first and restarting, or using JST. JST can be a bit more stable in some cases.
Hi Josh,

Appreciate for the suggestions,

I have tried every suggestion one at a time and had the same error (error message attached).

So this case from a journal paper (yes, it represent both numerical and experimental case ) to use for validation (paper values are attached ). I have calculated the INLET static pressure using INLET total pressure, Mach number and OUTLET static pressure.
Attached Images
File Type: png Sim_Error.PNG (91.6 KB, 5 views)
File Type: png paper values.PNG (39.3 KB, 11 views)
Sakun is offline   Reply With Quote

Old   December 4, 2024, 06:03
Default
  #18
New Member
 
Evert Bunschoten
Join Date: Nov 2024
Location: Netherlands
Posts: 11
Rep Power: 2
EvertBunschoten is on a distinguished road
Quote:
Originally Posted by Sakun View Post
Hi Evert,

Many thanks for the reply and confirmation,

Yeah that’s the method I have used but I have simulated a 3D airfoil case using the same method (2D mesh defined on the xy plane and extruded that in the z-direction to generate a 3D mesh) and simulation ran without an issue for 30000 iterations and got well converged as well (attachment).

I suspect something wrong in the mesh, like highly skewed mesh cell.

This mesh orientation (2D xy, extruded into the +z-direction) is fine for any simulation OTHER than turbomachinery simulations. The moment you define a turbomachinery simulation in SU2 (through MARKER_TURBOMACHINERY), SU2 will assume the z-axis to be the axis of rotation and your current set-up will not run properly.
joshkellyjak and Sakun like this.
EvertBunschoten is offline   Reply With Quote

Old   December 4, 2024, 12:27
Default
  #19
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by EvertBunschoten View Post
This mesh orientation (2D xy, extruded into the +z-direction) is fine for any simulation OTHER than turbomachinery simulations. The moment you define a turbomachinery simulation in SU2 (through MARKER_TURBOMACHINERY), SU2 will assume the z-axis to be the axis of rotation and your current set-up will not run properly.

Hi Evert,

So I have to recreate my 2D mesh in zx axis (previously xy axis) and extrude in +y direction (previously +z direction) for 3D mesh (correct me if I am wrong). And leave the .cfg as it is or do I have to do some changes to that as well.

Thanks for your valuable time,
Attached Images
File Type: png 2D orientation.PNG (8.0 KB, 2 views)
Sakun is offline   Reply With Quote

Old   December 9, 2024, 09:44
Default
  #20
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 168
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by EvertBunschoten View Post
This mesh orientation (2D xy, extruded into the +z-direction) is fine for any simulation OTHER than turbomachinery simulations. The moment you define a turbomachinery simulation in SU2 (through MARKER_TURBOMACHINERY), SU2 will assume the z-axis to be the axis of rotation and your current set-up will not run properly.
Hi Evert,

I have created 2 types of meshes where rotation axis to be in z-direction.

1st mesh was created in ZY plane and extruded in x direction for the 3D (wide mesh).
2nd mesh was created in ZX plane and extruded in Y direction for the 3D (Tall mesh).

With the 1st mesh tried to set up the simulation with suitable inflow angle but it crashes after few iterations with an error saying negative density or pressure in mixing process routine for iSpan: 70 in marker INLET (attached the error file, named 1st Mesh).

2nd mesh gives a different sort of error (error file attached, named 2nd Mesh). Apparently it does not read y-axis cells/geometry components (correct me if I am wrong), zero is shown in the y-axis at “Area projection, Max. coordinate, Min. coordinate”, under Geometry Preprocessing section.

I think 2nd mesh is appropriate for the simulation my understanding, but I don’t know why y-axis isn’t reading by the solver.

Highly appreciate if you can help me on this.
Attached Images
File Type: jpg 1st Mesh.jpg (22.0 KB, 12 views)
File Type: jpg 2nd Mesh.jpg (23.4 KB, 11 views)
File Type: png 2nd Mesh_Geo_Info.PNG (45.7 KB, 13 views)
Attached Files
File Type: txt 1st Mesh.txt (65.2 KB, 5 views)
Sakun is offline   Reply With Quote

Reply

Tags
icem, rans, turbomachinery

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
MRF with translation zone in 2D turbomachinery case sponiar OpenFOAM Running, Solving & CFD 2 July 7, 2020 02:15
Reporting a bug in Allrun script on wingMotion case i.sabahi OpenFOAM Bugs 0 June 10, 2018 09:00
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Error reading new case montag dp FLUENT 5 September 15, 2011 06:00
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 11:06.