-
Notifications
You must be signed in to change notification settings - Fork 910
[WIP] Implementing variable density for unsteady incompressible flow #2641
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
base: develop
Are you sure you want to change the base?
Conversation
|
@Cristopher-Morales can you review this pr please? |
Removed commented-out code for setting density at local point.
Updated the comment for density retrieval to reflect changes for transient density handling.
Removed unnecessary blank lines in CIncEulerVariable.hpp
Removed unnecessary blank lines in CVariable.hpp
Removed unnecessary blank lines to improve code readability.
Hi @pcarruscag ! Yes, I can help reviewing this PR. Please let me know if you need something else from my side |
Removed commented-out code and updated density calculation.
|
@Cristopher-Morales I guess the changes to the preconditioner can be removed from this PR since we now have your implementation |
Removed unnecessary blank lines in SetPrimVar function.
Removed unnecessary blank lines in CVariable.cpp.
Removed debug print statement from SetPrimVar function.
|
|
||
| inline void Set_Density_time_n(unsigned long iPoint, su2double val) { | ||
| Density_time_n[iPoint] = val; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation must be added, similar to the function above SetDensity, Same for the two functions below Set_Density_unsteady and GetDensity_time_n
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Cristopher Morales <98025159+Cristopher-Morales@users.noreply.github.com>
Proposed Changes
Implements variable density treatment for unsteady incompressible flow simulations. Currently, SU2 uses constant density in transient simulations, which is inaccurate for combustion cases where density varies significantly due to heat release and species composition changes. This contribution enables proper density updates during time-stepping for flamelet-based combustion modeling. For now, only 1st order time marching is implemented
Related Work
Related to incompressible flow solver and flamelet combustion modeling. No specific issue linked yet.
PR Checklist
pre-commit run --allto format old commits.