@@ -1484,6 +1484,8 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) {
14841484 AddVolumeOutput (" DES_LENGTHSCALE" , " DES_LengthScale" , " DDES" , " DES length scale value" );
14851485 AddVolumeOutput (" WALL_DISTANCE" , " Wall_Distance" , " DDES" , " Wall distance value" );
14861486 AddVolumeOutput (" LESIQ" , " LESIQ" , " DDES" , " LESIQ index for SRS simulations" );
1487+ if (config->GetKind_Turb_Model () == TURB_MODEL::SST)
1488+ AddVolumeOutput (" SRS_GRID_SIZE" , " Srs_grid_size" , " DDES" , " desired grid size for Scale Resolving Simulations" );
14871489 }
14881490
14891491 if (config->GetViscous ()) {
@@ -1498,27 +1500,24 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) {
14981500 if (config->GetKind_HybridRANSLES () == NO_HYBRIDRANSLES) {
14991501 AddVolumeOutput (" WALL_DISTANCE" , " Wall_Distance" , " DEBUG" , " Wall distance value" );
15001502 }
1501- AddVolumeOutput (" GRAD_VEL_XX" , " Grad_Vel_xx" , " DEBUG " , " Strain magnitude value " );
1502- AddVolumeOutput (" GRAD_VEL_XY" , " Grad_Vel_xy" , " DEBUG " , " Strain magnitude value " );
1503- AddVolumeOutput (" GRAD_VEL_YX" , " Grad_Vel_yx" , " DEBUG " , " Strain magnitude value " );
1504- AddVolumeOutput (" GRAD_VEL_YY" , " Grad_Vel_yy" , " DEBUG " , " Strain magnitude value " );
1503+ AddVolumeOutput (" GRAD_VEL_XX" , " Grad_Vel_xx" , " VELOCITY_GRADIENT " , " X-Gradient of U " );
1504+ AddVolumeOutput (" GRAD_VEL_XY" , " Grad_Vel_xy" , " VELOCITY_GRADIENT " , " Y-Gradient of U " );
1505+ AddVolumeOutput (" GRAD_VEL_YX" , " Grad_Vel_yx" , " VELOCITY_GRADIENT " , " X-Gradient of U " );
1506+ AddVolumeOutput (" GRAD_VEL_YY" , " Grad_Vel_yy" , " VELOCITY_GRADIENT " , " Y-Gradient of V " );
15051507 if (nDim == 3 ) {
1506- AddVolumeOutput (" GRAD_VEL_XZ" , " Grad_Vel_xz" , " DEBUG " , " Strain magnitude value " );
1507- AddVolumeOutput (" GRAD_VEL_YZ" , " Grad_Vel_yz" , " DEBUG " , " Strain magnitude value " );
1508- AddVolumeOutput (" GRAD_VEL_ZX" , " Grad_Vel_zx" , " DEBUG " , " Strain magnitude value " );
1509- AddVolumeOutput (" GRAD_VEL_ZY" , " Grad_Vel_zy" , " DEBUG " , " Strain magnitude value " );
1510- AddVolumeOutput (" GRAD_VEL_ZZ" , " Grad_Vel_zz" , " DEBUG " , " Strain magnitude value " );
1508+ AddVolumeOutput (" GRAD_VEL_XZ" , " Grad_Vel_xz" , " VELOCITY_GRADIENT " , " Z-Gradient of U " );
1509+ AddVolumeOutput (" GRAD_VEL_YZ" , " Grad_Vel_yz" , " VELOCITY_GRADIENT " , " Z-Gradient of V " );
1510+ AddVolumeOutput (" GRAD_VEL_ZX" , " Grad_Vel_zx" , " VELOCITY_GRADIENT " , " X-Gradient of W " );
1511+ AddVolumeOutput (" GRAD_VEL_ZY" , " Grad_Vel_zy" , " VELOCITY_GRADIENT " , " Y-Gradient of W " );
1512+ AddVolumeOutput (" GRAD_VEL_ZZ" , " Grad_Vel_zz" , " VELOCITY_GRADIENT " , " Z-Gradient of W " );
15111513 }
15121514
15131515 if (config->GetKind_Turb_Model () == TURB_MODEL::SST){
1514- AddVolumeOutput (" CDkw" , " CDkw" , " DEBUG " , " Cross-Diffusion term" );
1515- AddVolumeOutput (" F1" , " F1" , " DEBUG " , " F1 blending function" );
1516- AddVolumeOutput (" F2" , " F2" , " DEBUG " , " F2 blending function" );
1516+ AddVolumeOutput (" CDkw" , " CDkw" , " SST_QUANTITIES " , " Cross-Diffusion term" );
1517+ AddVolumeOutput (" F1" , " F1" , " SST_QUANTITIES " , " F1 blending function" );
1518+ AddVolumeOutput (" F2" , " F2" , " SST_QUANTITIES " , " F2 blending function" );
15171519 }
15181520
1519- if (config->GetKind_Turb_Model () != TURB_MODEL::NONE)
1520- AddVolumeOutput (" SRS_GRID_SIZE" , " Srs_grid_size" , " DDES" , " desired grid size for Scale Resolving Simulations" );
1521-
15221521 }
15231522
15241523 // Timestep info
@@ -1554,6 +1553,7 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15541553 }
15551554 SetVolumeOutputValue (" Q_CRITERION" , iPoint, GetQCriterion (VelGrad));
15561555 SetVolumeOutputValue (" WALL_DISTANCE" , iPoint, Node_Geo->GetWall_Distance (iPoint));
1556+
15571557 SetVolumeOutputValue (" GRAD_VEL_XX" , iPoint, VelGrad (0 ,0 ));
15581558 SetVolumeOutputValue (" GRAD_VEL_XY" , iPoint, VelGrad (0 ,1 ));
15591559 SetVolumeOutputValue (" GRAD_VEL_YX" , iPoint, VelGrad (1 ,0 ));
@@ -1572,9 +1572,6 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15721572 SetVolumeOutputValue (" F2" , iPoint, Node_Turb->GetF2blending (iPoint));
15731573 }
15741574
1575- if (config->GetKind_Turb_Model () != TURB_MODEL::NONE)
1576- SetVolumeOutputValue (" SRS_GRID_SIZE" , iPoint, Node_Turb->GetSRSGridSize (iPoint));
1577-
15781575 }
15791576
15801577 const bool limiter = (config->GetKind_SlopeLimit_Turb () != LIMITER::NONE);
@@ -1634,6 +1631,13 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
16341631 const su2double mu = Node_Flow->GetLaminarViscosity (iPoint);
16351632 const su2double LESIQ = 1.0 /(1.0 +0.05 *pow ((mut+mu)/mu, 0.53 ));
16361633 SetVolumeOutputValue (" LESIQ" , iPoint, LESIQ);
1634+ if (config->GetKind_Turb_Model () == TURB_MODEL::SST) {
1635+ const su2double betaStar = 0.09 ; // constants[6]
1636+ const su2double RANSLength = sqrt (Node_Flow->GetSolution (iPoint, 0 )) / max (1e-20 , (betaStar * Node_Flow->GetSolution (iPoint, 1 )));
1637+ const su2double RatioL = 0.1 ; // TODO:: it should be less or equal than 0.2 - 0.1. Should be taken as input from config?
1638+ const su2double SRSGridSize = RANSLength * RatioL;
1639+ SetVolumeOutputValue (" SRS_GRID_SIZE" , iPoint, SRSGridSize);
1640+ }
16371641 }
16381642
16391643 switch (config->GetKind_Species_Model ()) {
0 commit comments