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

Boundary condition for the shock wave

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2024, 15:27
Default Boundary condition for the shock wave
  #1
New Member
 
Valerio
Join Date: Apr 2024
Posts: 4
Rep Power: 2
cucs77 is on a distinguished road
Hello, I'm a new SU2 user. I use Shock-Fitting Methods, so I Need to add the boundary condition for the shock in Source code. Is It possible? If yes, which subroutine can I modify? Thanks.
cucs77 is offline   Reply With Quote

Old   April 4, 2024, 17:02
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 599
Rep Power: 17
bigfootedrockmidget is on a distinguished road
I don't understand what you are asking. The shocks will be present as a solution of the Euler equations, and we have shock capturing schemes available, like MUSCL schemes.
What is it that you want to achieve?
bigfootedrockmidget is offline   Reply With Quote

Old   April 4, 2024, 17:29
Default
  #3
New Member
 
Valerio
Join Date: Apr 2024
Posts: 4
Rep Power: 2
cucs77 is on a distinguished road
In the shock-fitting technique the shock wave are considered as internal boundaries in the flow field. In particular in 3D, they are surfaces inside the field and their displacement is caused by the application of Jump relations. So, I have to impose a new boundary condition for the shock inside the source code. I don't know If Is possible.
cucs77 is offline   Reply With Quote

Old   April 5, 2024, 02:58
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 599
Rep Power: 17
bigfootedrockmidget is on a distinguished road
I had to look this up, it does not appear to be a widely used method anymore. This is Moretti's method, where you solve the Rankine-Hugoniot relations?
If it it is 'true' shock fitting it seems you need to track the location of the shock somehow, and possibly also modify the computational mesh. The best you can do in SU2 right now without a PhD effort is probably trying to find the location of the shock using the current mesh and move mesh points towards that location.

For using the RH relations, do you typically solve the RH relations for each cell or cell face and identify the shock in that way?
bigfootedrockmidget is offline   Reply With Quote

Old   April 5, 2024, 03:43
Default
  #5
New Member
 
Valerio
Join Date: Apr 2024
Posts: 4
Rep Power: 2
cucs77 is on a distinguished road
It's an evolution of Moretti's technique. I developed a Shock-fitting code that works with a shock-capturing solver. It Is an hybrid approach. So, I don't need to use SU2 for the shock-fitting part. In particular, I have a mesh with a Wall and also with shock (upstream and downstream) surfaces. But I have to impose a new boundary condition. For example for an inviscid Wall I impose MARKER_EULER (...). Now, I need to impose a new bnd for example MARKER_SHOCK for the shock wave. I know that SU2 hasn't this condition in this moment. I'd like to know If there Is a possibility to modify the source code (the One on GitHub) tò add this new boundary condition. Finally, I'd likes to know in which subroutine I can find the code for the boundary condition.
cucs77 is offline   Reply With Quote

Old   April 5, 2024, 12:46
Default
  #6
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 599
Rep Power: 17
bigfootedrockmidget is on a distinguished road
You can take for instance an existing boundary condition, like marker_symmetry, with the keyword SYMMETRY_PLANE, and have a look with vscode at the locations where they are called and what is being done with them. The implementation of boundary conditions is pretty centralized. so adding a new conditions should be straight-forward. You could also take an existing one like marker_internal, which is a passive marker, and see if you can use it for your purposes. You can couple it with external codes using the python interface, there are examples in Testcases/py_wrapper.
bigfootedrockmidget is offline   Reply With Quote

Old   April 5, 2024, 13:18
Default
  #7
New Member
 
Valerio
Join Date: Apr 2024
Posts: 4
Rep Power: 2
cucs77 is on a distinguished road
Thank you very much.
cucs77 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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
interFoam wave propagation and explosion of Courant number and residuals ChiaraViola OpenFOAM Running, Solving & CFD 1 June 26, 2019 05:36
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 05:09
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49


All times are GMT -4. The time now is 15:19.