@@ -478,6 +478,13 @@ void CFlowIncOutput::SetVolumeOutputFields(CConfig *config){
478478 }
479479 AddVolumeOutput (" Q_CRITERION" , " Q_Criterion" , " VORTEX_IDENTIFICATION" , " Value of the Q-Criterion" );
480480 }
481+
482+ // Mesh quality metrics, computed in CPhysicalGeometry::ComputeMeshQualityStatistics.
483+ // WRT_MESH_QUALITY= YES has to be set, otherwise the memory holding the data is freed.
484+ AddVolumeOutput (" ORTHOGONALITY" , " Orthogonality" , " MESH_QUALITY" , " Orthogonality, additionally set \" WRT_MESH_QUALITY= YES\" " );
485+ AddVolumeOutput (" ASPECT_RATIO" , " Aspect_Ratio" , " MESH_QUALITY" , " Aspect ratio, additionally set \" WRT_MESH_QUALITY= YES\" " );
486+ AddVolumeOutput (" VOLUME_RATIO" , " Volume_Ratio" , " MESH_QUALITY" , " Volume Ratio, additionally set \" WRT_MESH_QUALITY= YES\" " );
487+
481488}
482489
483490void CFlowIncOutput::LoadVolumeData (CConfig *config, CGeometry *geometry, CSolver **solver, unsigned long iPoint){
@@ -641,6 +648,14 @@ void CFlowIncOutput::LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolv
641648 }
642649 SetVolumeOutputValue (" Y_PLUS" , iPoint, solver[FLOW_SOL]->GetYPlus (iMarker, iVertex));
643650 }
651+
652+ // Mesh quality metrics
653+ if (config->GetWrt_MeshQuality ()) {
654+ SetVolumeOutputValue (" ORTHOGONALITY" , iPoint, geometry->Orthogonality [iPoint]);
655+ SetVolumeOutputValue (" ASPECT_RATIO" , iPoint, geometry->Aspect_Ratio [iPoint]);
656+ SetVolumeOutputValue (" VOLUME_RATIO" , iPoint, geometry->Volume_Ratio [iPoint]);
657+ }
658+
644659}
645660
646661bool CFlowIncOutput::SetInit_Residuals (CConfig *config){
0 commit comments