@@ -1497,6 +1497,17 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) {
14971497 AddVolumeOutput (" Q_CRITERION" , " Q_Criterion" , " VORTEX_IDENTIFICATION" , " Value of the Q-Criterion" );
14981498 AddVolumeOutput (" WALL_DISTANCE" , " Wall_Distance" , " MISC" , " Wall distance value" );
14991499 AddVolumeOutput (" STRAIN_MAG" , " Strain_Magnitude" , " MISC" , " Strain magnitude value" );
1500+ AddVolumeOutput (" GRAD_VEL_XX" , " Grad_Vel_xx" , " DEBUG" , " Strain magnitude value" );
1501+ AddVolumeOutput (" GRAD_VEL_XY" , " Grad_Vel_xy" , " DEBUG" , " Strain magnitude value" );
1502+ AddVolumeOutput (" GRAD_VEL_YX" , " Grad_Vel_yx" , " DEBUG" , " Strain magnitude value" );
1503+ AddVolumeOutput (" GRAD_VEL_YY" , " Grad_Vel_yy" , " DEBUG" , " Strain magnitude value" );
1504+ if (nDim == 3 ) {
1505+ AddVolumeOutput (" GRAD_VEL_XZ" , " Grad_Vel_xz" , " DEBUG" , " Strain magnitude value" );
1506+ AddVolumeOutput (" GRAD_VEL_YZ" , " Grad_Vel_yz" , " DEBUG" , " Strain magnitude value" );
1507+ AddVolumeOutput (" GRAD_VEL_ZX" , " Grad_Vel_zx" , " DEBUG" , " Strain magnitude value" );
1508+ AddVolumeOutput (" GRAD_VEL_ZY" , " Grad_Vel_zy" , " DEBUG" , " Strain magnitude value" );
1509+ AddVolumeOutput (" GRAD_VEL_ZZ" , " Grad_Vel_zz" , " DEBUG" , " Strain magnitude value" );
1510+ }
15001511 }
15011512
15021513 // Timestep info
@@ -1522,16 +1533,28 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15221533 SetVolumeOutputValue (" CFL" , iPoint, Node_Flow->GetLocalCFL (iPoint));
15231534
15241535 if (config->GetViscous ()) {
1536+ const auto VelGrad = Node_Flow->GetVelocityGradient (iPoint);
15251537 if (nDim == 3 ){
15261538 SetVolumeOutputValue (" VORTICITY_X" , iPoint, Node_Flow->GetVorticity (iPoint)[0 ]);
15271539 SetVolumeOutputValue (" VORTICITY_Y" , iPoint, Node_Flow->GetVorticity (iPoint)[1 ]);
15281540 SetVolumeOutputValue (" VORTICITY_Z" , iPoint, Node_Flow->GetVorticity (iPoint)[2 ]);
15291541 } else {
15301542 SetVolumeOutputValue (" VORTICITY" , iPoint, Node_Flow->GetVorticity (iPoint)[2 ]);
15311543 }
1532- SetVolumeOutputValue (" Q_CRITERION" , iPoint, GetQCriterion (Node_Flow-> GetVelocityGradient (iPoint) ));
1544+ SetVolumeOutputValue (" Q_CRITERION" , iPoint, GetQCriterion (VelGrad ));
15331545 SetVolumeOutputValue (" WALL_DISTANCE" , iPoint, Node_Geo->GetWall_Distance (iPoint));
15341546 SetVolumeOutputValue (" STRAIN_MAG" , iPoint, Node_Flow->GetStrainMag (iPoint));
1547+ SetVolumeOutputValue (" GRAD_VEL_XX" , iPoint, VelGrad (0 ,0 ));
1548+ SetVolumeOutputValue (" GRAD_VEL_XY" , iPoint, VelGrad (0 ,1 ));
1549+ SetVolumeOutputValue (" GRAD_VEL_YX" , iPoint, VelGrad (1 ,0 ));
1550+ SetVolumeOutputValue (" GRAD_VEL_YY" , iPoint, VelGrad (1 ,1 ));
1551+ if (nDim == 3 ) {
1552+ SetVolumeOutputValue (" GRAD_VEL_XZ" , iPoint, VelGrad (0 ,2 ));
1553+ SetVolumeOutputValue (" GRAD_VEL_YZ" , iPoint, VelGrad (1 ,2 ));
1554+ SetVolumeOutputValue (" GRAD_VEL_ZX" , iPoint, VelGrad (2 ,0 ));
1555+ SetVolumeOutputValue (" GRAD_VEL_ZY" , iPoint, VelGrad (2 ,1 ));
1556+ SetVolumeOutputValue (" GRAD_VEL_ZZ" , iPoint, VelGrad (2 ,2 ));
1557+ }
15351558 }
15361559
15371560 const bool limiter = (config->GetKind_SlopeLimit_Turb () != LIMITER::NONE);
0 commit comments