@@ -681,25 +681,55 @@ void CFlowOutput::LoadVolumeData_TurbSolution(const CConfig* config, const CSolv
681681 }
682682}
683683
684- void CFlowOutput::SetVolumeOutputFields_Turb (const CConfig* config) {
684+ void CFlowOutput::SetVolumeOutputFields_TurbResidual (const CConfig* config) {
685685 switch (config->GetKind_Turb_Model ()){
686686 case TURB_MODEL::SA: case TURB_MODEL::SA_NEG: case TURB_MODEL::SA_E: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP:
687687 AddVolumeOutput (" RES_NU_TILDE" , " Residual_Nu_Tilde" , " RESIDUAL" , " Residual of the Spalart-Allmaras variable" );
688- if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
689- AddVolumeOutput (" LIMITER_NU_TILDE" , " Limiter_Nu_Tilde" , " LIMITER" , " Limiter value of the Spalart-Allmaras variable" );
690- }
691688 break ;
689+
692690 case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
693691 AddVolumeOutput (" RES_TKE" , " Residual_TKE" , " RESIDUAL" , " Residual of turbulent kinetic energy" );
694692 AddVolumeOutput (" RES_DISSIPATION" , " Residual_Omega" , " RESIDUAL" , " Residual of the rate of dissipation" );
695- if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
696- AddVolumeOutput (" LIMITER_TKE" , " Limiter_TKE" , " LIMITER" , " Limiter value of turb. kinetic energy" );
697- AddVolumeOutput (" LIMITER_DISSIPATION" , " Limiter_Omega" , " LIMITER" , " Limiter value of dissipation rate" );
698- }
699693 break ;
694+
700695 case TURB_MODEL::NONE:
701696 break ;
702697 }
698+ }
699+
700+ void CFlowOutput::LoadVolumeData_TurbResidual (const CConfig* config, const CSolver* const * solver, const unsigned long iPoint) {
701+ const auto turb_solver = solver[TURB_SOL];
702+
703+ switch (config->GetKind_Turb_Model ()){
704+ case TURB_MODEL::SA: case TURB_MODEL::SA_NEG: case TURB_MODEL::SA_E: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP:
705+ SetVolumeOutputValue (" RES_NU_TILDE" , iPoint, turb_solver->LinSysRes (iPoint, 0 ));
706+ break ;
707+
708+ case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
709+ SetVolumeOutputValue (" RES_TKE" , iPoint, turb_solver->LinSysRes (iPoint, 0 ));
710+ SetVolumeOutputValue (" RES_DISSIPATION" , iPoint, turb_solver->LinSysRes (iPoint, 1 ));
711+ break ;
712+
713+ case TURB_MODEL::NONE: break ;
714+ }
715+ }
716+
717+ void CFlowOutput::SetVolumeOutputFields_TurbLimiter (const CConfig* config) {
718+ if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
719+ switch (config->GetKind_Turb_Model ()){
720+ case TURB_MODEL::SA: case TURB_MODEL::SA_NEG: case TURB_MODEL::SA_E: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP:
721+ AddVolumeOutput (" LIMITER_NU_TILDE" , " Limiter_Nu_Tilde" , " LIMITER" , " Limiter value of the Spalart-Allmaras variable" );
722+ break ;
723+
724+ case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
725+ AddVolumeOutput (" LIMITER_TKE" , " Limiter_TKE" , " LIMITER" , " Limiter value of turb. kinetic energy" );
726+ AddVolumeOutput (" LIMITER_DISSIPATION" , " Limiter_Omega" , " LIMITER" , " Limiter value of dissipation rate" );
727+ break ;
728+
729+ case TURB_MODEL::NONE:
730+ break ;
731+ }
732+ }
703733
704734 if (config->GetKind_Solver () == RANS || config->GetKind_Solver () == INC_RANS) {
705735 AddVolumeOutput (" EDDY_VISCOSITY" , " Eddy_Viscosity" , " PRIMITIVE" , " Turbulent eddy viscosity" );
@@ -716,29 +746,25 @@ void CFlowOutput::SetVolumeOutputFields_Turb(const CConfig* config) {
716746 }
717747}
718748
719- void CFlowOutput::LoadVolumeData_Turb (const CConfig* config, const CSolver* const * solver, const CGeometry* geometry, const unsigned long iPoint) {
749+ void CFlowOutput::LoadVolumeData_TurbLimiter (const CConfig* config, const CSolver* const * solver, const CGeometry* geometry, const unsigned long iPoint) {
720750 const auto Node_Flow = solver[FLOW_SOL]->GetNodes ();
721751 const auto Node_Turb = (config->GetKind_Turb_Model () != TURB_MODEL::NONE) ? solver[TURB_SOL]->GetNodes () : nullptr ;
722752 const auto Node_Geo = geometry->nodes ;
723753
724- switch (config->GetKind_Turb_Model ()){
725- case TURB_MODEL::SA: case TURB_MODEL::SA_NEG: case TURB_MODEL::SA_E: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP:
726- SetVolumeOutputValue (" RES_NU_TILDE" , iPoint, solver[TURB_SOL]->LinSysRes (iPoint, 0 ));
727- if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
728- SetVolumeOutputValue (" LIMITER_NU_TILDE" , iPoint, Node_Turb->GetLimiter (iPoint, 0 ));
729- }
730- break ;
754+ if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
755+ switch (config->GetKind_Turb_Model ()){
756+ case TURB_MODEL::SA: case TURB_MODEL::SA_NEG: case TURB_MODEL::SA_E: case TURB_MODEL::SA_COMP: case TURB_MODEL::SA_E_COMP:
757+ SetVolumeOutputValue (" LIMITER_NU_TILDE" , iPoint, Node_Turb->GetLimiter (iPoint, 0 ));
758+ break ;
731759
732- case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
733- SetVolumeOutputValue (" RES_TKE" , iPoint, solver[TURB_SOL]->LinSysRes (iPoint, 0 ));
734- SetVolumeOutputValue (" RES_DISSIPATION" , iPoint, solver[TURB_SOL]->LinSysRes (iPoint, 1 ));
735- if (config->GetKind_SlopeLimit_Turb () != NO_LIMITER) {
736- SetVolumeOutputValue (" LIMITER_TKE" , iPoint, Node_Turb->GetLimiter (iPoint, 0 ));
737- SetVolumeOutputValue (" LIMITER_DISSIPATION" , iPoint, Node_Turb->GetLimiter (iPoint, 1 ));
738- }
739- break ;
760+ case TURB_MODEL::SST: case TURB_MODEL::SST_SUST:
761+ SetVolumeOutputValue (" LIMITER_TKE" , iPoint, Node_Turb->GetLimiter (iPoint, 0 ));
762+ SetVolumeOutputValue (" LIMITER_DISSIPATION" , iPoint, Node_Turb->GetLimiter (iPoint, 1 ));
763+ break ;
740764
741- case TURB_MODEL::NONE: break ;
765+ case TURB_MODEL::NONE:
766+ break ;
767+ }
742768 }
743769
744770 if (config->GetKind_Solver () == RANS || config->GetKind_Solver () == INC_RANS) {
0 commit comments