Skip to content

Commit 665eda0

Browse files
committed
clean up and regression update
1 parent 2070c41 commit 665eda0

4 files changed

Lines changed: 39 additions & 13 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,31 +1657,31 @@ class CConfig {
16571657
su2double GetHeat_Flux_Ref(void) const { return Heat_Flux_Ref; }
16581658

16591659
/*!
1660-
* \brief Get the value of the frestream temperature.
1660+
* \brief Get the value of the freestream temperature.
16611661
* \return Freestream temperature.
16621662
*/
16631663
su2double GetTemperature_FreeStream(void) const { return Temperature_FreeStream; }
16641664
/*!
1665-
* \brief Get the value of the frestream vibrational-electronic temperature.
1666-
* \return Freestream temperature.
1665+
* \brief Get the value of the freestream vibrational-electronic temperature.
1666+
* \return Freestream vibe-el temperature.
16671667
*/
16681668
su2double GetTemperature_ve_FreeStream(void) const { return Temperature_ve_FreeStream; }
16691669

16701670
/*!
1671-
* \brief Get the value of the frestream temperature.
1672-
* \return Freestream temperature.
1671+
* \brief Get the value of the freestream energy.
1672+
* \return Freestream energy.
16731673
*/
16741674
su2double GetEnergy_FreeStream(void) const { return Energy_FreeStream; }
16751675

16761676
/*!
1677-
* \brief Get the value of the frestream temperature.
1678-
* \return Freestream temperature.
1677+
* \brief Get the value of the freestream viscosity.
1678+
* \return Freestream viscosity.
16791679
*/
16801680
su2double GetViscosity_FreeStream(void) const { return Viscosity_FreeStream; }
16811681

16821682
/*!
1683-
* \brief Get the value of the frestream temperature.
1684-
* \return Freestream temperature.
1683+
* \brief Get the value of the freestream density.
1684+
* \return Freestream density.
16851685
*/
16861686
su2double GetDensity_FreeStream(void) const { return Density_FreeStream; }
16871687

@@ -1759,8 +1759,8 @@ class CConfig {
17591759
su2double GetPressure_Ref(void) const { return Pressure_Ref; }
17601760

17611761
/*!
1762-
* \brief Get the value of the reference pressure for non-dimensionalization.
1763-
* \return Reference pressure for non-dimensionalization.
1762+
* \brief Get the value of the reference energy for non-dimensionalization.
1763+
* \return Reference energy for non-dimensionalization.
17641764
*/
17651765
su2double GetEnergy_Ref(void) const { return Energy_Ref; }
17661766

SU2_CFD/src/output/CNEMOCompOutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ void CNEMOCompOutput::SetVolumeOutputFields(CConfig *config){
224224
AddVolumeOutput("ENERGY", "Energy", "SOLUTION", "Energy");
225225
AddVolumeOutput("ENERGY_VE", "Energy_ve", "SOLUTION", "Energy_ve");
226226

227+
SetVolumeOutputFields_ScalarSolution(config);
228+
227229
//Auxiliary variables for post-processment
228230
for(iSpecies = 0; iSpecies < nSpecies; iSpecies++)
229231
AddVolumeOutput("MASSFRAC_" + std::to_string(iSpecies), "MassFrac_" + std::to_string(iSpecies), "AUXILIARY", "MassFrac_" + std::to_string(iSpecies));
230232

231-
SetVolumeOutputFields_ScalarSolution(config);
232-
233233
// Grid velocity
234234
if (gridMovement){
235235
AddVolumeOutput("GRID_VELOCITY-X", "Grid_Velocity_x", "GRID_VELOCITY", "x-component of the grid velocity vector");

SU2_CFD/src/variables/CNEMOEulerVariable.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ CNEMOEulerVariable::CNEMOEulerVariable(su2double val_pressure,
4646

4747
unsigned short iDim, iSpecies;
4848

49+
const bool dual_time = (config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_1ST) ||
50+
(config->GetTime_Marching() == TIME_MARCHING::DT_STEPPING_2ND);
51+
const bool classical_rk4 = (config->GetKind_TimeIntScheme_Flow() == CLASSICAL_RK4_EXPLICIT);
52+
4953
/*--- Setting variable amounts ---*/
5054

5155
nSpecies = config->GetnSpecies();
@@ -109,6 +113,16 @@ CNEMOEulerVariable::CNEMOEulerVariable(su2double val_pressure,
109113
}
110114

111115
Solution_Old = Solution;
116+
117+
if (classical_rk4) Solution_New = Solution;
118+
119+
/*--- Allocate and initializate solution for dual time strategy ---*/
120+
121+
if (dual_time) {
122+
Solution_time_n = Solution;
123+
Solution_time_n1 = Solution;
124+
}
125+
112126
}
113127

114128
void CNEMOEulerVariable::SetVelocity2(unsigned long iPoint) {

TestCases/parallel_regression.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ def main():
5454
thermalbath.tol = 0.00001
5555
test_list.append(thermalbath)
5656

57+
# Adiabatic thermal bath
58+
ionized = TestCase('ionized')
59+
ionized.cfg_dir = "nonequilibrium/thermalbath/finitechemistry"
60+
ionized.cfg_file = "weakly_ionized.cfg"
61+
ionized.test_iter = 10
62+
ionized.test_vals = [0.945997, 0.945997, -12.039262, -12.171767, -32.000000, 10.013239, 0.0, 0.0]
63+
ionized.su2_exec = "mpirun -n 2 SU2_CFD"
64+
ionized.timeout = 1600
65+
ionized.new_output = True
66+
ionized.tol = 0.00001
67+
test_list.append(ionized)
68+
5769
# Adiabatic frozen thermal bath
5870
thermalbath_frozen = TestCase('thermalbath_frozen')
5971
thermalbath_frozen.cfg_dir = "nonequilibrium/thermalbath/frozen"

0 commit comments

Comments
 (0)