-
Notifications
You must be signed in to change notification settings - Fork 846
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
[WIP] Implementation of DDES and SAS formulations for SST #2150
base: develop
Are you sure you want to change the base?
Changes from 6 commits
388f85a
41cb27e
a6be2cf
d1f4db6
35958b8
09e977f
8c8e89d
71ac9c4
5b5fc30
ef50283
91c742e
6c86a19
48a9f3d
ae33b05
6443070
caf0d41
a584526
0f3a832
710e1dc
e4f28d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1464,6 +1464,24 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) { | |
if (config->GetKind_HybridRANSLES() != NO_HYBRIDRANSLES) { | ||
AddVolumeOutput("DES_LENGTHSCALE", "DES_LengthScale", "DDES", "DES length scale value"); | ||
AddVolumeOutput("WALL_DISTANCE", "Wall_Distance", "DDES", "Wall distance value"); | ||
if ( config->GetKind_HybridRANSLES() == SST_DDES){ | ||
AddVolumeOutput("F_D", "f_d", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_RANS", "l_RANS", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_LES", "l_LES", "DDES", "DES length scale value"); | ||
AddVolumeOutput("R_D", "r_d", "DDES", "DES length scale value"); | ||
} else if ( config->GetKind_HybridRANSLES() == SST_IDDES){ | ||
AddVolumeOutput("F_D", "f_d", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_RANS", "l_RANS", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_LES", "l_LES", "DDES", "DES length scale value"); | ||
AddVolumeOutput("R_DT", "r_dt", "DDES", "DES length scale value"); | ||
AddVolumeOutput("R_DL", "r_dl", "DDES", "DES length scale value"); | ||
} else if ( config->GetKind_HybridRANSLES() == SST_SIDDES){ | ||
AddVolumeOutput("F_D", "f_d", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_RANS", "l_RANS", "DDES", "DES length scale value"); | ||
AddVolumeOutput("L_LES", "l_LES", "DDES", "DES length scale value"); | ||
AddVolumeOutput("R_DT", "r_dt", "DDES", "DES length scale value"); | ||
} | ||
AddVolumeOutput("LESIQ", "LESIQ", "DDES", "LESIQ index for SRS simulations"); | ||
} | ||
|
||
if (config->GetViscous()) { | ||
|
@@ -1563,6 +1581,27 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con | |
if (config->GetKind_HybridRANSLES() != NO_HYBRIDRANSLES) { | ||
SetVolumeOutputValue("DES_LENGTHSCALE", iPoint, Node_Flow->GetDES_LengthScale(iPoint)); | ||
SetVolumeOutputValue("WALL_DISTANCE", iPoint, Node_Geo->GetWall_Distance(iPoint)); | ||
if ( config->GetKind_HybridRANSLES() == SST_DDES){ | ||
SetVolumeOutputValue("F_D", iPoint, Node_Turb->Get_ftilda_d(iPoint)); | ||
SetVolumeOutputValue("L_RANS", iPoint, Node_Turb->Get_L_RANS(iPoint)); | ||
SetVolumeOutputValue("L_LES", iPoint, Node_Turb->Get_L_LES(iPoint)); | ||
SetVolumeOutputValue("R_D", iPoint, Node_Turb->Get_r_d(iPoint)); | ||
} else if ( config->GetKind_HybridRANSLES() == SST_IDDES){ | ||
SetVolumeOutputValue("F_D", iPoint, Node_Turb->Get_ftilda_d(iPoint)); | ||
SetVolumeOutputValue("L_RANS", iPoint, Node_Turb->Get_L_RANS(iPoint)); | ||
SetVolumeOutputValue("L_LES", iPoint, Node_Turb->Get_L_LES(iPoint)); | ||
SetVolumeOutputValue("R_DT", iPoint, Node_Turb->Get_r_dt(iPoint)); | ||
SetVolumeOutputValue("R_DL", iPoint, Node_Turb->Get_r_dl(iPoint)); | ||
} else if ( config->GetKind_HybridRANSLES() == SST_SIDDES){ | ||
SetVolumeOutputValue("F_D", iPoint, Node_Turb->Get_ftilda_d(iPoint)); | ||
SetVolumeOutputValue("L_RANS", iPoint, Node_Turb->Get_L_RANS(iPoint)); | ||
SetVolumeOutputValue("L_LES", iPoint, Node_Turb->Get_L_LES(iPoint)); | ||
SetVolumeOutputValue("R_DT", iPoint, Node_Turb->Get_r_dt(iPoint)); | ||
} | ||
Comment on lines
+1600
to
+1616
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cleanup the repetition here, most statement are shared across the 3 cases |
||
const su2double mut = Node_Flow->GetEddyViscosity(iPoint); | ||
const su2double mu = Node_Flow->GetLaminarViscosity(iPoint); | ||
const su2double LESIQ = 1.0/(1.0+0.05*pow((mut+mu)/mu, 0.53)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are the constant here also used somewhere else? It would be good to avoid repeating hard-coded constants There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are used just here |
||
SetVolumeOutputValue("LESIQ", iPoint, LESIQ); | ||
} | ||
|
||
switch (config->GetKind_Species_Model()) { | ||
|
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.
The description is slightly different right?
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.
Yes, I planned to modify the details on the final implementation. I'll do it now