-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supersonic inlet profile #2327
Supersonic inlet profile #2327
Conversation
flat plate test.zip |
Thanks, I missed that part and noticed a couple other places, the case doesn't diverge anymore. |
Thanks Pedro, the case indeed doesn't diverge, but a Segmentation Fault occurs, was the version 7.5.1 I am using? Any ideas? |
This branch is based on the "develop" branch. |
@pcarruscag Hi Pedro, just still want to make sure one thing, does the function the function 'LoadInletProfile' in CSolver.cpp needed to be changed? Since you didn't commit it. From the Valgrind output, a segment error occurred while reading the inletUNI.dat file. This is usually because the memory address attempted to be accessed is 0x0, which means there is a null pointer reference. The segment error occurs in the CConfig::GetInlet_Ptotal function and is due to accessing a null pointer. Maybe you can give me some suggestions and there's no need to change the version at this moment. Thanks! |
@pcarruscag Hi Pedro, sorry to bother you again, I read the "develop" branch and noticed that you made some changes a month ago, such as redefined InletPtotal instead of the previous Inlet_Ptotal, I guess is to disambiguate some definition? And the error I got probably related with it. In this case, I think I should better also use the "develop" version. Is the building process same as here? https://su2code.github.io/docs_v7/Build-SU2-Linux-MacOS/#configuration-and-compilation. |
Hi @ShukaiWang1110,
You see in the section Files Changed the changes compared to the current develop branch. This shows that this branch is up to date with current develop, only the new changes for the inlet profile show up. I did not go through the code yet, but when you run it without having an inlet.dat file present, it should create one for you filled with a uniform profile. When you then use this file unaltered, does that work? |
Hi, I got how the branches work. In this case, I first downloaded the 'develop' branch to make sure everything is consitent with Pedro, and then I downloaded and replaced the 6 new committed files that related to the supersonic inlet profile development. The code should be totally the same at this point. And I did a flat plate test, which actually I need to fill a uniform profile, since the code would only generated an empty one. However, a segment error still occurs, and I attached the error file with Valgrind output. After eliminating the difference of different branches(versions), I guess you may have the same error? The test files are on the above conversations so that you may also take a try. Thanks for the help! |
From the error, I think The SU2_CFD encountered an invalid memory read operation during an attempt to read the inletUNI.dat file, causing the program to crash with a segment error (SIGSEGV). The specific error occurs in the CConfig::GetInletPtotal function, which seems attempts to access memory that has not been properly initialized or allocated. Any ideas? @pcarruscag @bigfooted |
Hi, good news! I made it run by changing the' if (config->GetMarker_All_KindBC(iMarker) != KIND_MARKER) continue;' to ' if (config->GetMarker_All_KindBC(iMarker) != KIND_MARKER || config->GetMarker_All_KindBC(iMarker) == SUPERSONIC_INLET) continue;' which is line 3590 in CSolver.cpp. See if this is the right answer. @pcarruscag @bigfooted |
Always harder than it seems initially, the example profile file will not be 100% in case there are mixed inlet types, but this should be good enough for now. |
Yes, it's definitely a satisfying development for now. Thanks for everything and I will attend the coming conference with the new data assimilation results. |
…nto supersonic_profile
Proposed Changes
PR Checklist
pre-commit run --all
to format old commits.