|
4 | 4 | * \author W. Maier, R. Sanchez |
5 | 5 | * \version 7.2.1 "Blackbird" |
6 | 6 | * |
7 | | - * The current SU2 release has been coordinated by the |
8 | | - * SU2 International Developers Society <www.su2devsociety.org> |
9 | | - * with selected contributions from the open-source community. |
| 7 | + * SU2 Project Website: https://su2code.github.io |
10 | 8 | * |
11 | | - * The main research teams contributing to the current release are: |
12 | | - * - Prof. Juan J. Alonso's group at Stanford University. |
13 | | - * - Prof. Piero Colonna's group at Delft University of Technology. |
14 | | - * - Prof. Nicolas R. Gauger's group at Kaiserslautern University of Technology. |
15 | | - * - Prof. Alberto Guardone's group at Polytechnic University of Milan. |
16 | | - * - Prof. Rafael Palacios' group at Imperial College London. |
17 | | - * - Prof. Vincent Terrapon's group at the University of Liege. |
18 | | - * - Prof. Edwin van der Weide's group at the University of Twente. |
19 | | - * - Lab. of New Concepts in Aeronautics at Tech. Institute of Aeronautics. |
| 9 | + * The SU2 Project is maintained by the SU2 Foundation |
| 10 | + * (http://su2foundation.org) |
20 | 11 | * |
21 | | - * Copyright 2012-2018, Francisco D. Palacios, Thomas D. Economon, |
22 | | - * Tim Albring, and the SU2 contributors. |
| 12 | + * Copyright 2012-2021, SU2 Contributors (cf. AUTHORS.md) |
23 | 13 | * |
24 | 14 | * SU2 is free software; you can redistribute it and/or |
25 | 15 | * modify it under the terms of the GNU Lesser General Public |
|
40 | 30 | #include "../../../Common/include/geometry/CGeometry.hpp" |
41 | 31 | #include "../../include/solvers/CSolver.hpp" |
42 | 32 |
|
43 | | -CNEMOCompOutput::CNEMOCompOutput(CConfig *config, unsigned short nDim) : CFlowOutput(config, nDim, false) { |
| 33 | +CNEMOCompOutput::CNEMOCompOutput(const CConfig *config, unsigned short nDim) : CFlowOutput(config, nDim, false) { |
44 | 34 |
|
45 | | - turb_model = config->GetKind_Turb_Model(); |
| 35 | + turb_model = config->GetKind_Turb_Model(); |
46 | 36 | nSpecies = config->GetnSpecies(); |
47 | 37 |
|
48 | 38 | /*--- Set the default history fields if nothing is set in the config file ---*/ |
@@ -118,6 +108,7 @@ CNEMOCompOutput::CNEMOCompOutput(CConfig *config, unsigned short nDim) : CFlowOu |
118 | 108 | void CNEMOCompOutput::SetHistoryOutputFields(CConfig *config){ |
119 | 109 |
|
120 | 110 | /// BEGIN_GROUP: RMS_RES, DESCRIPTION: The root-mean-square residuals of the SOLUTION variables. |
| 111 | + /// DESCRIPTION: Root-mean square residual of the species densities. |
121 | 112 | for(iSpecies = 0; iSpecies < nSpecies; iSpecies++) |
122 | 113 | AddHistoryOutput("RMS_DENSITY_" + std::to_string(iSpecies), "rms[Rho_" + std::to_string(iSpecies) + "]", ScreenOutputFormat::FIXED, "RMS_RES", "Root-mean square residual of the species density " + std::to_string(iSpecies) + ".", HistoryFieldType::RESIDUAL); |
123 | 114 | /// DESCRIPTION: Root-mean square residual of the momentum x-component. |
@@ -279,7 +270,7 @@ void CNEMOCompOutput::SetVolumeOutputFields(CConfig *config){ |
279 | 270 | AddVolumeOutput("MACH", "Mach", "PRIMITIVE", "Mach number"); |
280 | 271 | AddVolumeOutput("PRESSURE_COEFF", "Pressure_Coefficient", "PRIMITIVE", "Pressure coefficient"); |
281 | 272 |
|
282 | | - if (config->GetKind_Solver() == MAIN_SOLVER::NEMO_NAVIER_STOKES){ |
| 273 | + if (config->GetViscous()) { |
283 | 274 | AddVolumeOutput("LAMINAR_VISCOSITY", "Laminar_Viscosity", "PRIMITIVE", "Laminar viscosity"); |
284 | 275 |
|
285 | 276 | AddVolumeOutput("SKIN_FRICTION-X", "Skin_Friction_Coefficient_x", "PRIMITIVE", "x-component of the skin friction vector"); |
@@ -367,7 +358,7 @@ void CNEMOCompOutput::LoadVolumeData(CConfig *config, CGeometry *geometry, CSolv |
367 | 358 | su2double factor = 1.0/(0.5*solver[FLOW_SOL]->GetDensity_Inf()*VelMag); |
368 | 359 | SetVolumeOutputValue("PRESSURE_COEFF", iPoint, (Node_Flow->GetPressure(iPoint) - solver[FLOW_SOL]->GetPressure_Inf())*factor); |
369 | 360 |
|
370 | | - if (config->GetKind_Solver() == MAIN_SOLVER::NEMO_NAVIER_STOKES){ |
| 361 | + if (config->GetViscous()){ |
371 | 362 | SetVolumeOutputValue("LAMINAR_VISCOSITY", iPoint, Node_Flow->GetLaminarViscosity(iPoint)); |
372 | 363 | } |
373 | 364 |
|
|
0 commit comments