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

HEG cylinder boundary conditions in NEMO

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2024, 22:33
Default HEG cylinder boundary conditions in NEMO
  #1
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Hello,everyone.
I want to reproduce the HEG cylinder testcase in《SU2-NEMO: An Open-Source Framework for High-Mach Nonequilibrium Multi-Species Flows》.

I made many attempts, but the results did not match the article at all. I looked at some of the questions in the forum and I guess there may be something wrong with my boundary conditions.

In this two-dimensional example, there are four boundaries, and I set them as MARKER_FAR,MARKER_SYM,MARKER_SUPERSONIC_OUTLET, and MARKER_ISOTHERMAL, respectively.

However, my wall heat flux and wall pressure are much different from the picture in the article.

I want to know if there are any errors in my boundary conditions.

Thank you in advance for your time and consideration. I truly appreciate any insights or advice you may have to offer.
KleinMoretti is offline   Reply With Quote

Old   March 12, 2024, 22:46
Default
  #2
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
This is my grid, which I cut from the article using incscape and AutoCAD.
Attached Images
File Type: jpg HEGgrid.jpg (84.5 KB, 25 views)
KleinMoretti is offline   Reply With Quote

Old   March 14, 2024, 04:03
Default
  #3
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
In addition, I have another guess, is there a problem with my grid? If so, how can I improve it?
KleinMoretti is offline   Reply With Quote

Old   March 14, 2024, 20:52
Default
  #4
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
After slightly expanding the calculation area, the result is better, but it can be seen that it is still far from the results in the article.

But I don't understand why the thickness of the shock layer is so thin.

It is said in the article that the radius of the cylinder of HEG is 45mm. From the picture in the article, the thickness of the shock layer is about 8-10mm, and my shock layer is only about half of it.

My heat flux on the wall is also about half of the results in the article, but the pressure on the wall is correct, why is this?
Attached Images
File Type: jpg shock layer.jpg (69.9 KB, 21 views)
File Type: jpg p.jpg (119.0 KB, 19 views)
File Type: jpg hf.jpg (67.0 KB, 19 views)
KleinMoretti is offline   Reply With Quote

Old   March 17, 2024, 22:12
Default
  #5
New Member
 
Liming Yang
Join Date: Sep 2023
Posts: 25
Rep Power: 2
CFDWhite is on a distinguished road
Quote:
Originally Posted by KleinMoretti View Post
After slightly expanding the calculation area, the result is better, but it can be seen that it is still far from the results in the article.

But I don't understand why the thickness of the shock layer is so thin.

It is said in the article that the radius of the cylinder of HEG is 45mm. From the picture in the article, the thickness of the shock layer is about 8-10mm, and my shock layer is only about half of it.

My heat flux on the wall is also about half of the results in the article, but the pressure on the wall is correct, why is this?
Could you provide your configuration file?
CFDWhite is offline   Reply With Quote

Old   March 17, 2024, 22:31
Default
  #6
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CFDWhite View Post
Could you provide your configuration file?
Thank you for your kind reply! I really want to know where the problem is.
KleinMoretti is offline   Reply With Quote

Old   March 17, 2024, 22:33
Default
  #7
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CFDWhite View Post
Could you provide your configuration file?
This is my cfg file.
Attached Files
File Type: txt HEG.txt (1.4 KB, 13 views)
KleinMoretti is offline   Reply With Quote

Old   March 18, 2024, 07:04
Default this is the right answer, should fix it
  #8
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 23
Rep Power: 5
CatarinaGarbacz is on a distinguished road
Hi, I'm one of the people that participated in this paper.

For this cylinder case, there was a code-fix that allowed to match the heat flux results. This fix is not in the develop/master branch, but it is in the branch NEMO_AUSMPLUSM_Rollback. If you restart your solution with this branch, you should get better results.

Furthermore, we have observed that heat flux convergence is more difficult to achieve than surface pressure, so make sure you have a fine enough first boundary layer ~ 1e-7m.

Of course, for accurate results, using a grid that captures the shock well is also important.

Catarina
CatarinaGarbacz is offline   Reply With Quote

Old   March 18, 2024, 20:24
Default
  #9
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
Hi, I'm one of the people that participated in this paper.

For this cylinder case, there was a code-fix that allowed to match the heat flux results. This fix is not in the develop/master branch, but it is in the branch NEMO_AUSMPLUSM_Rollback. If you restart your solution with this branch, you should get better results.

Furthermore, we have observed that heat flux convergence is more difficult to achieve than surface pressure, so make sure you have a fine enough first boundary layer ~ 1e-7m.

Of course, for accurate results, using a grid that captures the shock well is also important.

Catarina
Hi,Catarina!Thank you very much!!!

You mean, I need to set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall, right?

I'll try it right away!
KleinMoretti is offline   Reply With Quote

Old   March 18, 2024, 21:08
Default
  #10
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
Hi, I'm one of the people that participated in this paper.

For this cylinder case, there was a code-fix that allowed to match the heat flux results. This fix is not in the develop/master branch, but it is in the branch NEMO_AUSMPLUSM_Rollback. If you restart your solution with this branch, you should get better results.

Furthermore, we have observed that heat flux convergence is more difficult to achieve than surface pressure, so make sure you have a fine enough first boundary layer ~ 1e-7m.

Of course, for accurate results, using a grid that captures the shock well is also important.

Catarina
Hi,Catarina.

I have another question, what has been changed in this branch compared to master? From the point of the branch name, it seems that just modified the space discrete part about AUSMPLUSM scheme? Sorry, although I've seen some of SU2 source code, I'm not very familiar with it.

Thank you again for your kind reply!
KleinMoretti is offline   Reply With Quote

Old   March 19, 2024, 08:02
Default
  #11
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 23
Rep Power: 5
CatarinaGarbacz is on a distinguished road
Hello,


yes that is correct, the main difference is a fix in the AUSMPLUSM scheme that will allow you to get the correct heat flux.

However, this was implemented a couple years ago in NEMO_AUSMPLUSM_Rollback which derived from the develop branch at the time, which has evolved significantly since then. Therefore, besides this specific fix, you will find a lot of structural differences between the NEMO_AUSMPLUSM_Rollback and the current develop/master, but most of those differences, if not all, should not impact the results.
CatarinaGarbacz is offline   Reply With Quote

Old   March 19, 2024, 08:04
Default
  #12
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 23
Rep Power: 5
CatarinaGarbacz is on a distinguished road
and yes, you should set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall.

As i said in my first reply, if refining the wall grid + using this shceme in the NEMO_AUSMPLUSM_Rollback branch doesn't do the job, this could mean the shock also needs further refining
CatarinaGarbacz is offline   Reply With Quote

Old   March 19, 2024, 22:25
Default
  #13
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
and yes, you should set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall.

As i said in my first reply, if refining the wall grid + using this shceme in the NEMO_AUSMPLUSM_Rollback branch doesn't do the job, this could mean the shock also needs further refining
Thank you very much!

I'll try it right away!
KleinMoretti is offline   Reply With Quote

Old   March 20, 2024, 20:58
Default
  #14
New Member
 
Liming Yang
Join Date: Sep 2023
Posts: 25
Rep Power: 2
CFDWhite is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
and yes, you should set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall.

As i said in my first reply, if refining the wall grid + using this shceme in the NEMO_AUSMPLUSM_Rollback branch doesn't do the job, this could mean the shock also needs further refining
Hello, I have also read this article and calculated some examples, do you have any suggestions about the example of RAMC?
CFDWhite is offline   Reply With Quote

Old   March 20, 2024, 21:06
Default
  #15
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
and yes, you should set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall.

As i said in my first reply, if refining the wall grid + using this shceme in the NEMO_AUSMPLUSM_Rollback branch doesn't do the job, this could mean the shock also needs further refining
Hiya, I tried to compile the NEMO_AUSMPLUSM_rollback branch in linux and I have clearly set Dwith-mip=enabled, but the compiled file still can not use parallel computation.

I used the ldd command to look at the libraries that the SU2_CFD relies on, it does include mpi.

Why is that?
Attached Images
File Type: jpg 1.jpg (134.7 KB, 13 views)
File Type: jpg 2.jpg (119.5 KB, 6 views)
KleinMoretti is offline   Reply With Quote

Old   March 20, 2024, 21:15
Default
  #16
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
and yes, you should set CONV_NUM_METHOD_FLOW = AUSMPLUSM and modify the grid near the wall.

As i said in my first reply, if refining the wall grid + using this shceme in the NEMO_AUSMPLUSM_Rollback branch doesn't do the job, this could mean the shock also needs further refining
I also noticed that the NEMO solver in this branch can't use the implicit scheme, so did you use the explicit format to compute this example? If so , can you give me some advice about the CFL number?

Thank you for your kind help!
KleinMoretti is offline   Reply With Quote

Old   March 21, 2024, 02:48
Default
  #17
New Member
 
Liming Yang
Join Date: Sep 2023
Posts: 25
Rep Power: 2
CFDWhite is on a distinguished road
Quote:
Originally Posted by KleinMoretti View Post
Hiya, I tried to compile the NEMO_AUSMPLUSM_rollback branch in linux and I have clearly set Dwith-mip=enabled, but the compiled file still can not use parallel computation.

I used the ldd command to look at the libraries that the SU2_CFD relies on, it does include mpi.

Why is that?
I'm a little confused about branch compilation: When compiling a new branch, does the previously compiled content need to be deleted?Thank you for all your suggestions
CFDWhite is offline   Reply With Quote

Old   March 21, 2024, 03:49
Default
  #18
Member
 
AN
Join Date: Jan 2024
Posts: 37
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CFDWhite View Post
I'm a little confused about branch compilation: When compiling a new branch, does the previously compiled content need to be deleted?Thank you for all your suggestions
I don't think you need to delete it, because your previously compiled file and the new branch are usually not in the same folder.
KleinMoretti is offline   Reply With Quote

Old   March 21, 2024, 08:33
Default
  #19
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 23
Rep Power: 5
CatarinaGarbacz is on a distinguished road
Hi,


yes, implicit scheme will not work in the NEMO_AUSMPLUSM_rollback branch.


Compiling without deleting anything should be enough. But if you're having issues, just clear everything and install/compile from scratch in the desired branch
CatarinaGarbacz is offline   Reply With Quote

Old   March 21, 2024, 08:39
Default
  #20
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 23
Rep Power: 5
CatarinaGarbacz is on a distinguished road
For the explicit scheme the CFL will vary depending on the mesh and the state of the simulation, and if you're using 1st or 2nd order, so there's no specific wrong or right answer.

It's the user's role to test different values and see what works, and gain their own sensitivity to this parameter. When explicit 1st order simulations converge easily CFL = 0.5-0.75 usually works. If using 2nd order or a mesh leading to more difficult convergence, CFL = 0.1 could be used. In some rare occasions, where the bow shock is very strong and may lead to carbuncle problem, I have had to use CFL = 0.01 to get an initial developed flow, and then raised it again. It's a bit of trial and error exercise that's very case dependent.
CatarinaGarbacz is offline   Reply With Quote

Reply


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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 20:14.