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   April 16, 2024, 06:29
Default
  #41
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by KleinMoretti View Post
I used "cout" on the 5*5 grid of thermal bath example, h is 1 in 8.0.0, which is agreed with my expectation, because the initial field is given by the free stream condition, the pressure at all points on the grid is the same, so h is 1, but why is it close to 0 in rollback?
From the mathematical perspective, I can't find the difference of the pressure sensor calculations between 8.0.0 and rollback.
Attached Images
File Type: jpg rollback.jpg (65.6 KB, 11 views)
File Type: jpg 8.0.0.jpg (77.1 KB, 8 views)
KleinMoretti is offline   Reply With Quote

Old   April 16, 2024, 06:37
Default
  #42
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 25
Rep Power: 5
CatarinaGarbacz is on a distinguished road
where are you printing h in 8.0.0?

could you send me the file where you're printing and indicate the line, please?
CatarinaGarbacz is offline   Reply With Quote

Old   April 16, 2024, 06:39
Default
  #43
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 25
Rep Power: 5
CatarinaGarbacz is on a distinguished road
nevermind I just saw you posted the images of the code
CatarinaGarbacz is offline   Reply With Quote

Old   April 16, 2024, 07:29
Default
  #44
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
where are you printing h in 8.0.0?

could you send me the file where you're printing and indicate the line, please?
Sure. The "cout" is at line 614 in 8.0.0 and line 191 in rollback.
Attached Files
File Type: zip cout.zip (8.2 KB, 0 views)
KleinMoretti is offline   Reply With Quote

Old   April 16, 2024, 07:36
Default
  #45
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
where are you printing h in 8.0.0?

could you send me the file where you're printing and indicate the line, please?
I noticed in your article that it took 80 hours to calculate with 40 cores, was this calculation done under the rollback branch? Can you give me an approximate number of steps when it converges?

It took me 7 hours to calculate 200,000 steps in modified 8.0.0, but it looks particularly far away from converging.
KleinMoretti is offline   Reply With Quote

Old   April 16, 2024, 08:26
Default
  #46
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 25
Rep Power: 5
CatarinaGarbacz is on a distinguished road
the AUSM implementation in the rollback and 8.0.0 branches are supposed to give different results, as discussed at the start of this thread.

if h_k / sensor variable is the only variable in the whole AUSM implementation that you found to be different between rollback and 8.0.0 branches, then this is the correction that has been made.

at the moment we are not sure which implementation is correct. some experimental cases agree better with one approach, and vice-versa. more detailed work would have to be done to get to the bottom of this issue.

-----

about code performance, I have no access to that information as those simulations have been performed too long ago. you mentioned the 7h and 200,000 steps, but what is the number of cores? if using the same number of cores as the paper (40 cores), many more hours are needed to reach convergence since in the paper it took around 80h
CatarinaGarbacz is offline   Reply With Quote

Old   April 30, 2024, 04:02
Default
  #47
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
the AUSM implementation in the rollback and 8.0.0 branches are supposed to give different results, as discussed at the start of this thread.

if h_k / sensor variable is the only variable in the whole AUSM implementation that you found to be different between rollback and 8.0.0 branches, then this is the correction that has been made.

at the moment we are not sure which implementation is correct. some experimental cases agree better with one approach, and vice-versa. more detailed work would have to be done to get to the bottom of this issue.

-----

about code performance, I have no access to that information as those simulations have been performed too long ago. you mentioned the 7h and 200,000 steps, but what is the number of cores? if using the same number of cores as the paper (40 cores), many more hours are needed to reach convergence since in the paper it took around 80h
Hello, thank you for your help recently! The result I got after modifying the 8.0.0 code is very close to the result in your article, but there are still slight differences. Near the degree=80-90 on the wall, the heat flux and pressure converge very slowly, and I have not completely converged in about 10 days under 32 cores.

I guess there may be something wrong with my grid. I want to refer to the structural grid in your article, but I don't understand it.
KleinMoretti is offline   Reply With Quote

Old   April 30, 2024, 04:13
Default
  #48
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
the AUSM implementation in the rollback and 8.0.0 branches are supposed to give different results, as discussed at the start of this thread.

if h_k / sensor variable is the only variable in the whole AUSM implementation that you found to be different between rollback and 8.0.0 branches, then this is the correction that has been made.

at the moment we are not sure which implementation is correct. some experimental cases agree better with one approach, and vice-versa. more detailed work would have to be done to get to the bottom of this issue.

-----

about code performance, I have no access to that information as those simulations have been performed too long ago. you mentioned the 7h and 200,000 steps, but what is the number of cores? if using the same number of cores as the paper (40 cores), many more hours are needed to reach convergence since in the paper it took around 80h
What does that mean, please? My understanding is that if there are x points circumferential and y points radial, then the total number of grid points is x*y, and the total number of cells is (x-1) * (y-1).
Attached Images
File Type: jpg grid.jpg (44.0 KB, 5 views)
KleinMoretti is offline   Reply With Quote

Old   April 30, 2024, 04:27
Default
  #49
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
the AUSM implementation in the rollback and 8.0.0 branches are supposed to give different results, as discussed at the start of this thread.

if h_k / sensor variable is the only variable in the whole AUSM implementation that you found to be different between rollback and 8.0.0 branches, then this is the correction that has been made.

at the moment we are not sure which implementation is correct. some experimental cases agree better with one approach, and vice-versa. more detailed work would have to be done to get to the bottom of this issue.

-----

about code performance, I have no access to that information as those simulations have been performed too long ago. you mentioned the 7h and 200,000 steps, but what is the number of cores? if using the same number of cores as the paper (40 cores), many more hours are needed to reach convergence since in the paper it took around 80h
One more question, I saw in your paper that you also calculated inviscid flow, how do you give the boundary conditions for inviscid flow? It seems that the wall in NEMO_EULER can only be MARKER_EULER, not Isothermal noncatalytic wall.
KleinMoretti is offline   Reply With Quote

Old   April 30, 2024, 06:39
Default
  #50
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 25
Rep Power: 5
CatarinaGarbacz is on a distinguished road
Hello,


slight differences are probably due to the slight differences in the mesh and, potentially, also lack of further convergence.

Indeed, near the degree=80-90 on the wall, the convergence was also extremely slow for us.

Your grid is not necessarily wrong, but just different, which could yield slight differences. What's the magnitude of the differences?

You're correct about the grid data, there's something wrong with it. Therefore I am not sure exactly how the grid was set up. But I can tell you that, we needed a first boundary layer thickness of 1e-7m to be able to match the wall heat flux with experimental data. So that is my recommendation. Other than that, even if you don't have exactly the same grid, having a similar or finer grid than the paper should yield similar results (even if not exactly the same, as there is always some influence of the grid, especially a structured grid where it is difficult to capture the shock in a perfect manner).

About the boundary condition, isothermal wall is a viscous boundary condition, so it only is applied for viscous flow. in the inviscid case, MARKER_EULER is the appropriate boundary condition. but this is general CFD knowledge, not specific to this code or paper
CatarinaGarbacz is offline   Reply With Quote

Old   April 30, 2024, 22:54
Default
  #51
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
Hello,


slight differences are probably due to the slight differences in the mesh and, potentially, also lack of further convergence.

Indeed, near the degree=80-90 on the wall, the convergence was also extremely slow for us.

Your grid is not necessarily wrong, but just different, which could yield slight differences. What's the magnitude of the differences?

You're correct about the grid data, there's something wrong with it. Therefore I am not sure exactly how the grid was set up. But I can tell you that, we needed a first boundary layer thickness of 1e-7m to be able to match the wall heat flux with experimental data. So that is my recommendation. Other than that, even if you don't have exactly the same grid, having a similar or finer grid than the paper should yield similar results (even if not exactly the same, as there is always some influence of the grid, especially a structured grid where it is difficult to capture the shock in a perfect manner).

About the boundary condition, isothermal wall is a viscous boundary condition, so it only is applied for viscous flow. in the inviscid case, MARKER_EULER is the appropriate boundary condition. but this is general CFD knowledge, not specific to this code or paper
The curves of wall heat flux and pressure look close, but they are not completely converging, and their peaks are about 5%-6% different. The Ttr cloud picture is close, but the Tve cloud picture looks a lot worse. And Tve's cloud picture hasn't changed much in a while.
Attached Images
File Type: jpg Ttr.jpg (73.7 KB, 5 views)
File Type: jpg Tve.jpg (72.5 KB, 5 views)
File Type: jpg Pressure.jpg (68.5 KB, 5 views)
File Type: jpg wall heat flux.jpg (76.8 KB, 8 views)
File Type: jpg wall pressure.jpg (51.8 KB, 7 views)
KleinMoretti is offline   Reply With Quote

Old   April 30, 2024, 22:57
Default
  #52
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
Hello,


slight differences are probably due to the slight differences in the mesh and, potentially, also lack of further convergence.

Indeed, near the degree=80-90 on the wall, the convergence was also extremely slow for us.

Your grid is not necessarily wrong, but just different, which could yield slight differences. What's the magnitude of the differences?

You're correct about the grid data, there's something wrong with it. Therefore I am not sure exactly how the grid was set up. But I can tell you that, we needed a first boundary layer thickness of 1e-7m to be able to match the wall heat flux with experimental data. So that is my recommendation. Other than that, even if you don't have exactly the same grid, having a similar or finer grid than the paper should yield similar results (even if not exactly the same, as there is always some influence of the grid, especially a structured grid where it is difficult to capture the shock in a perfect manner).

About the boundary condition, isothermal wall is a viscous boundary condition, so it only is applied for viscous flow. in the inviscid case, MARKER_EULER is the appropriate boundary condition. but this is general CFD knowledge, not specific to this code or paper
The thickness I set for the first layer of the wall normal element is exactly 1e-7
KleinMoretti is offline   Reply With Quote

Old   May 1, 2024, 05:45
Default
  #53
New Member
 
Catarina Garbacz
Join Date: Jun 2020
Posts: 25
Rep Power: 5
CatarinaGarbacz is on a distinguished road
My first comment is: here you are plotting your results, but there is no visual comparison with the reference results, that makes it difficult to say how they compare. If you're discussing a comparison between different sets of results, always plot them together.

As stated in the previous message, the convergence was seen to be extremely slow. So if you're results are still converging, there is no point in trying to make any final conclusions about small differences in magnitude that might be resolved by letting the simulation converge. Just let it run until it fully converges.

Also, even though you have successfully incorporated the AUSM correction from the older branch into the 8.0.0, there will be other differences between those 2 branches that can possibly be causing the small differences in the results. On top of that, as we discussed, the small differences in the mesh will also lead to slightly different results.

There is another important point I just realised now as you're showing me some results. The symmetry boundary condition of SU2 has a bug that comes up when simulating the stagnation line in supersonic flow. In this type of flow, the heat flux should increase monotonically along the wall and reach a maximum at the stagnation point. The fact that this is not happening in your case is a consequence of this bug. Contrary to the other factors (small differences in mesh and code), this is actually an issue, that you seemed to not have noticed. If you look at Fig. 5 of the paper (Impact of Anisotropic Mesh Adaptation on the Aerothermodynamics of Atmospheric Reentry), the author simulates both halves of the domain, to avoid the use of the symmetric BC, which yields a significantly different shape of the heat flux and pressure around the stagnation point. This is the problematic difference in your results that you should have noticed, because it actually corresponds to a different physical behavior (as opposed to having a similar shape with slight differences in magnitude). It is possible that this explains the differences of the contours of Tve and Ttr.

In any case, at this point, it seems that everything is going in the right direction.

If you're just trying to match your results with the paper, in my view, the conclusions is:
1- simulate the full domain to avoid the symmetry BC and focus on obtaining the correct shape of heat flux and pressure distributions

2- once the shape seems to be the correct one, let your results FULLY converge until they do not change anymore, and then compare the magnitude in more detail
3- this will probably already make your results much closer to the paper
4-if, at the end, the shape of the curves is the same but there are still small differences in magnitude, this is fine, as it is expected due to differences in the mesh and small corrections that have been done in the code
5- if those differences are small enough, given point 4, you can consider your results verified
CatarinaGarbacz is offline   Reply With Quote

Old   May 1, 2024, 11:15
Default
  #54
Member
 
AN
Join Date: Jan 2024
Posts: 43
Rep Power: 2
KleinMoretti is on a distinguished road
Quote:
Originally Posted by CatarinaGarbacz View Post
My first comment is: here you are plotting your results, but there is no visual comparison with the reference results, that makes it difficult to say how they compare. If you're discussing a comparison between different sets of results, always plot them together.

As stated in the previous message, the convergence was seen to be extremely slow. So if you're results are still converging, there is no point in trying to make any final conclusions about small differences in magnitude that might be resolved by letting the simulation converge. Just let it run until it fully converges.

Also, even though you have successfully incorporated the AUSM correction from the older branch into the 8.0.0, there will be other differences between those 2 branches that can possibly be causing the small differences in the results. On top of that, as we discussed, the small differences in the mesh will also lead to slightly different results.

There is another important point I just realised now as you're showing me some results. The symmetry boundary condition of SU2 has a bug that comes up when simulating the stagnation line in supersonic flow. In this type of flow, the heat flux should increase monotonically along the wall and reach a maximum at the stagnation point. The fact that this is not happening in your case is a consequence of this bug. Contrary to the other factors (small differences in mesh and code), this is actually an issue, that you seemed to not have noticed. If you look at Fig. 5 of the paper (Impact of Anisotropic Mesh Adaptation on the Aerothermodynamics of Atmospheric Reentry), the author simulates both halves of the domain, to avoid the use of the symmetric BC, which yields a significantly different shape of the heat flux and pressure around the stagnation point. This is the problematic difference in your results that you should have noticed, because it actually corresponds to a different physical behavior (as opposed to having a similar shape with slight differences in magnitude). It is possible that this explains the differences of the contours of Tve and Ttr.

In any case, at this point, it seems that everything is going in the right direction.

If you're just trying to match your results with the paper, in my view, the conclusions is:
1- simulate the full domain to avoid the symmetry BC and focus on obtaining the correct shape of heat flux and pressure distributions

2- once the shape seems to be the correct one, let your results FULLY converge until they do not change anymore, and then compare the magnitude in more detail
3- this will probably already make your results much closer to the paper
4-if, at the end, the shape of the curves is the same but there are still small differences in magnitude, this is fine, as it is expected due to differences in the mesh and small corrections that have been done in the code
5- if those differences are small enough, given point 4, you can consider your results verified
Thank you very much! I will have a try.
.
KleinMoretti 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 15:31.