-
Notifications
You must be signed in to change notification settings - Fork 868
[WIP] Inconsistencies and improvements to SST model #2329
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
Open
rois1995
wants to merge
75
commits into
develop
Choose a base branch
from
feature_SSTMod
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+795
−396
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
2a66c54
- Added TKE production limiter constant to config
rois1995 7582590
- Added Production and Destruction terms of SST to output
rois1995 edce8ee
- Added user-defined lower limits of TKE and W
rois1995 41c61ca
- Changed the Cross-Diffusion term in F1 computations
rois1995 7b11baa
- Removed obsolete changes to TKE prod limiter
rois1995 9482f51
- Modified the config output
rois1995 38a02d6
- Added lower limit changes for SST in config output
rois1995 c3e0d4b
- Added wall distance output for mesh adaptation
rois1995 0f7558b
- Added strain magnitude as output
rois1995 3be370d
- added production limiter flag to output
rois1995 125fd6d
- Changed the Cross-Diffusion term in the residual of Omega
rois1995 91cc3b8
- Added clipping of the cross-diffusion term in SST residual
rois1995 7b78756
- changed cross diffusion term clipping in Omega residual
rois1995 076d471
- Added CDkw and F1 as output
rois1995 2e73f77
- Fixed Supersonic inlet BC inclusion of TKE
rois1995 c662daf
- Corrected Riemann BC for TKE
rois1995 41e1c16
- Fixed more BCs
rois1995 e9dfc27
- Fixed bug with Cross diffusion in W residual
rois1995 9a6fc06
- changed default for cross diffusion
rois1995 251ae27
- Restored old computation of Cross-Diffusion terms in the source res…
rois1995 9c7c950
Added BCs for SST-SUST
rois1995 2042017
Merge branch 'develop' into feature_SSTMod
rois1995 9d82d51
- Removed duplicate SST options
rois1995 c10b006
- Removed not used config variables
rois1995 be98cdd
- fixed merge error
rois1995 fc30f5d
- Include full production and SSTm into the computation of the Stress…
rois1995 a957ec7
Updated the freestream values for the print out
rois1995 5546936
- Removed unused variables in turb_sources
rois1995 1b8ee5b
- Added F2 blending function as output
rois1995 6d3586f
- Restore previously removed variables
rois1995 f27a7cb
- clean up of variables for Reynolds Stress Tensor computation
rois1995 448a532
- Use full tke production term in Pw instead of only P_base
rois1995 e9fa4e7
- Fixed Errors in AD compiling
rois1995 c2462e8
- added tke to the numerics simd computations
rois1995 51112fe
- Fixed UQ problem
rois1995 576e8ee
- fix UQ implementation
rois1995 acc21ec
- Removed unused variables
rois1995 b5ca6ea
Merge branch 'develop' into feature_SSTMod
rois1995 c6376cd
- Started including tke when computing the speed of sound
rois1995 27175f8
Merge branch 'develop' into feature_SSTMod
rois1995 d54cd39
Merge branch 'feature_SSTMod' of https://github.com/su2code/SU2 into …
rois1995 c5aeb5a
- Start to include tke only when not m version of SST is used
rois1995 6441eb8
Merge branch 'tmp' into HEAD
rois1995 317f563
- Fixed tke integration in thermodynamic variables
rois1995 d6af702
- Code improvements
rois1995 8f97a16
- minor changes
rois1995 fd43746
Merge branch 'develop' into feature_SSTMod
rois1995 a8a603e
- update externals
rois1995 340faa4
- Fixed inlet BCs when new BCs are used
rois1995 f4cb207
Merge branch 'develop' into feature_SSTMod
rois1995 16cac0a
Merge branch 'develop' into feature_SSTMod
bigfooted c4f10fe
Update Common/include/CConfig.hpp
rois1995 6eb02da
Merge branch 'develop' into feature_SSTMod
bigfooted f0e280a
changes to MLPCpp
rois1995 3ca65bf
Merge branch 'develop' into feature_SSTMod
rois1995 32a6eea
- Fix output GetStrainMag bug
rois1995 89a559a
- Try fixing output bug again
rois1995 d4ee84b
same fix
rois1995 4162c72
go back to Jacobian modification but fix order of matrix multiplication
pcarruscag 8a1b3da
something else we dont need?
pcarruscag 0e1d5f9
update serial
bigfooted b2ae9e7
pressure forces
pcarruscag ac30740
Merge remote-tracking branch 'origin/symmetry_jacobian' into symmetry…
pcarruscag 5fc0979
some updates and codeql
pcarruscag f81e979
more updates
pcarruscag 5a40f57
- Added Shuzen and Hoffmann compressibility correction
rois1995 c370f41
Merge branch 'feature_SSTMod' of https://github.com/su2code/SU2 into …
rois1995 e9eb7ad
Merge remote-tracking branch 'origin/develop' into feature_SSTMod
rois1995 e8d4bf3
- changed output for debug variables
rois1995 4d2aba5
- Added term to jacobian of w
rois1995 e4ceb0e
- Add neighbor wall distance as debug output
rois1995 0d75465
- Remove Jacobian changes
rois1995 f159412
- Add grad vel as output
rois1995 939faa1
- add upper bound into BCs
rois1995 99ac333
Merge remote-tracking branch 'origin/symmetry_jacobian' into feature_…
rois1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,8 @@ class CCenteredBase : public Base { | |
const bool dynamicGrid; | ||
const su2double stretchParam = 0.3; | ||
|
||
using Base::turbVars; | ||
|
||
/*! | ||
* \brief Constructor, store some constants and forward args to base. | ||
*/ | ||
|
@@ -96,6 +98,8 @@ class CCenteredBase : public Base { | |
const bool implicit = (config.GetKind_TimeIntScheme() == EULER_IMPLICIT); | ||
const auto& solution = static_cast<const CEulerVariable&>(solution_); | ||
|
||
const bool tkeNeeded = config.GetKind_Turb_Model() == TURB_MODEL::SST; | ||
|
||
const auto iPoint = geometry.edges->GetNode(iEdge,0); | ||
const auto jPoint = geometry.edges->GetNode(iEdge,1); | ||
|
||
|
@@ -119,6 +123,13 @@ class CCenteredBase : public Base { | |
avgV.all(iVar) = 0.5 * (V.i.all(iVar) + V.j.all(iVar)); | ||
} | ||
|
||
if (tkeNeeded) { | ||
V.i.allTurb = gatherVariables<1>(iPoint, turbVars->GetSolution()); | ||
V.j.allTurb = gatherVariables<1>(jPoint, turbVars->GetSolution()); | ||
|
||
avgV.allTurb(0) = 0.5*(V.i.allTurb(0)+V.j.allTurb(0)); | ||
} | ||
|
||
/*--- Compute conservative variables. ---*/ | ||
|
||
CPair<CCompressibleConservatives<nDim> > U; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,8 @@ FORCEINLINE CPair<ReconVarType> reconstructPrimitives(Int iEdge, Int iPoint, Int | |
bool muscl, LIMITER limiterType, | ||
const CPair<PrimVarType>& V1st, | ||
const VectorDbl<nDim>& vector_ij, | ||
const VariableType& solution) { | ||
const VariableType& solution, | ||
const bool tkeNeeded) { | ||
static_assert(ReconVarType::nVar <= PrimVarType::nVar,""); | ||
|
||
const auto& gradients = solution.GetGradient_Reconstruction(); | ||
|
@@ -125,6 +126,11 @@ FORCEINLINE CPair<ReconVarType> reconstructPrimitives(Int iEdge, Int iPoint, Int | |
V.i.all(iVar) = V1st.i.all(iVar); | ||
V.j.all(iVar) = V1st.j.all(iVar); | ||
} | ||
// Only first order for turbulence | ||
if (tkeNeeded) { | ||
V.i.allTurb(0) = V1st.i.allTurb(0); | ||
V.j.allTurb(0) = V1st.j.allTurb(0); | ||
} | ||
|
||
if (muscl) { | ||
/*--- Recompute density and enthalpy instead of reconstructing. ---*/ | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Commented-out code Note
Copilot Autofix
AI about 2 months ago
The best way to fix the problem is to remove the commented-out code entirely. This will make the code cleaner and easier to read, and it will eliminate any potential confusion about the commented-out sections. If the code is needed for future reference, it should be documented separately or added to version control comments.