Add python interface for setting AoA and AoS by kursatyurt · Pull Request #2045 · su2code/SU2
Thanks @patelha57 but that PR has 10k lines so I doubt it will be ready soon, the right way to introduce features is via small PRs such as this one.
@patelha57, I want to express my gratitude for your contribution. Your efforts are truly appreciated. However, I wanted to share some of my observations regarding the implementation, with all due respect.
In my humble opinion (IMHO), there seem to be a few flaws in the current implementation, particularly when it comes to setting the Mach number and Reynolds number. It appears that SU2 offers different fluid models, and in order to access the speed of sound for the far field, the following line of code may be more appropriate:
Mach2Vel_FreeStream = auxFluidModel->GetSoundSpeed();rather than using:
su2double SoundSpeed = sqrt(Gamma * Gas_Constant * Temperature);
Perhaps these concerns can be addressed in the review of your PR. Similarly, I noticed that changing the Reynolds number doesn't seem to have any effect. It should modify certain variables, which are likely addressed in this section of the code: link to the relevant code. Additionally, it would be helpful to include a check to warn the user if the initialization is based on thermodynamic quantities.
Once again, I want to express my deep appreciation for your contributions.
@patelha57, I want to express my gratitude for your contribution. Your efforts are truly appreciated. However, I wanted to share some of my observations regarding the implementation, with all due respect.
In my humble opinion (IMHO), there seem to be a few flaws in the current implementation, particularly when it comes to setting the Mach number and Reynolds number. It appears that SU2 offers different fluid models, and in order to access the speed of sound for the far field, the following line of code may be more appropriate:
Mach2Vel_FreeStream = auxFluidModel->GetSoundSpeed();rather than using:
su2double SoundSpeed = sqrt(Gamma * Gas_Constant * Temperature);Perhaps these concerns can be addressed in the review of your PR. Similarly, I noticed that changing the Reynolds number doesn't seem to have any effect. It should modify certain variables, which are likely addressed in this section of the code: link to the relevant code. Additionally, it would be helpful to include a check to warn the user if the initialization is based on thermodynamic quantities.
Once again, I want to express my deep appreciation for your contributions.
Hey @kursatyurt, thanks for the input! I absolutely agree about the speed of sound change that you suggested, so I will address it in my PR. I will also double check about the Reynolds number update. Haven't used that function before so not sure what the issue is.
It would be great to get additional input on that PR so please review if you get the chance.
It would be great to get additional input on that PR so please review if you get the chance.
@patelha57 I will take a look if I can find time, I have no experience with Adjoint methods probably I cannot provide any useful input there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters