From 583c32afd6953e52afb4cddd83551a6a576a362e Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:09 +0200 Subject: [PATCH 01/14] Add the incompressible grid-motion Jacobian once, with the variable-density terms FDS added the grid-motion term inside a loop over the variables (nVar times). The term is now added once, as the exact derivative with respect to (p, u, h), including d(rho)/dh; the same terms are added to the incompressible JST and Lax-Friedrichs schemes. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- .../src/numerics/flow/convection/centered.cpp | 48 ++++++++++++------- SU2_CFD/src/numerics/flow/convection/fds.cpp | 24 ++++++---- 2 files changed, 46 insertions(+), 26 deletions(-) diff --git a/SU2_CFD/src/numerics/flow/convection/centered.cpp b/SU2_CFD/src/numerics/flow/convection/centered.cpp index b0130279f76f..54fdbdfdd8f9 100644 --- a/SU2_CFD/src/numerics/flow/convection/centered.cpp +++ b/SU2_CFD/src/numerics/flow/convection/centered.cpp @@ -161,17 +161,25 @@ CNumerics::ResidualType<> CCentLaxInc_Flow::ComputeResidual(const CConfig* confi ProjVelocity += 0.5*(GridVel_i[iDim]+GridVel_j[iDim])*Normal[iDim]; /*--- Residual contributions ---*/ - for (iVar = 0; iVar < nVar; iVar++) { + for (iVar = 0; iVar < nVar; iVar++) ProjFlux[iVar] -= ProjVelocity * 0.5*(U_i[iVar]+U_j[iVar]); - /*--- Jacobian contributions ---*/ - /*--- Implicit terms ---*/ - if (implicit) { - for (iDim = 0; iDim < nDim+1; iDim++){ - Jacobian_i[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_i; - Jacobian_j[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_j; + /*--- Jacobian of -ProjVelocity * 0.5*U, with U = (rho, rho*u, rho*h), w.r.t. the primitives (p, u, h), added + once. The density depends on h (variable density models) and not on the pressure. ---*/ + if (implicit) { + auto addGridJacobian = [&](su2double **Jac, su2double rho, const su2double *vel, su2double h, su2double T, + su2double cp) { + const su2double dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); + const su2double factor = 0.5*ProjVelocity; + Jac[0][nDim+1] -= factor*dRhodh; + for (iDim = 0; iDim < nDim; iDim++) { + Jac[iDim+1][iDim+1] -= factor*rho; + Jac[iDim+1][nDim+1] -= factor*vel[iDim]*dRhodh; } - } + Jac[nDim+1][nDim+1] -= factor*(rho + h*dRhodh); + }; + addGridJacobian(Jacobian_i, DensityInc_i, Velocity_i, Enthalpy_i, Temperature_i, Cp_i); + addGridJacobian(Jacobian_j, DensityInc_j, Velocity_j, Enthalpy_j, Temperature_j, Cp_j); } } @@ -401,17 +409,25 @@ CNumerics::ResidualType<> CCentJSTInc_Flow::ComputeResidual(const CConfig* confi ProjVelocity += 0.5*(GridVel_i[iDim]+GridVel_j[iDim])*Normal[iDim]; /*--- Residual contributions ---*/ - for (iVar = 0; iVar < nVar; iVar++) { + for (iVar = 0; iVar < nVar; iVar++) ProjFlux[iVar] -= ProjVelocity * 0.5*(U_i[iVar]+U_j[iVar]); - /*--- Jacobian contributions ---*/ - /*--- Implicit terms ---*/ - if (implicit) { - for (iDim = 0; iDim < nDim+1; iDim++){ - Jacobian_i[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_i; - Jacobian_j[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_j; + /*--- Jacobian of -ProjVelocity * 0.5*U, with U = (rho, rho*u, rho*h), w.r.t. the primitives (p, u, h), added + once. The density depends on h (variable density models) and not on the pressure. ---*/ + if (implicit) { + auto addGridJacobian = [&](su2double **Jac, su2double rho, const su2double *vel, su2double h, su2double T, + su2double cp) { + const su2double dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); + const su2double factor = 0.5*ProjVelocity; + Jac[0][nDim+1] -= factor*dRhodh; + for (iDim = 0; iDim < nDim; iDim++) { + Jac[iDim+1][iDim+1] -= factor*rho; + Jac[iDim+1][nDim+1] -= factor*vel[iDim]*dRhodh; } - } + Jac[nDim+1][nDim+1] -= factor*(rho + h*dRhodh); + }; + addGridJacobian(Jacobian_i, DensityInc_i, Velocity_i, Enthalpy_i, Temperature_i, Cp_i); + addGridJacobian(Jacobian_j, DensityInc_j, Velocity_j, Enthalpy_j, Temperature_j, Cp_j); } } diff --git a/SU2_CFD/src/numerics/flow/convection/fds.cpp b/SU2_CFD/src/numerics/flow/convection/fds.cpp index e806127da203..57c7ed9f6f5a 100644 --- a/SU2_CFD/src/numerics/flow/convection/fds.cpp +++ b/SU2_CFD/src/numerics/flow/convection/fds.cpp @@ -249,19 +249,23 @@ CNumerics::ResidualType<> CUpwFDSInc_Flow::ComputeResidual(const CConfig *config ProjVelocity += 0.5*(GridVel_i[iDim]+GridVel_j[iDim])*Normal[iDim]; /*--- Residual contributions ---*/ - for (iVar = 0; iVar < nVar; iVar++) { + for (iVar = 0; iVar < nVar; iVar++) Flux[iVar] -= ProjVelocity * 0.5*(U_i[iVar]+U_j[iVar]); - /*--- Jacobian contributions ---*/ - /*--- Implicit terms ---*/ - if (implicit) { - for (iDim = 0; iDim < nDim; iDim++){ - Jacobian_i[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_i; - Jacobian_j[iDim+1][iDim+1] -= 0.5*ProjVelocity*DensityInc_j; + /*--- Jacobian of -ProjVelocity * 0.5*U, with U = (rho, rho*u, rho*h), w.r.t. the primitives (p, u, h), added + once. The density depends on h (variable density models) and not on the pressure. ---*/ + if (implicit) { + auto addGridJacobian = [&](su2double **Jac, su2double rho, const su2double *vel, su2double h, su2double dRhodh) { + const su2double factor = 0.5*ProjVelocity; + Jac[0][nDim+1] -= factor*dRhodh; + for (iDim = 0; iDim < nDim; iDim++) { + Jac[iDim+1][iDim+1] -= factor*rho; + Jac[iDim+1][nDim+1] -= factor*vel[iDim]*dRhodh; } - Jacobian_i[nDim+1][nDim+1] -= 0.5*ProjVelocity*DensityInc_i; - Jacobian_j[nDim+1][nDim+1] -= 0.5*ProjVelocity*DensityInc_j; - } + Jac[nDim+1][nDim+1] -= factor*(rho + h*dRhodh); + }; + addGridJacobian(Jacobian_i, DensityInc_i, Velocity_i, Enthalpy_i, dRhodh_i); + addGridJacobian(Jacobian_j, DensityInc_j, Velocity_j, Enthalpy_j, dRhodh_j); } } From ca7aee08ccbe731300bbd1e036af55141f00b43d Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:09 +0200 Subject: [PATCH 02/14] Reduce the minimum pressure with MPI_MIN SetRangePressure reduced the local minima with MPI_MAX, so with more than one rank MinP was the largest of the local minima (used by the mass-flow outlet). Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- SU2_CFD/src/solvers/CIncEulerSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SU2_CFD/src/solvers/CIncEulerSolver.cpp b/SU2_CFD/src/solvers/CIncEulerSolver.cpp index 512a99a97dc6..8c6ee1719a01 100644 --- a/SU2_CFD/src/solvers/CIncEulerSolver.cpp +++ b/SU2_CFD/src/solvers/CIncEulerSolver.cpp @@ -2235,7 +2235,7 @@ void CIncEulerSolver::SetRangePressure(CGeometry *geometry, CSolver **solver_con BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS { minP = MinP; - SU2_MPI::Allreduce(&minP, &MinP, 1, MPI_DOUBLE, MPI_MAX, SU2_MPI::GetComm()); + SU2_MPI::Allreduce(&minP, &MinP, 1, MPI_DOUBLE, MPI_MIN, SU2_MPI::GetComm()); maxP = MaxP; SU2_MPI::Allreduce(&maxP, &MaxP, 1, MPI_DOUBLE, MPI_MAX, SU2_MPI::GetComm()); From b29368df17aee204414315e1d3160ac29bad6c82 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:09 +0200 Subject: [PATCH 03/14] Reject combinations of source terms that share one numerics object The flow solvers build one numerics object per source slot, so two active sources of the same slot overwrote each other (e.g. body force + gravity gave twice the body force). First slot: body force, rotating frame, axisymmetric, gravity, Boussinesq, streamwise periodic. Second slot: radiation, periodic outlet, vorticity confinement. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- Common/src/CConfig.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index 034352b92aa4..c5fef6547554 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -4598,6 +4598,36 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i Rotating_Frame = (Kind_GridMovement == ROTATING_FRAME); + /*--- The finite volume flow solvers apply these source terms with a single numerics object, which is built + for only one of them: combinations would apply one source several times and ignore the others. Only these + solvers (and their discrete adjoints) are checked: e.g. elasticity uses BODY_FORCE and GRAVITY_FORCE together. ---*/ + + if (GetFluidProblem() && !GetNEMOProblem()) { + const bool inc = (Kind_Regime == ENUM_REGIME::INCOMPRESSIBLE); + const int nSources = int(Body_Force) + int(Rotating_Frame) + int(Axisymmetric) + int(GravityForce && !inc) + + int(inc && Kind_DensityModel == INC_DENSITYMODEL::BOUSSINESQ) + + int(inc && Kind_Streamwise_Periodic != ENUM_STREAMWISE_PERIODIC::NONE); + if (nSources > 1) { + SU2_MPI::Error("Only one of BODY_FORCE, GRID_MOVEMENT= ROTATING_FRAME, AXISYMMETRIC, GRAVITY_FORCE (compressible), " + "INC_DENSITY_MODEL= BOUSSINESQ and KIND_STREAMWISE_PERIODIC (incompressible) can be used at a time.", + CURRENT_FUNCTION); + } + } + + /*--- The second source object, for radiation, the energy correction of incompressible streamwise periodic flow + (without periodic temperature) or vorticity confinement, is also built for only one of them. ---*/ + + if (GetFluidProblem() && !GetNEMOProblem()) { + const bool inc = (Kind_Regime == ENUM_REGIME::INCOMPRESSIBLE); + const bool periodicOutlet = inc && Kind_Streamwise_Periodic != ENUM_STREAMWISE_PERIODIC::NONE && Energy_Equation && + !Streamwise_Periodic_Temperature; + if (int(Radiation) + int(periodicOutlet) + int(VorticityConfinement) > 1) { + SU2_MPI::Error("Only one of RADIATION, the energy correction of KIND_STREAMWISE_PERIODIC (incompressible, " + "STREAMWISE_PERIODIC_TEMPERATURE= NO) and VORTICITY_CONFINEMENT can be used at a time.", + CURRENT_FUNCTION); + } + } + /*--- In case the grid movement parameters have not been declared in the config file, set them equal to zero for safety. Also check to make sure that for each option, a value has been declared for each moving marker. ---*/ From df8f9787cdea64283d369dfd773793b10c63557c Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:09 +0200 Subject: [PATCH 04/14] Read the Riemann boundary kind in BC_TurboRiemann It read the Giles kind of the marker (copied from BC_Giles), which reads past the end of the Giles list and crashes when the case has no Giles marker. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- SU2_CFD/src/solvers/CEulerSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SU2_CFD/src/solvers/CEulerSolver.cpp b/SU2_CFD/src/solvers/CEulerSolver.cpp index 8259e1630520..15658e5a7459 100644 --- a/SU2_CFD/src/solvers/CEulerSolver.cpp +++ b/SU2_CFD/src/solvers/CEulerSolver.cpp @@ -5800,7 +5800,7 @@ void CEulerSolver::BC_TurboRiemann(CGeometry *geometry, CSolver **solver_contain ProjVelocity_i += Velocity_i[iDim]*UnitNormal[iDim]; su2double donorAverages[5] = {0.0}; - switch (config->GetKind_Data_Giles(Marker_Tag)){ + switch (config->GetKind_Data_Riemann(Marker_Tag)){ case MIXING_IN: case MIXING_IN_1D: case MIXING_OUT: case MIXING_OUT_1D: for (auto mixVar = 0u; mixVar < 5; mixVar++) donorAverages[mixVar] = GetMixingState(val_marker, iSpan, mixVar); break; From f3bcaac94b17d55ed5217ee46f350089b794a26b Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:09 +0200 Subject: [PATCH 05/14] Check the number of variables in the Green-Gauss gradient The boundary flux array had 20 entries and no bound check (NEMO with 10 or more species in 3D). Use 32, as the limiters, and stop with an error above it. The error of both checks is raised by the master thread only, since these functions run inside OpenMP parallel regions (MPI_THREAD_FUNNELED). Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- SU2_CFD/include/gradients/computeGradientsGreenGauss.hpp | 9 ++++++++- SU2_CFD/include/limiters/computeLimiters_impl.hpp | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/SU2_CFD/include/gradients/computeGradientsGreenGauss.hpp b/SU2_CFD/include/gradients/computeGradientsGreenGauss.hpp index f60c0422f0cc..89eb028c6aeb 100644 --- a/SU2_CFD/include/gradients/computeGradientsGreenGauss.hpp +++ b/SU2_CFD/include/gradients/computeGradientsGreenGauss.hpp @@ -69,7 +69,14 @@ void computeGradientsGreenGauss(CSolver* solver, MPI_QUANTITIES kindMpiComm, PER const auto chunkSize = computeStaticChunkSize(nPointDomain, omp_get_max_threads(), OMP_MAX_CHUNK); #endif - static constexpr size_t MAXNVAR = 20; + static constexpr size_t MAXNVAR = 32; + + /*--- Called by all threads of a parallel region: only the master may call MPI (MPI_THREAD_FUNNELED). ---*/ + if (varEnd > MAXNVAR) { + BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS + SU2_MPI::Error("Number of variables is too large, increase MAXNVAR.", CURRENT_FUNCTION); + END_SU2_OMP_SAFE_GLOBAL_ACCESS + } /*--- For each (non-halo) volume integrate over its faces (edges). ---*/ diff --git a/SU2_CFD/include/limiters/computeLimiters_impl.hpp b/SU2_CFD/include/limiters/computeLimiters_impl.hpp index 7d8beafb03e0..0cdc60207a27 100644 --- a/SU2_CFD/include/limiters/computeLimiters_impl.hpp +++ b/SU2_CFD/include/limiters/computeLimiters_impl.hpp @@ -80,8 +80,12 @@ void computeLimiters_impl(CSolver* solver, { constexpr size_t MAXNVAR = 32; - if (varEnd > MAXNVAR) + /*--- Called by all threads of a parallel region: only the master may call MPI (MPI_THREAD_FUNNELED). ---*/ + if (varEnd > MAXNVAR) { + BEGIN_SU2_OMP_SAFE_GLOBAL_ACCESS SU2_MPI::Error("Number of variables is too large, increase MAXNVAR.", CURRENT_FUNCTION); + END_SU2_OMP_SAFE_GLOBAL_ACCESS + } const size_t nPointDomain = geometry.GetnPointDomain(); const size_t nPoint = geometry.GetnPoint(); From 99d861a2e510e9ea8edf735f7d0a649431b50a03 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:10 +0200 Subject: [PATCH 06/14] Clamp MGLEVEL to 10 The multigrid arrays hold at most 10 coarse levels (MAX_MG_LEVELS); MGLEVEL= 12 with MG_MIN_MESHSIZE= 1 crashed with stack smashing. Clamp with a warning, MG_MIN_MESHSIZE can still reduce the levels. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- Common/src/CConfig.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index c5fef6547554..3a5bfee8f713 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -4987,6 +4987,13 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i if (Restart || ((Kind_MGCycle == MG_CYCLE::FULL) && ContinuousAdjoint)) Kind_MGCycle = MG_CYCLE::V; + /*--- The multigrid arrays hold at most 10 coarse levels (CMultiGridIntegration::MAX_MG_LEVELS). Clamp instead of + stopping, MG_MIN_MESHSIZE can still reduce the number of levels during the agglomeration. ---*/ + if (nMGLevels > 10) { + if (rank == MASTER_NODE) cout << "WARNING: MGLEVEL > 10 is not supported, using MGLEVEL= 10." << endl; + nMGLevels = 10; + } + FinestMesh = MESH_0; if (Kind_MGCycle == MG_CYCLE::FULL) FinestMesh = nMGLevels; From 536c8d8578fe6128b0492963357474f80a2dd62a Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:09:20 +0200 Subject: [PATCH 07/14] Use 0.5 instead of the integer division 1/2 in the axisymmetric source Jacobian The term 1/2*(Gamma-1) of d(v (rho E + p))/d(rho v) was 0 (implicit Jacobian only). Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- SU2_CFD/src/numerics/flow/flow_sources.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SU2_CFD/src/numerics/flow/flow_sources.cpp b/SU2_CFD/src/numerics/flow/flow_sources.cpp index e3797c7c5a5f..87784e73f39f 100644 --- a/SU2_CFD/src/numerics/flow/flow_sources.cpp +++ b/SU2_CFD/src/numerics/flow/flow_sources.cpp @@ -138,7 +138,7 @@ CNumerics::ResidualType<> CSourceAxisymmetric_Flow::ComputeResidual(const CConfi jacobian[3][0] = -Gamma*U_i[2]*U_i[3]/(U_i[0]*U_i[0]) + (Gamma-1)*U_i[2]*(U_i[1]*U_i[1]+U_i[2]*U_i[2])/(U_i[0]*U_i[0]*U_i[0]); jacobian[3][1] = -(Gamma-1)*U_i[2]*U_i[1]/(U_i[0]*U_i[0]); - jacobian[3][2] = Gamma*U_i[3]/U_i[0] - 1/2*(Gamma-1)*( (U_i[1]*U_i[1]+U_i[2]*U_i[2])/(U_i[0]*U_i[0]) + 2*U_i[2]*U_i[2]/(U_i[0]*U_i[0]) ); + jacobian[3][2] = Gamma*U_i[3]/U_i[0] - 0.5*(Gamma-1)*( (U_i[1]*U_i[1]+U_i[2]*U_i[2])/(U_i[0]*U_i[0]) + 2*U_i[2]*U_i[2]/(U_i[0]*U_i[0]) ); jacobian[3][3] = Gamma*U_i[2]/U_i[0]; for (iVar=0; iVar < nVar; iVar++) From c333a18ebd6c26c584e24088fedfe9b1c9364af5 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Tue, 29 Sep 2026 14:10:40 +0200 Subject: [PATCH 08/14] Check the MUSCL face states before evaluating the fluid model The consistent extrapolation and the low-Mach correction called the fluid model with the reconstructed pressure and density before checking that they are positive (possible NaN or fluid-model errors with real-gas models at start-up). Check them first, also rejecting zero and NaN, and check again after the low-Mach correction. Valid states give the same result as before. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LEL91DW5WPbPwgFtCvHga6 --- SU2_CFD/src/solvers/CEulerSolver.cpp | 42 ++++++++++++++++++---------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/SU2_CFD/src/solvers/CEulerSolver.cpp b/SU2_CFD/src/solvers/CEulerSolver.cpp index 15658e5a7459..6b8784f228aa 100644 --- a/SU2_CFD/src/solvers/CEulerSolver.cpp +++ b/SU2_CFD/src/solvers/CEulerSolver.cpp @@ -1947,27 +1947,39 @@ void CEulerSolver::Upwind_Residual(CGeometry *geometry, CSolver **solver_contain } - /*--- Recompute the reconstructed quantities in a thermodynamically consistent way. ---*/ + /*--- Check for non-physical solutions after reconstruction. If found, use the + cell-average value of the solution. This is a locally 1st order approximation, + which is typically only active during the start-up of a calculation. + Pressure and density are checked before the fluid model is evaluated with them. ---*/ - if (!ideal_gas || low_mach_corr) { - ComputeConsistentExtrapolation(GetFluidModel(), nDim, Primitive_i, Secondary_i); - ComputeConsistentExtrapolation(GetFluidModel(), nDim, Primitive_j, Secondary_j); - } + auto nonPositive = [](su2double value) { return !(value > 0.0) || !std::isfinite(SU2_TYPE::GetValue(value)); }; + bool neg_pres_or_rho_i = nonPositive(Primitive_i[prim_idx.Pressure()]) || nonPositive(Primitive_i[prim_idx.Density()]); + bool neg_pres_or_rho_j = nonPositive(Primitive_j[prim_idx.Pressure()]) || nonPositive(Primitive_j[prim_idx.Density()]); - /*--- Low-Mach number correction. ---*/ + if (!neg_pres_or_rho_i && !neg_pres_or_rho_j) { - if (low_mach_corr) { - LowMachPrimitiveCorrection(GetFluidModel(), nDim, Primitive_i, Primitive_j); - } + /*--- Recompute the reconstructed quantities in a thermodynamically consistent way. ---*/ - /*--- Check for non-physical solutions after reconstruction. If found, use the - cell-average value of the solution. This is a locally 1st order approximation, - which is typically only active during the start-up of a calculation. ---*/ + if (!ideal_gas || low_mach_corr) { + ComputeConsistentExtrapolation(GetFluidModel(), nDim, Primitive_i, Secondary_i); + ComputeConsistentExtrapolation(GetFluidModel(), nDim, Primitive_j, Secondary_j); + } + + /*--- Low-Mach number correction. ---*/ + + if (low_mach_corr) { + LowMachPrimitiveCorrection(GetFluidModel(), nDim, Primitive_i, Primitive_j); + } + + /*--- The correction changes the face states, check them again. ---*/ - bool neg_pres_or_rho_i = (Primitive_i[prim_idx.Pressure()] < 0.0) || (Primitive_i[prim_idx.Density()] < 0.0); - bool neg_pres_or_rho_j = (Primitive_j[prim_idx.Pressure()] < 0.0) || (Primitive_j[prim_idx.Density()] < 0.0); + neg_pres_or_rho_i = nonPositive(Primitive_i[prim_idx.Pressure()]) || nonPositive(Primitive_i[prim_idx.Density()]); + neg_pres_or_rho_j = nonPositive(Primitive_j[prim_idx.Pressure()]) || nonPositive(Primitive_j[prim_idx.Density()]); + } - su2double R = sqrt(fabs(Primitive_j[prim_idx.Density()]/Primitive_i[prim_idx.Density()])); + su2double R = 1.0; + if (!neg_pres_or_rho_i && !neg_pres_or_rho_j) + R = sqrt(Primitive_j[prim_idx.Density()]/Primitive_i[prim_idx.Density()]); su2double sq_vel = 0.0; for (auto iDim = 0u; iDim < nDim; iDim++) { su2double RoeVelocity = (R * Primitive_j[iDim + prim_idx.Velocity()] + From e0d3ee8d72598767227e62a9be5834a4554532b6 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Mon, 12 Oct 2026 21:19:39 +0200 Subject: [PATCH 09/14] Correct compressible moving-wall projection and multigrid coupling --- .../include/solvers/CFVMFlowSolverBase.inl | 45 ++++- .../SU2_CFD/solvers/moving_wall_tests.cpp | 182 ++++++++++++++++++ UnitTests/meson.build | 1 + 3 files changed, 218 insertions(+), 10 deletions(-) create mode 100644 UnitTests/SU2_CFD/solvers/moving_wall_tests.cpp diff --git a/SU2_CFD/include/solvers/CFVMFlowSolverBase.inl b/SU2_CFD/include/solvers/CFVMFlowSolverBase.inl index cb44757c6280..650b26b91e7f 100644 --- a/SU2_CFD/include/solvers/CFVMFlowSolverBase.inl +++ b/SU2_CFD/include/solvers/CFVMFlowSolverBase.inl @@ -1155,6 +1155,7 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve const bool ideal_gas = (config->GetKind_FluidModel() == STANDARD_AIR) || (config->GetKind_FluidModel() == IDEAL_GAS); const auto iVel = prim_idx.Velocity(); + const bool compressibleProjection = FlowRegime == ENUM_REGIME::COMPRESSIBLE && iVel == 1 && nVar == nDim + 2; /*--- Blazek chapter 8.: * The components of the momentum residual normal to the symmetry plane are zeroed out. @@ -1184,8 +1185,8 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve for (auto iDim = 0u; iDim < nDim; iDim++) UnitNormal[iDim] = Normal[iDim] / Area; } - /*--- Energy terms due to grid movement (aka work of pressure forces). ---*/ - if (dynamic_grid) { + /*--- The classical compressible projection below already supplies wall pressure work. ---*/ + if (dynamic_grid && !compressibleProjection) { su2double* V_reflected = GetCharacPrimVar(val_marker, iVertex); conv_numerics->SetGridVel(geometry->nodes->GetGridVel(iPoint), @@ -1217,8 +1218,7 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve /*--- Compute the residual using an upwind scheme. ---*/ auto residual = conv_numerics->ComputeResidual(config); - /*--- Use just the energy fluxes to update the residual, adding the others would - * increase numerical diffusion which we wish to avoid if possible. ---*/ + /*--- Energy fluxes for the other conservative layouts. ---*/ for (auto iVar = iVel + nDim; iVar < nVar; iVar++) { LinSysRes(iPoint, iVar) += residual.residual[iVar]; } @@ -1243,14 +1243,16 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve su2double* solutionOld = nodes->GetSolution_Old(iPoint); su2double gridVel[MAXNDIM] = {}; + su2double gridNormalVel = 0.0; if (dynamic_grid) { for (auto iDim = 0u; iDim < nDim; iDim++) { gridVel[iDim] = geometry->nodes->GetGridVel(iPoint)[iDim]; } + gridNormalVel = GeometryToolbox::DotProduct(nDim, gridVel, UnitNormal); if (FlowRegime == ENUM_REGIME::COMPRESSIBLE) { for(auto iDim = 0u; iDim < nDim; iDim++) { /*--- Multiply by density since we are correcting conservative variables. ---*/ - gridVel[iDim] *= nodes->GetDensity(iPoint); + gridVel[iDim] *= compressibleProjection ? solutionOld[0] : nodes->GetDensity(iPoint); } } } @@ -1261,20 +1263,27 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve for (auto iDim = 0u; iDim < nDim; iDim++) { solutionOld[iVel + iDim] -= vp * UnitNormal[iDim]; } + if (compressibleProjection) { + solutionOld[iVel + nDim] -= gridNormalVel * vp; + } /*--- Keep only the tangential part of the momentum residuals. ---*/ su2double normalRes = 0.0; for (auto iDim = 0u; iDim < nDim; iDim++) { normalRes += LinSysRes(iPoint, iVel + iDim) * UnitNormal[iDim]; } + if (compressibleProjection) { + /*--- Project in the wall frame: normal momentum follows density, with consistent pressure work. ---*/ + normalRes -= gridNormalVel * LinSysRes(iPoint, 0); + LinSysRes(iPoint, iVel + nDim) -= gridNormalVel * normalRes; + } for (auto iDim = 0u; iDim < nDim; iDim++) { LinSysRes(iPoint, iVel + iDim) -= normalRes * UnitNormal[iDim]; } /*--- Jacobian contribution for implicit integration. ---*/ if (implicit) { - /*--- Modify the Jacobians according to the modification of the residual - * J_new = (I - n * n^T) * J where n = {0, nx, ny, nz, 0, ...} ---*/ + /*--- Apply the same wall-frame projection to the Jacobians. ---*/ su2double mat[MAXNVAR * MAXNVAR] = {}; for (auto iVar = 0u; iVar < nVar; iVar++) @@ -1282,6 +1291,13 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve for (auto iDim = 0u; iDim < nDim; iDim++) for (auto jDim = 0u; jDim < nDim; jDim++) mat[(iDim + iVel) * nVar + jDim + iVel] -= UnitNormal[iDim] * UnitNormal[jDim]; + if (compressibleProjection) { + for (auto iDim = 0u; iDim < nDim; iDim++) { + mat[(iDim + iVel) * nVar] += gridNormalVel * UnitNormal[iDim]; + mat[(iVel + nDim) * nVar + iVel + iDim] -= gridNormalVel * UnitNormal[iDim]; + } + mat[(iVel + nDim) * nVar] += gridNormalVel * gridNormalVel; + } auto ModifyJacobian = [&](const unsigned long jPoint) { su2double jac[MAXNVAR * MAXNVAR], newJac[MAXNVAR * MAXNVAR]; @@ -1306,6 +1322,10 @@ void CFVMFlowSolverBase::BC_Sym_Plane(CGeometry* geometry, CSolve for (auto iDim = 0u; iDim < nDim; iDim++) { normalRes += Res_TruncError[iVel + iDim] * UnitNormal[iDim]; } + if (compressibleProjection) { + normalRes -= gridNormalVel * Res_TruncError[0]; + Res_TruncError[iVel + nDim] -= gridNormalVel * normalRes; + } for (auto iDim = 0u; iDim < nDim; iDim++) { Res_TruncError[iVel + iDim] -= normalRes * UnitNormal[iDim]; } @@ -2974,6 +2994,7 @@ void CFVMFlowSolverBase::MultigridProjectEulerWall(CGeometry* geo bool use_solution_old) { const auto iVel = prim_idx.Velocity(); const auto nDim = geometry->GetnDim(); + const bool compressibleProjection = FlowRegime == ENUM_REGIME::COMPRESSIBLE && iVel == 1 && nVar == nDim + 2; for (auto iMarker = 0u; iMarker < config->GetnMarker_All(); iMarker++) { if (config->GetMarker_All_KindBC(iMarker) != EULER_WALL) continue; @@ -3004,12 +3025,15 @@ void CFVMFlowSolverBase::MultigridProjectEulerWall(CGeometry* geo * For dynamic grids subtract the grid velocity to enforce (v - v_grid).n = 0, * multiplying by density for compressible flow (conservative variables). ---*/ su2double gridVel[MAXNDIM] = {}; - if (dynamic_grid && !use_solution_old) { + su2double gridNormalVel = 0.0; + if (dynamic_grid && (compressibleProjection || !use_solution_old)) { for (auto iDim = 0u; iDim < nDim; iDim++) gridVel[iDim] = geometry->nodes->GetGridVel(iPoint)[iDim]; + gridNormalVel = GeometryToolbox::DotProduct(nDim, gridVel, UnitNormal); if constexpr (FlowRegime == ENUM_REGIME::COMPRESSIBLE) { - for (auto iDim = 0u; iDim < nDim; iDim++) - gridVel[iDim] *= nodes->GetDensity(iPoint); + /*--- Corrections carry their own density increment, rather than the current solution density. ---*/ + const auto density = compressibleProjection ? sol[0] : nodes->GetDensity(iPoint); + for (auto iDim = 0u; iDim < nDim; iDim++) gridVel[iDim] *= density; } } @@ -3019,6 +3043,7 @@ void CFVMFlowSolverBase::MultigridProjectEulerWall(CGeometry* geo /*--- Project to tangent plane. ---*/ for (auto iDim = 0u; iDim < nDim; iDim++) sol[iVel + iDim] -= momentum_n * UnitNormal[iDim]; + if (compressibleProjection) sol[iVel + nDim] -= gridNormalVel * momentum_n; } END_SU2_OMP_FOR } diff --git a/UnitTests/SU2_CFD/solvers/moving_wall_tests.cpp b/UnitTests/SU2_CFD/solvers/moving_wall_tests.cpp new file mode 100644 index 000000000000..1baf0c271428 --- /dev/null +++ b/UnitTests/SU2_CFD/solvers/moving_wall_tests.cpp @@ -0,0 +1,182 @@ +/*! + * \file moving_wall_tests.cpp + * \brief Regression for compressible wall projection in fixed and uniformly translating frames. + * \version 8.5.0 "Harrier" + * + * SU2 Project Website: https://su2code.github.io + * + * The SU2 Project is maintained by the SU2 Foundation + * (http://su2foundation.org) + * + * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md) + * + * SU2 is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * SU2 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with SU2. If not, see . + */ + +#include "catch.hpp" +#include +#include +#include "../../UnitQuadTestCase.hpp" +#include "../../../SU2_CFD/include/numerics/flow/convection/hllc.hpp" +#include "../../../SU2_CFD/include/fluid/CPengRobinson.hpp" + +TEST_CASE("Compressible wall projection commutes with a Galilean boost", "[HLLC-wall]") { + for (const auto nDim : {2u, 3u}) { + for (const bool realGas : {false, true}) { + UnitQuadTestCase fixed, moving; + const std::string markers = + nDim == 2 ? "(x_minus,x_plus,y_minus,y_plus)" : "(x_minus,x_plus,y_minus,y_plus,z_minus,z_plus)"; + const std::string options = "SOLVER= EULER\nMESH_FORMAT= " + std::string(nDim == 2 ? "RECTANGLE" : "BOX") + + "\nMESH_BOX_SIZE= 5,5,5\nREF_DIMENSIONALIZATION= DIMENSIONAL\n" + "MACH_NUMBER= 0.1\nFREESTREAM_OPTION= DENSITY_FS\nFREESTREAM_DENSITY= 230\n" + "FREESTREAM_PRESSURE= 1500112\nGAS_CONSTANT= 35.152\n" + "CONV_NUM_METHOD_FLOW= HLLC\nTIME_DISCRE_FLOW= EULER_IMPLICIT\n" + "GRID_MOVEMENT= STEADY_TRANSLATION\nTRANSLATION_RATE= 0,0,0\nMARKER_EULER= " + + markers + "\nMARKER_MONITORING= (x_minus)\n" + + (realGas ? "FLUID_MODEL= PR_GAS\nGAMMA_VALUE= 1.0125\nCRITICAL_PRESSURE= " + "1415200\nCRITICAL_TEMPERATURE= 564.1\nACENTRIC_FACTOR= 0.529\n" + : "FLUID_MODEL= IDEAL_GAS\nGAMMA_VALUE= 1.4\n"); + fixed.config_options = moving.config_options = options; + fixed.InitConfig(); + fixed.InitGeometry(); + fixed.InitSolver(); + moving.InitConfig(); + moving.InitGeometry(); + moving.InitSolver(); + const auto nVar = nDim + 2; + const su2double boost[3] = {20, -7, 3}; + const su2double velocity[3] = {11, 4, -2}; + su2double B[5][5] = {}, T[5][5] = {}, baseJac[5][5] = {}, boostedJac[5][5] = {}; + su2double c2 = 0; + for (auto i = 0u; i < nVar; ++i) { + B[i][i] = T[i][i] = 1; + for (auto j = 0u; j < nVar; ++j) baseJac[i][j] = 1 + i + 2 * j; + } + for (auto i = 0u; i < nDim; ++i) { + c2 += boost[i] * boost[i]; + B[i + 1][0] = boost[i]; + T[i + 1][0] = -boost[i]; + B[nVar - 1][i + 1] = boost[i]; + T[nVar - 1][i + 1] = -boost[i]; + } + B[nVar - 1][0] = T[nVar - 1][0] = 0.5 * c2; + for (auto i = 0u; i < nVar; ++i) + for (auto j = 0u; j < nVar; ++j) + for (auto k = 0u; k < nVar; ++k) + for (auto l = 0u; l < nVar; ++l) boostedJac[i][j] += B[i][k] * baseJac[k][l] * T[l][j]; + std::unique_ptr fluid = + realGas ? std::unique_ptr(new CPengRobinson(1.0125, 35.152, 1415200, 564.1, 0.529)) + : std::unique_ptr(new CIdealGas(1.4, 35.152)); + fluid->SetTDState_Prho(1500112, 230); + std::array baseState{}; + baseState[0] = 230; + su2double speed2 = 0; + for (auto i = 0u; i < nDim; ++i) { + baseState[i + 1] = 230 * velocity[i]; + speed2 += velocity[i] * velocity[i]; + } + baseState[nVar - 1] = 230 * (fluid->GetStaticEnergy() + 0.5 * speed2); + const su2double baseResidual[5] = {0.3, -0.5, 0.2, 0.7, -0.1}; + for (auto frame = 0u; frame < 2; ++frame) { + auto& test = frame ? moving : fixed; + auto* solver = test.solver[FLOW_SOL]; + auto* nodes = static_cast(solver->GetNodes()); + for (auto p = 0ul; p < test.geometry->GetnPoint(); ++p) { + su2double state[5] = {}, residual[5] = {}; + for (auto i = 0u; i < nVar; ++i) + for (auto j = 0u; j < nVar; ++j) { + state[i] += (frame ? B[i][j] : (i == j)) * baseState[j]; + residual[i] += (frame ? B[i][j] : (i == j)) * baseResidual[j]; + } + nodes->SetSolution(p, state); + nodes->SetSolution_Old(p, state); + REQUIRE(nodes->SetPrimVar(p, fluid.get())); + nodes->SetSecondaryVar(p, fluid.get()); + for (auto i = 0u; i < nDim; ++i) test.geometry->nodes->SetGridVel(p, i, frame ? boost[i] : 0); + for (auto i = 0u; i < nVar; ++i) { + solver->LinSysRes(p, i) = residual[i]; + nodes->GetResTruncError(p)[i] = residual[i]; + } + su2double block[25] = {}; + for (auto i = 0u; i < nVar; ++i) + for (auto j = 0u; j < nVar; ++j) block[i * nVar + j] = frame ? boostedJac[i][j] : baseJac[i][j]; + solver->Jacobian.SetBlock(p, p, block); + for (auto k = 0u; k < test.geometry->nodes->GetnPoint(p); ++k) + solver->Jacobian.SetBlock(p, test.geometry->nodes->GetPoint(p, k), block); + } + std::unique_ptr numerics = + realGas ? std::unique_ptr(new CUpwGeneralHLLC_Flow(nDim, nVar, test.config.get())) + : std::unique_ptr(new CUpwHLLC_Flow(nDim, nVar, test.config.get())); + for (auto marker = 0u; marker < test.config->GetnMarker_All(); ++marker) + if (test.config->GetMarker_All_TagBound(marker) == "x_minus") + solver->BC_Sym_Plane(test.geometry.get(), test.solver, numerics.get(), nullptr, test.config.get(), marker); + } + for (auto p = 0ul; p < fixed.geometry->GetnPoint(); ++p) { + auto* f = fixed.solver[FLOW_SOL]; + auto* m = moving.solver[FLOW_SOL]; + for (auto i = 0u; i < nVar; ++i) { + su2double state = 0, residual = 0, truncation = 0; + for (auto j = 0u; j < nVar; ++j) { + state += B[i][j] * f->GetNodes()->GetSolution_Old(p)[j]; + residual += B[i][j] * f->LinSysRes(p, j); + truncation += B[i][j] * f->GetNodes()->GetResTruncError(p)[j]; + } + CHECK(m->GetNodes()->GetSolution_Old(p)[i] == Approx(state).margin(1e-6)); + CHECK(m->LinSysRes(p, i) == Approx(residual).margin(1e-8)); + CHECK(m->GetNodes()->GetResTruncError(p)[i] == Approx(truncation).margin(1e-8)); + for (auto block = 0u; block <= fixed.geometry->nodes->GetnPoint(p); ++block) { + const auto neighbor = block ? fixed.geometry->nodes->GetPoint(p, block - 1) : p; + for (auto j = 0u; j < nVar; ++j) { + su2double expected = 0; + for (auto k = 0u; k < nVar; ++k) + for (auto l = 0u; l < nVar; ++l) + expected += B[i][k] * f->Jacobian.GetBlock(p, neighbor)[k * nVar + l] * T[l][j]; + CHECK(m->Jacobian.GetBlock(p, neighbor)[i * nVar + j] == Approx(expected).margin(1e-5)); + } + } + } + } + + for (const bool correction : {false, true}) { + const su2double delta[5] = {0.3, -0.5, 0.2, 0.7, -0.1}; + for (auto frame = 0u; frame < 2; ++frame) { + auto& test = frame ? moving : fixed; + auto* solver = test.solver[FLOW_SOL]; + for (auto p = 0ul; p < test.geometry->GetnPoint(); ++p) { + su2double state[5] = {}; + for (auto i = 0u; i < nVar; ++i) + for (auto j = 0u; j < nVar; ++j) + state[i] += (frame ? B[i][j] : (i == j)) * (correction ? delta[j] : baseState[j]); + if (correction) + solver->GetNodes()->SetSolution_Old(p, state); + else + solver->GetNodes()->SetSolution(p, state); + } + solver->MultigridProjectEulerWall(test.geometry.get(), test.config.get(), correction); + } + for (auto p = 0ul; p < fixed.geometry->GetnPoint(); ++p) { + const auto* f = correction ? fixed.solver[FLOW_SOL]->GetNodes()->GetSolution_Old(p) + : fixed.solver[FLOW_SOL]->GetNodes()->GetSolution(p); + const auto* m = correction ? moving.solver[FLOW_SOL]->GetNodes()->GetSolution_Old(p) + : moving.solver[FLOW_SOL]->GetNodes()->GetSolution(p); + for (auto i = 0u; i < nVar; ++i) { + su2double expected = 0; + for (auto j = 0u; j < nVar; ++j) expected += B[i][j] * f[j]; + CHECK(m[i] == Approx(expected).margin(1e-6)); + } + } + } + } + } +} diff --git a/UnitTests/meson.build b/UnitTests/meson.build index bb5448765af6..46a9c9b3cbbc 100644 --- a/UnitTests/meson.build +++ b/UnitTests/meson.build @@ -22,6 +22,7 @@ su2_cfd_tests = files(['Common/CConfig_tests.cpp', 'SU2_CFD/output/COutput_convergence_tests.cpp', 'SU2_CFD/gradients.cpp', 'SU2_CFD/solvers/CNEMOEulerSolver_tests.cpp', + 'SU2_CFD/solvers/moving_wall_tests.cpp', 'SU2_CFD/nemo_viscous_assembly.cpp', 'SU2_CFD/windowing.cpp', 'Common/toolboxes/random_toolbox_tests.cpp', From a950f3d3cbea0501415a76aa2484486d9278b68b Mon Sep 17 00:00:00 2001 From: rois1995 Date: Mon, 12 Oct 2026 22:29:00 +0200 Subject: [PATCH 10/14] Reject unsupported multigrid levels and align centered density handling --- Common/src/CConfig.cpp | 6 ++---- .../src/numerics/flow/convection/centered.cpp | 8 ++++---- UnitTests/Common/CConfig_tests.cpp | 14 ++++++++++++++ UnitTests/Common/check_multigrid_limits.py | 16 ++++++++++++++++ UnitTests/meson.build | 2 ++ 5 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 UnitTests/Common/check_multigrid_limits.py diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index ae6f75fbc969..be485288aaf0 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -4994,11 +4994,9 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i if (Restart || ((Kind_MGCycle == MG_CYCLE::FULL) && ContinuousAdjoint)) Kind_MGCycle = MG_CYCLE::V; - /*--- The multigrid arrays hold at most 10 coarse levels (CMultiGridIntegration::MAX_MG_LEVELS). Clamp instead of - stopping, MG_MIN_MESHSIZE can still reduce the number of levels during the agglomeration. ---*/ + /*--- The multigrid arrays hold at most 10 coarse levels (CMultiGridIntegration::MAX_MG_LEVELS). ---*/ if (nMGLevels > 10) { - if (rank == MASTER_NODE) cout << "WARNING: MGLEVEL > 10 is not supported, using MGLEVEL= 10." << endl; - nMGLevels = 10; + SU2_MPI::Error("MGLEVEL must be between 0 and 10; larger multigrid hierarchies are not supported.", CURRENT_FUNCTION); } FinestMesh = MESH_0; diff --git a/SU2_CFD/src/numerics/flow/convection/centered.cpp b/SU2_CFD/src/numerics/flow/convection/centered.cpp index 54fdbdfdd8f9..713ca2e86662 100644 --- a/SU2_CFD/src/numerics/flow/convection/centered.cpp +++ b/SU2_CFD/src/numerics/flow/convection/centered.cpp @@ -31,7 +31,7 @@ CCentLaxInc_Flow::CCentLaxInc_Flow(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config) : CNumerics(val_nDim, val_nVar, config) { implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT); - variable_density = ((config->GetKind_DensityModel() == INC_DENSITYMODEL::VARIABLE) || (config->GetKind_DensityModel() == INC_DENSITYMODEL::FLAMELET)); + variable_density = config->GetVariable_Density_Model(); /* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */ dynamic_grid = config->GetDynamic_Grid(); fix_factor = config->GetCent_Inc_Jac_Fix_Factor(); @@ -169,7 +169,7 @@ CNumerics::ResidualType<> CCentLaxInc_Flow::ComputeResidual(const CConfig* confi if (implicit) { auto addGridJacobian = [&](su2double **Jac, su2double rho, const su2double *vel, su2double h, su2double T, su2double cp) { - const su2double dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); + const auto dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); const su2double factor = 0.5*ProjVelocity; Jac[0][nDim+1] -= factor*dRhodh; for (iDim = 0; iDim < nDim; iDim++) { @@ -258,7 +258,7 @@ CNumerics::ResidualType<> CCentLaxInc_Flow::ComputeResidual(const CConfig* confi CCentJSTInc_Flow::CCentJSTInc_Flow(unsigned short val_nDim, unsigned short val_nVar, const CConfig* config) : CNumerics(val_nDim, val_nVar, config) { implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT); - variable_density = (config->GetVariable_Density_Model()); + variable_density = config->GetVariable_Density_Model(); energy = config->GetEnergy_Equation(); /* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */ dynamic_grid = config->GetDynamic_Grid(); @@ -417,7 +417,7 @@ CNumerics::ResidualType<> CCentJSTInc_Flow::ComputeResidual(const CConfig* confi if (implicit) { auto addGridJacobian = [&](su2double **Jac, su2double rho, const su2double *vel, su2double h, su2double T, su2double cp) { - const su2double dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); + const auto dRhodh = variable_density ? su2double(-rho / (T * cp)) : su2double(0.0); const su2double factor = 0.5*ProjVelocity; Jac[0][nDim+1] -= factor*dRhodh; for (iDim = 0; iDim < nDim; iDim++) { diff --git a/UnitTests/Common/CConfig_tests.cpp b/UnitTests/Common/CConfig_tests.cpp index 111918785545..20a34724fadc 100644 --- a/UnitTests/Common/CConfig_tests.cpp +++ b/UnitTests/Common/CConfig_tests.cpp @@ -87,3 +87,17 @@ TEST_CASE("INIT_OPTION_INC defaults", "[Config]") { INIT_OPTION_INC::OPERATING_PRESSURE); CHECK(GetInitOptionInc(ideal_gas_options + "INIT_OPTION_INC= DENSITY_INIT\n") == INIT_OPTION_INC::DENSITY_INIT); } + +TEST_CASE("Supported multigrid levels are retained", "[Config][MultigridLimits]") { + for (const auto levels : {0, 10}) { + std::stringstream options(base_options + "MGLEVEL= " + std::to_string(levels) + "\n"); + CConfig config(options, SU2_COMPONENT::SU2_CFD, false); + CHECK(config.GetnMGLevels() == levels); + } +} + +TEST_CASE("Excessive multigrid levels are rejected", "[.MultigridLimitError]") { + std::stringstream options(base_options + "MGLEVEL= 11\n"); + CConfig config(options, SU2_COMPONENT::SU2_CFD, false); + FAIL("An unsupported multigrid hierarchy was accepted."); +} diff --git a/UnitTests/Common/check_multigrid_limits.py b/UnitTests/Common/check_multigrid_limits.py new file mode 100644 index 000000000000..5070fdaed3cc --- /dev/null +++ b/UnitTests/Common/check_multigrid_limits.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +"""Check the fatal configuration diagnostic in its own process.""" +import subprocess +import sys + +result = subprocess.run( + [sys.argv[1], "[.MultigridLimitError]"], capture_output=True, text=True, timeout=30 +) +expected = "MGLEVEL must be between 0 and 10" +if result.returncode == 0 or expected not in result.stdout + result.stderr: + raise RuntimeError( + "Unsupported MGLEVEL did not fail with its diagnostic:\n" + + result.stdout + + result.stderr + ) +print("PASS: MGLEVEL=11 is rejected with its supported range") diff --git a/UnitTests/meson.build b/UnitTests/meson.build index 46a9c9b3cbbc..de7945480f08 100644 --- a/UnitTests/meson.build +++ b/UnitTests/meson.build @@ -53,6 +53,8 @@ if get_option('enable-tests') cpp_args: ['-fPIC', default_warning_flags, su2_cpp_args] ) test('Catch2 test driver', test_driver) + test('Multigrid configuration limits', python, + args: files('Common/check_multigrid_limits.py') + [test_driver.full_path()]) test('NEMO convergence field migration', python, args: files('SU2_CFD/output/check_nemo_convergence_migration.py') + [test_driver.full_path()], timeout: 300) From 27fc17589a63258d16db9589bc58df540b313355 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Mon, 12 Oct 2026 22:28:44 +0200 Subject: [PATCH 11/14] Separate the HLLC Jacobian option and keep verification access private --- Common/include/CConfig.hpp | 4 +++ Common/src/CConfig.cpp | 4 ++- .../include/numerics/flow/convection/hllc.hpp | 30 +++---------------- SU2_CFD/src/numerics/flow/convection/hllc.cpp | 12 +++----- UnitTests/Common/CConfig_tests.cpp | 16 ++++++++++ .../SU2_CFD/numerics/hllc_jacobian_tests.cpp | 19 ++++++++---- config_template.cfg | 5 +++- 7 files changed, 49 insertions(+), 41 deletions(-) diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index 9d4920c871b0..183ecde303af 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -607,6 +607,7 @@ class CConfig { MUSCL_Kappa_Heat, /*!< \brief Blending coefficient for U-MUSCL scheme for the (fvm) heat equation.*/ MUSCL_Kappa_AdjFlow, /*!< \brief Blending coefficient for U-MUSCL scheme for the adj flow equations.*/ MUSCL_Kappa_Species; /*!< \brief Blending coefficient for U-MUSCL scheme for the species equations.*/ + bool Use_Exact_HLLC_Jacobians; /*!< \brief Exact HLLC Jacobians with wave speeds held fixed. */ bool Use_Accurate_Jacobians; /*!< \brief Use numerically computed Jacobians for AUSM+up(2) and SLAU(2). */ bool Use_Accurate_Turb_Jacobians; /*!< \brief Use numerically computed Jacobians for standard SA turbulence model. */ bool EulerPersson; /*!< \brief Boolean to determine whether this is an Euler simulation with Persson shock capturing. */ @@ -4800,6 +4801,9 @@ class CConfig { */ bool GetUse_Accurate_Jacobians(void) const { return Use_Accurate_Jacobians; } + /*!\brief Get whether to use exact HLLC Jacobians with wave speeds held fixed. */ + bool GetUse_Exact_HLLC_Jacobians(void) const { return Use_Exact_HLLC_Jacobians; } + /*! * \brief Get whether to "Use Accurate Jacobians" for Standard SA turbulence model. * \return yes/no. diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index be485288aaf0..81fb736ce20d 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -2176,8 +2176,10 @@ void CConfig::SetConfig_Options() { addDoubleArrayOption("JST_SENSOR_COEFF", 2, false, jst_coeff); /*!\brief LAX_SENSOR_COEFF \n DESCRIPTION: 1st order artificial dissipation coefficients for the Lax-Friedrichs method. \ingroup Config*/ addDoubleOption("LAX_SENSOR_COEFF", Kappa_1st_Flow, 0.15); - /*!\brief USE_ACCURATE_FLUX_JACOBIANS \n DESCRIPTION: Use numerically computed Jacobians for AUSM+up(2) and SLAU(2), exact Jacobians (for fixed wave speeds) for HLLC \ingroup Config*/ + /*!\brief USE_ACCURATE_FLUX_JACOBIANS \n DESCRIPTION: Use numerically computed Jacobians for AUSM+up(2) and SLAU(2) \ingroup Config*/ addBoolOption("USE_ACCURATE_FLUX_JACOBIANS", Use_Accurate_Jacobians, false); + /*!\brief USE_EXACT_HLLC_JACOBIANS \n DESCRIPTION: Exact HLLC Jacobians with wave speeds held fixed \ingroup Config*/ + addBoolOption("USE_EXACT_HLLC_JACOBIANS", Use_Exact_HLLC_Jacobians, false); /*!\brief CENTRAL_JACOBIAN_FIX_FACTOR \n DESCRIPTION: Improve the numerical properties (diagonal dominance) of the global Jacobian matrix, 3 to 4 is "optimum" (central schemes) \ingroup Config*/ addDoubleOption("CENTRAL_JACOBIAN_FIX_FACTOR", Cent_Jac_Fix_Factor, 4.0); /*!\brief CENTRAL_JACOBIAN_FIX_FACTOR \n DESCRIPTION: Control numerical properties of the global Jacobian matrix using a multiplication factor for incompressible central schemes \ingroup Config*/ diff --git a/SU2_CFD/include/numerics/flow/convection/hllc.hpp b/SU2_CFD/include/numerics/flow/convection/hllc.hpp index 29f7ce727a34..8684862fa520 100644 --- a/SU2_CFD/include/numerics/flow/convection/hllc.hpp +++ b/SU2_CFD/include/numerics/flow/convection/hllc.hpp @@ -38,8 +38,9 @@ */ class CUpwHLLC_Flow final : public CNumerics { private: + friend struct HLLCJacobianTestAccess; bool implicit, dynamic_grid; - bool useAccurateJacobian; /*!< \brief Jacobians computed exactly for fixed wave speeds (USE_ACCURATE_FLUX_JACOBIANS). */ + bool useAccurateJacobian; /*!< \brief Jacobians computed exactly for fixed wave speeds (USE_EXACT_HLLC_JACOBIANS). */ unsigned short iDim, jDim, iVar, jVar; su2double *IntermediateState; @@ -81,19 +82,6 @@ class CUpwHLLC_Flow final : public CNumerics { * \return A lightweight const-view (read-only) of the residual/flux and Jacobians. */ ResidualType<> ComputeResidual(const CConfig* config) override; - - /*! - * \brief Fix the left and right wave speeds (relative to the face), for the verification of the Jacobians, which - * treat them as constants. - * \param[in] active - Use the fixed values. - * \param[in] val_sL, val_sR - Left and right wave speeds. - */ - inline void SetFixedWaveSpeeds(bool active, su2double val_sL, su2double val_sR) { - fixedWaveSpeeds = active; - fixed_sL = val_sL; - fixed_sR = val_sR; - } - }; /*! @@ -105,8 +93,9 @@ class CUpwHLLC_Flow final : public CNumerics { */ class CUpwGeneralHLLC_Flow final : public CNumerics { private: + friend struct HLLCJacobianTestAccess; bool implicit, dynamic_grid; - bool useAccurateJacobian; /*!< \brief Jacobians computed exactly for fixed wave speeds (USE_ACCURATE_FLUX_JACOBIANS). */ + bool useAccurateJacobian; /*!< \brief Jacobians computed exactly for fixed wave speeds (USE_EXACT_HLLC_JACOBIANS). */ unsigned short iDim, jDim, iVar, jVar; su2double *IntermediateState; @@ -150,17 +139,6 @@ class CUpwGeneralHLLC_Flow final : public CNumerics { */ ResidualType<> ComputeResidual(const CConfig* config) override; - /*! - * \brief Fix the left and right wave speeds (relative to the face), for the verification of the Jacobians, which - * treat them as constants. - * \param[in] active - Use the fixed values. - * \param[in] val_sL, val_sR - Left and right wave speeds. - */ - inline void SetFixedWaveSpeeds(bool active, su2double val_sL, su2double val_sR) { - fixedWaveSpeeds = active; - fixed_sL = val_sL; - fixed_sR = val_sR; - } /*! * \brief Compute the Average quantities for a general fluid flux between two nodes i and j. diff --git a/SU2_CFD/src/numerics/flow/convection/hllc.cpp b/SU2_CFD/src/numerics/flow/convection/hllc.cpp index 2e315d6a1d91..131ee5b65fa7 100644 --- a/SU2_CFD/src/numerics/flow/convection/hllc.cpp +++ b/SU2_CFD/src/numerics/flow/convection/hllc.cpp @@ -80,7 +80,7 @@ CUpwHLLC_Flow::CUpwHLLC_Flow(unsigned short val_nDim, unsigned short val_nVar, c /* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */ dynamic_grid = config->GetDynamic_Grid(); - useAccurateJacobian = config->GetUse_Accurate_Jacobians(); + useAccurateJacobian = config->GetUse_Exact_HLLC_Jacobians(); Gamma = config->GetGamma(); @@ -292,13 +292,11 @@ CNumerics::ResidualType<> CUpwHLLC_Flow::ComputeResidual(const CConfig* config) /*--- Jacobians for the wave speeds held fixed (in the frame of the face). p* = rho_j (u_j - sR)(u_j - sM) + p_j = rho_i (u_i - sL)(u_i - sM) + p_i, so its derivative contains rho_j (sR - u_j) dsM/dU (or rho_i (sL - u_i) dsM/dU). By default the density of the other state is kept, as in the previous implementation (an inexact transcription - of the reference, see #2198). USE_ACCURATE_FLUX_JACOBIANS= YES gives the exact derivative. ---*/ + of the reference, see #2198). USE_EXACT_HLLC_JACOBIANS= YES gives the exact derivative. ---*/ const su2double rhoPStar_R = useAccurateJacobian ? Density_j : Density_i; const su2double rhoPStar_L = useAccurateJacobian ? Density_i : Density_j; - - if (sM > 0.0) { if (sL > 0.0) { @@ -597,7 +595,7 @@ CUpwGeneralHLLC_Flow::CUpwGeneralHLLC_Flow(unsigned short val_nDim, unsigned sho /* A grid is defined as dynamic if there's rigid grid movement or grid deformation AND the problem is time domain */ dynamic_grid = config->GetDynamic_Grid(); - useAccurateJacobian = config->GetUse_Accurate_Jacobians(); + useAccurateJacobian = config->GetUse_Exact_HLLC_Jacobians(); Gamma = config->GetGamma(); @@ -837,13 +835,11 @@ CNumerics::ResidualType<> CUpwGeneralHLLC_Flow::ComputeResidual(const CConfig* c /*--- Jacobians for the wave speeds held fixed (in the frame of the face). p* = rho_j (u_j - sR)(u_j - sM) + p_j = rho_i (u_i - sL)(u_i - sM) + p_i, so its derivative contains rho_j (sR - u_j) dsM/dU (or rho_i (sL - u_i) dsM/dU). By default the density of the other state is kept, as in the previous implementation (an inexact transcription - of the reference, see #2198). USE_ACCURATE_FLUX_JACOBIANS= YES gives the exact derivative. ---*/ + of the reference, see #2198). USE_EXACT_HLLC_JACOBIANS= YES gives the exact derivative. ---*/ const su2double rhoPStar_R = useAccurateJacobian ? Density_j : Density_i; const su2double rhoPStar_L = useAccurateJacobian ? Density_i : Density_j; - - if (sM > 0.0) { if (sL > 0.0) { diff --git a/UnitTests/Common/CConfig_tests.cpp b/UnitTests/Common/CConfig_tests.cpp index 20a34724fadc..2dfe8b65cf70 100644 --- a/UnitTests/Common/CConfig_tests.cpp +++ b/UnitTests/Common/CConfig_tests.cpp @@ -101,3 +101,19 @@ TEST_CASE("Excessive multigrid levels are rejected", "[.MultigridLimitError]") { CConfig config(options, SU2_COMPONENT::SU2_CFD, false); FAIL("An unsupported multigrid hierarchy was accepted."); } + +TEST_CASE("HLLC and AUSM SLAU Jacobian options are independent", "[Config][HLLCOptions]") { + for (const auto accurate : {false, true}) { + for (const auto exactHLLC : {false, true}) { + std::stringstream options(base_options + "USE_ACCURATE_FLUX_JACOBIANS= " + (accurate ? "YES" : "NO") + + "\nUSE_EXACT_HLLC_JACOBIANS= " + (exactHLLC ? "YES" : "NO") + "\n"); + CConfig config(options, SU2_COMPONENT::SU2_CFD, false); + CHECK(config.GetUse_Accurate_Jacobians() == accurate); + CHECK(config.GetUse_Exact_HLLC_Jacobians() == exactHLLC); + } + } + std::stringstream options(base_options); + CConfig config(options, SU2_COMPONENT::SU2_CFD, false); + CHECK_FALSE(config.GetUse_Accurate_Jacobians()); + CHECK_FALSE(config.GetUse_Exact_HLLC_Jacobians()); +} diff --git a/UnitTests/SU2_CFD/numerics/hllc_jacobian_tests.cpp b/UnitTests/SU2_CFD/numerics/hllc_jacobian_tests.cpp index b03edb3f1414..fc36c6cc9eba 100644 --- a/UnitTests/SU2_CFD/numerics/hllc_jacobian_tests.cpp +++ b/UnitTests/SU2_CFD/numerics/hllc_jacobian_tests.cpp @@ -1,7 +1,7 @@ /*! * \file hllc_jacobian_tests.cpp * \brief Finite-difference verification of the HLLC Jacobians (ideal and general gas, 2D and 3D), on fixed and moving - * faces, exact (USE_ACCURATE_FLUX_JACOBIANS) or default. + * faces, exact (USE_EXACT_HLLC_JACOBIANS) or default. * \version 8.5.0 "Harrier" * * SU2 Project Website: https://su2code.github.io @@ -32,6 +32,15 @@ #include #include "../../../SU2_CFD/include/numerics/flow/convection/hllc.hpp" +struct HLLCJacobianTestAccess { + template + static void SetFixedWaveSpeeds(Numerics& numerics, su2double sL, su2double sR) { + numerics.fixedWaveSpeeds = true; + numerics.fixed_sL = sL; + numerics.fixed_sR = sR; + } +}; + namespace { constexpr su2double gamma = 1.4; @@ -142,12 +151,12 @@ su2double ContactSpeed(unsigned short nDim, const State& Ui, const State& Uj, su std::unique_ptr MakeConfig(bool moving, bool accurate) { std::stringstream options; options << "SOLVER= EULER\nCONV_NUM_METHOD_FLOW= HLLC\nTIME_DISCRE_FLOW= EULER_IMPLICIT\n"; - options << "USE_ACCURATE_FLUX_JACOBIANS= " << (accurate ? "YES" : "NO") << "\n"; + options << "USE_EXACT_HLLC_JACOBIANS= " << (accurate ? "YES" : "NO") << "\n"; if (moving) options << "GRID_MOVEMENT= STEADY_TRANSLATION\nTRANSLATION_RATE= 0.0 0.0 0.0\n"; return std::make_unique(options, SU2_COMPONENT::SU2_CFD, false); } -/*--- With USE_ACCURATE_FLUX_JACOBIANS= YES the Jacobians are exact for fixed wave speeds in all branches. By default +/*--- With USE_EXACT_HLLC_JACOBIANS= YES the Jacobians are exact for fixed wave speeds in all branches. By default the derivative of p* is approximated (star states), the supersonic branches remain exact. ---*/ template void CheckAllBranches(unsigned short nDim, bool moving, su2double k, bool accurate) { @@ -186,7 +195,7 @@ void CheckAllBranches(unsigned short nDim, bool moving, su2double k, bool accura const su2double supersonicSpeeds[2] = {dir > 0 ? 0.02 : -2.0, dir > 0 ? 2.0 : -0.02}; const su2double starSpeeds[2] = {-2.0, 2.0}; for (const auto* s : {supersonicSpeeds, starSpeeds}) { - numerics.SetFixedWaveSpeeds(true, s[0], s[1]); + HLLCJacobianTestAccess::SetFixedWaveSpeeds(numerics, s[0], s[1]); const bool supersonic = (s[0] > 0.0) || (s[1] < 0.0); const su2double sM = ContactSpeed(nDim, Ui, Uj, k, 0.8 * k, n, w, s[0], s[1]); CAPTURE(nDim, moving, k, accurate, dir, s[0], s[1], sM); @@ -235,7 +244,7 @@ TEST_CASE("HLLC supersonic Jacobian uses reconstructed face enthalpy", "[HLLC-fa } numerics.SetNormal(normal); numerics.SetGridVel(gridVelocity, gridVelocity); - numerics.SetFixedWaveSpeeds(true, direction > 0 ? 2.0 : -4.0, direction > 0 ? 4.0 : -2.0); + HLLCJacobianTestAccess::SetFixedWaveSpeeds(numerics, direction > 0 ? 2.0 : -4.0, direction > 0 ? 4.0 : -2.0); const State state = Conservative(nDim, 1.2, velocity, 1.1, 0.0); for (su2double pressureOffset : {0.0, 0.1}) { auto evaluate = [&](const State& Ui, const State& Uj) { diff --git a/config_template.cfg b/config_template.cfg index 0d58bc62727a..8795186ab3d9 100644 --- a/config_template.cfg +++ b/config_template.cfg @@ -1856,9 +1856,12 @@ LOW_MACH_PREC= NO % % Use numerically computed Jacobians for AUSM+up(2) and SLAU(2) % Slower per iteration but potentialy more stable and capable of higher CFL -% For HLLC: exact Jacobians for fixed wave speeds (the default approximation is more robust with inexact linear solves) USE_ACCURATE_FLUX_JACOBIANS= NO % +% Use exact HLLC Jacobians with wave speeds held fixed (NO, YES). +% The default retains the previous approximation; wave-speed derivatives are omitted in both modes. +USE_EXACT_HLLC_JACOBIANS= NO +% % Use the vectorized version of the selected numerical method (available for JST family and Roe). % SU2 should be compiled for an AVX or AVX512 architecture for best performance. % NOTE: Currently vectorization always used for schemes that support it. From 815aa5c610e5d0b6bb10086b4cf8a62a327ba5d1 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Mon, 12 Oct 2026 22:28:45 +0200 Subject: [PATCH 12/14] Use deduced types for Roe entropy wave strengths --- SU2_CFD/src/numerics/flow/convection/roe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SU2_CFD/src/numerics/flow/convection/roe.cpp b/SU2_CFD/src/numerics/flow/convection/roe.cpp index 37c697515cfb..3fd23d644584 100644 --- a/SU2_CFD/src/numerics/flow/convection/roe.cpp +++ b/SU2_CFD/src/numerics/flow/convection/roe.cpp @@ -336,7 +336,7 @@ void CUpwL2Roe_Flow::FinalizeResidual(su2double *val_residual, su2double **val_J } else { /*--- The first three columns of the 3D P matrix combine the entropy wave (weighted by the normal) with the shear waves, so their strengths are n_j (Delta rho - Delta p / c^2) + (Delta u x n)_j. ---*/ - const su2double delta_entropy = delta_rho - delta_p/RoeSoundSpeed2; + const auto delta_entropy = delta_rho - delta_p/RoeSoundSpeed2; delta_wave[0] = UnitNormal[0]*delta_entropy + (delta_vel[1]*UnitNormal[2]-delta_vel[2]*UnitNormal[1])*zeta; delta_wave[1] = UnitNormal[1]*delta_entropy + (delta_vel[2]*UnitNormal[0]-delta_vel[0]*UnitNormal[2])*zeta; delta_wave[2] = UnitNormal[2]*delta_entropy + (delta_vel[0]*UnitNormal[1]-delta_vel[1]*UnitNormal[0])*zeta; @@ -412,7 +412,7 @@ void CUpwLMRoe_Flow::FinalizeResidual(su2double *val_residual, su2double **val_J } else { /*--- The first three columns of the 3D P matrix combine the entropy wave (weighted by the normal) with the shear waves, so their strengths are n_j (Delta rho - Delta p / c^2) + (Delta u x n)_j. ---*/ - const su2double delta_entropy = delta_rho - delta_p/RoeSoundSpeed2; + const auto delta_entropy = delta_rho - delta_p/RoeSoundSpeed2; delta_wave[0] = UnitNormal[0]*delta_entropy + (delta_vel[1]*UnitNormal[2]-delta_vel[2]*UnitNormal[1]); delta_wave[1] = UnitNormal[1]*delta_entropy + (delta_vel[2]*UnitNormal[0]-delta_vel[0]*UnitNormal[2]); delta_wave[2] = UnitNormal[2]*delta_entropy + (delta_vel[0]*UnitNormal[1]-delta_vel[1]*UnitNormal[0]); @@ -909,7 +909,7 @@ CNumerics::ResidualType<> CUpwGeneralRoe_Flow::ComputeResidual(const CConfig* co } else { /*--- The first three columns of the 3D P matrix combine the entropy wave (weighted by the normal) with the shear waves, so their strengths are n_j (Delta rho - Delta p / c^2) + (Delta u x n)_j. ---*/ - const su2double delta_entropy = delta_rho - delta_p/(RoeSoundSpeed*RoeSoundSpeed); + const auto delta_entropy = delta_rho - delta_p/(RoeSoundSpeed*RoeSoundSpeed); delta_wave[0] = UnitNormal[0]*delta_entropy + delta_vel[1]*UnitNormal[2]-delta_vel[2]*UnitNormal[1]; delta_wave[1] = UnitNormal[1]*delta_entropy + delta_vel[2]*UnitNormal[0]-delta_vel[0]*UnitNormal[2]; delta_wave[2] = UnitNormal[2]*delta_entropy + delta_vel[0]*UnitNormal[1]-delta_vel[1]*UnitNormal[0]; From 05187b6b09560a549b11ac8c90dcbd41c2cd7059 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Thu, 22 Oct 2026 09:44:45 +0200 Subject: [PATCH 13/14] Update the reference values from the CI Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013YFdgQwrRqCQ2ihG446aNe --- TestCases/hybrid_regression.py | 30 ++++++++++++------------- TestCases/hybrid_regression_AD.py | 2 +- TestCases/parallel_regression.py | 34 ++++++++++++++--------------- TestCases/parallel_regression_AD.py | 4 ++-- TestCases/serial_regression.py | 34 ++++++++++++++--------------- TestCases/serial_regression_AD.py | 4 ++-- 6 files changed, 54 insertions(+), 54 deletions(-) diff --git a/TestCases/hybrid_regression.py b/TestCases/hybrid_regression.py index c545a84a8eba..60e5c01fbc7f 100644 --- a/TestCases/hybrid_regression.py +++ b/TestCases/hybrid_regression.py @@ -265,7 +265,7 @@ def main(): axi_rans_air_nozzle_restart.cfg_dir = "axisymmetric_rans/air_nozzle" axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 - axi_rans_air_nozzle_restart.test_vals = [-5.068875, 0.504406, -2.840213, 1.705449, 0.000000] + axi_rans_air_nozzle_restart.test_vals = [-5.069624, 0.505288, -2.816368, 1.728267, 0.000000] axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.140441, -9.154674, -10.886121, -5.806594, 0.000000] test_list.append(axi_rans_air_nozzle_restart) @@ -340,7 +340,7 @@ def main(): harmonic_balance.cfg_dir = "harmonic_balance" harmonic_balance.cfg_file = "HB.cfg" harmonic_balance.test_iter = 25 - harmonic_balance.test_vals = [-1.559187, 0.829574, 0.931511, 3.954440] + harmonic_balance.test_vals = [-1.556450, 0.840516, 0.943600, 3.957290] test_list.append(harmonic_balance) # Turbulent pitching NACA 64a010 airfoil @@ -510,7 +510,7 @@ def main(): sine_gust.cfg_dir = "gust" sine_gust.cfg_file = "inv_gust_NACA0012.cfg" sine_gust.test_iter = 5 - sine_gust.test_vals = [-1.977498, 3.481817, -0.010724, -0.005369] + sine_gust.test_vals = [-1.977498, 3.481833, -0.012152, -0.004132] sine_gust.unsteady = True test_list.append(sine_gust) @@ -519,7 +519,7 @@ def main(): cosine_gust.cfg_dir = "gust" cosine_gust.cfg_file = "cosine_gust_zdir.cfg" cosine_gust.test_iter = 79 - cosine_gust.test_vals = [-2.418805, 0.002212, -0.001249, 0.000439, -0.000592] + cosine_gust.test_vals = [-2.418805, 0.003015, -0.001242, 0.000500, -0.000592] cosine_gust.unsteady = True cosine_gust.enabled_with_tsan = False test_list.append(cosine_gust) @@ -529,7 +529,7 @@ def main(): gust_mesh_defo.cfg_dir = "gust" gust_mesh_defo.cfg_file = "gust_with_mesh_deformation.cfg" gust_mesh_defo.test_iter = 6 - gust_mesh_defo.test_vals = [-1.844761, 0.001290, -0.000316] + gust_mesh_defo.test_vals = [-1.844761, 0.001449, -0.000344] gust_mesh_defo.unsteady = True gust_mesh_defo.enabled_with_tsan = False test_list.append(gust_mesh_defo) @@ -539,7 +539,7 @@ def main(): aeroelastic.cfg_dir = "aeroelastic" aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" aeroelastic.test_iter = 2 - aeroelastic.test_vals = [-1.876632, 4.021071, 0.080087, 0.027953, -0.001641, -0.000127, -1.052229] + aeroelastic.test_vals = [-1.876631, 4.021081, 0.082286, 0.026921, -0.001638, -0.000130, -1.019527] aeroelastic.unsteady = True aeroelastic.enabled_on_cpu_arch = ["x86_64"] # Requires AVX-capable architecture test_list.append(aeroelastic) @@ -558,7 +558,7 @@ def main(): unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" unst_inc_turb_naca0015_sa.test_iter = 1 - unst_inc_turb_naca0015_sa.test_vals = [-3.008640, -6.889022, 1.435181, 0.433567] + unst_inc_turb_naca0015_sa.test_vals = [-3.007258, -6.887901, 1.435511, 0.433955] unst_inc_turb_naca0015_sa.unsteady = True test_list.append(unst_inc_turb_naca0015_sa) @@ -567,7 +567,7 @@ def main(): unst_deforming_naca0012.cfg_dir = "disc_adj_euler/naca0012_pitching_def" unst_deforming_naca0012.cfg_file = "inv_NACA0012_pitching_deform.cfg" unst_deforming_naca0012.test_iter = 5 - unst_deforming_naca0012.test_vals = [-3.666867, -3.796806, -3.719022, -3.150288] + unst_deforming_naca0012.test_vals = [-3.666017, -3.794928, -3.717606, -3.149231] unst_deforming_naca0012.unsteady = True unst_deforming_naca0012.enabled_with_tsan = False test_list.append(unst_deforming_naca0012) @@ -640,7 +640,7 @@ def main(): uniform_flow.cfg_dir = "sliding_interface/uniform_flow" uniform_flow.cfg_file = "uniform_NN.cfg" uniform_flow.test_iter = 5 - uniform_flow.test_vals = [5.000000, 0.000000, -0.195002, -10.624453] + uniform_flow.test_vals = [5.000000, 0.000000, -0.193990, -10.624443] uniform_flow.unsteady = True uniform_flow.multizone = True test_list.append(uniform_flow) @@ -659,7 +659,7 @@ def main(): channel_2D.cfg_dir = "sliding_interface/channel_2D" channel_2D.cfg_file = "channel_2D_WA.cfg" channel_2D.test_iter = 2 - channel_2D.test_vals = [2.000000, 0.000000, 0.466339, 0.346858, 0.397486] + channel_2D.test_vals = [2.000000, 0.000000, 0.399109, 0.350302, 0.405582] channel_2D.unsteady = True channel_2D.multizone = True test_list.append(channel_2D) @@ -681,7 +681,7 @@ def main(): pipe.cfg_dir = "sliding_interface/pipe" pipe.cfg_file = "pipe_NN.cfg" pipe.test_iter = 2 - pipe.test_vals = [0.070225, 0.528891, 0.684177, 0.970350, 1.065268] + pipe.test_vals = [0.024970, 0.452310, 0.562858, 0.974611, 1.031083] pipe.unsteady = True pipe.multizone = True test_list.append(pipe) @@ -691,7 +691,7 @@ def main(): rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" rotating_cylinders.test_iter = 3 - rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686432, 1.159463, 1.151135] + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686419, 1.152596, 1.145896] rotating_cylinders.unsteady = True rotating_cylinders.multizone = True test_list.append(rotating_cylinders) @@ -701,7 +701,7 @@ def main(): supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" supersonic_vortex_shedding.test_iter = 5 - supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.126036, 1.081765] + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064252] supersonic_vortex_shedding.unsteady = True supersonic_vortex_shedding.multizone = True test_list.append(supersonic_vortex_shedding) @@ -752,7 +752,7 @@ def main(): fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" fsi2d.cfg_file = "configFSI.cfg" fsi2d.test_iter = 4 - fsi2d.test_vals = [4.000000, 0.000000, -3.726029, -4.277532] + fsi2d.test_vals = [4.000000, 0.000000, -3.725535, -4.278762] fsi2d.multizone= True fsi2d.unsteady = True fsi2d.enabled_with_tsan = False @@ -763,7 +763,7 @@ def main(): dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" dyn_fsi.cfg_file = "config.cfg" dyn_fsi.test_iter = 4 - dyn_fsi.test_vals = [-4.330727, -4.152808, 0.000000, 102.000000] + dyn_fsi.test_vals = [-4.328791, -4.152991, 0.000000, 103.000000] dyn_fsi.multizone = True dyn_fsi.unsteady = True test_list.append(dyn_fsi) diff --git a/TestCases/hybrid_regression_AD.py b/TestCases/hybrid_regression_AD.py index b2086915f9df..6a693812d903 100644 --- a/TestCases/hybrid_regression_AD.py +++ b/TestCases/hybrid_regression_AD.py @@ -188,7 +188,7 @@ def main(): discadj_pitchingNACA0012.cfg_dir = "disc_adj_euler/naca0012_pitching" discadj_pitchingNACA0012.cfg_file = "inv_NACA0012_pitching.cfg" discadj_pitchingNACA0012.test_iter = 4 - discadj_pitchingNACA0012.test_vals = [-1.041975, -1.513011, -0.006202, 0.000012] + discadj_pitchingNACA0012.test_vals = [-1.128086, -1.582652, -0.006613, 0.000011] discadj_pitchingNACA0012.tol = 0.01 discadj_pitchingNACA0012.unsteady = True discadj_pitchingNACA0012.enabled_with_tsan = False diff --git a/TestCases/parallel_regression.py b/TestCases/parallel_regression.py index 64c9c7b2195d..855c7d2f8cc8 100755 --- a/TestCases/parallel_regression.py +++ b/TestCases/parallel_regression.py @@ -660,7 +660,7 @@ def main(): axi_rans_air_nozzle_restart.cfg_dir = "axisymmetric_rans/air_nozzle" axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 - axi_rans_air_nozzle_restart.test_vals = [-5.144760, 0.426779, -2.900513, 1.606061, 0.000000] + axi_rans_air_nozzle_restart.test_vals = [-5.130654, 0.443770, -2.934019, 1.603840, 0.000000] axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.143310, -9.163287, -10.858232, -5.787715, 0.000000] axi_rans_air_nozzle_restart.tol = 0.0001 test_list.append(axi_rans_air_nozzle_restart) @@ -713,7 +713,7 @@ def main(): inc_nozzle.cfg_dir = "incomp_euler/nozzle" inc_nozzle.cfg_file = "inv_nozzle.cfg" inc_nozzle.test_iter = 20 - inc_nozzle.test_vals = [-6.051005, -5.361765, 0.006999, 0.127295] + inc_nozzle.test_vals = [-6.357399, -5.618580, 0.004548, 0.126243] test_list.append(inc_nozzle) # Laminar wall mounted cylinder, Euler walls, cylinder wall diagonally split @@ -1154,7 +1154,7 @@ def main(): harmonic_balance.cfg_dir = "harmonic_balance" harmonic_balance.cfg_file = "HB.cfg" harmonic_balance.test_iter = 25 - harmonic_balance.test_vals = [-1.559187, 0.829575, 0.931512, 3.954440] + harmonic_balance.test_vals = [-1.556449, 0.840517, 0.943602, 3.957291] test_list.append(harmonic_balance) # Turbulent pitching NACA 64a010 airfoil @@ -1175,7 +1175,7 @@ def main(): rot_naca0012.cfg_dir = "rotating/naca0012" rot_naca0012.cfg_file = "rot_NACA0012.cfg" rot_naca0012.test_iter = 25 - rot_naca0012.test_vals = [-0.023360, 0.082942, 2.000000, -1.182142] + rot_naca0012.test_vals = [-0.028757, 0.058709, 2.000000, -1.147370] test_list.append(rot_naca0012) # Lid-driven cavity @@ -1225,7 +1225,7 @@ def main(): sine_gust.cfg_dir = "gust" sine_gust.cfg_file = "inv_gust_NACA0012.cfg" sine_gust.test_iter = 5 - sine_gust.test_vals = [-1.977498, 3.481817, -0.011360, -0.005241] + sine_gust.test_vals = [-1.977498, 3.481833, -0.013388, -0.003910] sine_gust.unsteady = True test_list.append(sine_gust) @@ -1254,7 +1254,7 @@ def main(): unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" unst_inc_turb_naca0015_sa.test_iter = 1 - unst_inc_turb_naca0015_sa.test_vals = [-3.004011, -6.876257, 1.487888, 0.421869] + unst_inc_turb_naca0015_sa.test_vals = [-3.002783, -6.875096, 1.487783, 0.421690] unst_inc_turb_naca0015_sa.unsteady = True test_list.append(unst_inc_turb_naca0015_sa) @@ -1369,7 +1369,7 @@ def main(): uniform_flow.cfg_dir = "sliding_interface/uniform_flow" uniform_flow.cfg_file = "uniform_NN.cfg" uniform_flow.test_iter = 5 - uniform_flow.test_vals = [5.000000, 0.000000, -0.195001, -10.624448] + uniform_flow.test_vals = [5.000000, 0.000000, -0.193989, -10.624451] uniform_flow.unsteady = True uniform_flow.multizone = True test_list.append(uniform_flow) @@ -1387,7 +1387,7 @@ def main(): channel_2D.cfg_dir = "sliding_interface/channel_2D" channel_2D.cfg_file = "channel_2D_WA.cfg" channel_2D.test_iter = 2 - channel_2D.test_vals = [2.000000, 0.000000, 0.466408, 0.346806, 0.397328] + channel_2D.test_vals = [2.000000, 0.000000, 0.399141, 0.350260, 0.405570] channel_2D.timeout = 100 channel_2D.unsteady = True channel_2D.multizone = True @@ -1409,7 +1409,7 @@ def main(): pipe.cfg_dir = "sliding_interface/pipe" pipe.cfg_file = "pipe_NN.cfg" pipe.test_iter = 2 - pipe.test_vals = [0.070225, 0.528893, 0.684173, 0.970355, 1.065262] + pipe.test_vals = [0.024970, 0.452312, 0.562852, 0.974613, 1.031075] pipe.unsteady = True pipe.multizone = True test_list.append(pipe) @@ -1419,7 +1419,7 @@ def main(): rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" rotating_cylinders.test_iter = 3 - rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686431, 1.159459, 1.151139] + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686417, 1.152593, 1.145900] rotating_cylinders.unsteady = True rotating_cylinders.multizone = True test_list.append(rotating_cylinders) @@ -1429,7 +1429,7 @@ def main(): supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" supersonic_vortex_shedding.test_iter = 5 - supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.126036, 1.081775] + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064262] supersonic_vortex_shedding.unsteady = True supersonic_vortex_shedding.multizone = True test_list.append(supersonic_vortex_shedding) @@ -1538,7 +1538,7 @@ def main(): fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" fsi2d.cfg_file = "configFSI.cfg" fsi2d.test_iter = 4 - fsi2d.test_vals = [4, 0, -3.726013, -4.277529] + fsi2d.test_vals = [4.000000, 0.000000, -3.725519, -4.278760] fsi2d.command = TestCase.Command(exec = "parallel_computation_fsi.py", param = "-f") fsi2d.multizone= True fsi2d.unsteady = True @@ -1549,7 +1549,7 @@ def main(): dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" dyn_fsi.cfg_file = "config.cfg" dyn_fsi.test_iter = 4 - dyn_fsi.test_vals = [-4.330741, -4.152826, 0.000000, 75.000000] + dyn_fsi.test_vals = [-4.328805, -4.153009, 0.000000, 75.000000] dyn_fsi.multizone = True dyn_fsi.unsteady = True test_list.append(dyn_fsi) @@ -1660,7 +1660,7 @@ def main(): pywrapper_aeroelastic.cfg_dir = "aeroelastic" pywrapper_aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" pywrapper_aeroelastic.test_iter = 2 - pywrapper_aeroelastic.test_vals = [-1.876636, 4.021064, 0.080986, 0.027812, -0.001643, -0.000126, -0.965663] + pywrapper_aeroelastic.test_vals = [-1.876625, 4.021088, 0.083361, 0.026765, -0.001638, -0.000130, -0.947102] pywrapper_aeroelastic.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--parallel -f") pywrapper_aeroelastic.unsteady = True test_list.append(pywrapper_aeroelastic) @@ -1679,7 +1679,7 @@ def main(): pywrapper_fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" pywrapper_fsi2d.cfg_file = "configFSI.cfg" pywrapper_fsi2d.test_iter = 4 - pywrapper_fsi2d.test_vals = [4.000000, 0.000000, -3.726013, -4.277529] + pywrapper_fsi2d.test_vals = [4.000000, 0.000000, -3.725519, -4.278760] pywrapper_fsi2d.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--nZone 2 --fsi True --parallel -f") pywrapper_fsi2d.unsteady = True pywrapper_fsi2d.multizone = True @@ -1690,7 +1690,7 @@ def main(): pywrapper_unsteadyFSI.cfg_dir = "py_wrapper/dyn_fsi" pywrapper_unsteadyFSI.cfg_file = "config.cfg" pywrapper_unsteadyFSI.test_iter = 4 - pywrapper_unsteadyFSI.test_vals = [0, 31, 5, 47, -1.756677, -2.828286, -7.638545, -6.863930, 0.000156] + pywrapper_unsteadyFSI.test_vals = [0.000000, 30.000000, 5.000000, 48.000000, -1.756676, -2.828284, -7.625018, -6.863923, 0.000156] pywrapper_unsteadyFSI.command = TestCase.Command("mpirun -np 2", "python", "run.py") pywrapper_unsteadyFSI.unsteady = True pywrapper_unsteadyFSI.multizone = True @@ -1721,7 +1721,7 @@ def main(): pywrapper_deformingBump.cfg_dir = "py_wrapper/deforming_bump_in_channel" pywrapper_deformingBump.cfg_file = "config.cfg" pywrapper_deformingBump.test_iter = 1 - pywrapper_deformingBump.test_vals = [0.500000, 0.000000, -2.556310, -1.270841, -2.350592, 2.606850, 8.015020, -0.301652] + pywrapper_deformingBump.test_vals = [0.500000, 0.000000, -2.556310, -1.270836, -2.351316, 2.905858, 9.953163, -0.946408] pywrapper_deformingBump.command = TestCase.Command("mpirun -np 2", "python", "run.py") pywrapper_deformingBump.unsteady = True test_list.append(pywrapper_deformingBump) diff --git a/TestCases/parallel_regression_AD.py b/TestCases/parallel_regression_AD.py index 99e31c3124a0..ebd1193f4b0c 100644 --- a/TestCases/parallel_regression_AD.py +++ b/TestCases/parallel_regression_AD.py @@ -150,7 +150,7 @@ def main(): discadj_axisymmetric_rans_nozzle.cfg_dir = "axisymmetric_rans/air_nozzle" discadj_axisymmetric_rans_nozzle.cfg_file = "air_nozzle_restart.cfg" discadj_axisymmetric_rans_nozzle.test_iter = 10 - discadj_axisymmetric_rans_nozzle.test_vals = [9.742490, 5.136585, 7.107742, 2.488366] + discadj_axisymmetric_rans_nozzle.test_vals = [9.738854, 5.135195, 7.108430, 2.487299] discadj_axisymmetric_rans_nozzle.no_restart = True test_list.append(discadj_axisymmetric_rans_nozzle) @@ -217,7 +217,7 @@ def main(): discadj_pitchingNACA0012.cfg_dir = "disc_adj_euler/naca0012_pitching" discadj_pitchingNACA0012.cfg_file = "inv_NACA0012_pitching.cfg" discadj_pitchingNACA0012.test_iter = 4 - discadj_pitchingNACA0012.test_vals = [-1.039711, -1.508402, -0.006059, 0.000012] + discadj_pitchingNACA0012.test_vals = [-1.115587, -1.573317, -0.006474, 0.000010] discadj_pitchingNACA0012.tol = 0.01 discadj_pitchingNACA0012.unsteady = True test_list.append(discadj_pitchingNACA0012) diff --git a/TestCases/serial_regression.py b/TestCases/serial_regression.py index dccf3b6a8a4f..eb6c08d5ffc4 100755 --- a/TestCases/serial_regression.py +++ b/TestCases/serial_regression.py @@ -375,7 +375,7 @@ def main(): axi_rans_air_nozzle_restart.cfg_dir = "axisymmetric_rans/air_nozzle" axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 - axi_rans_air_nozzle_restart.test_vals = [-5.135350, 0.436347, -2.878865, 1.663300, 0.000000] + axi_rans_air_nozzle_restart.test_vals = [-5.121517, 0.452804, -2.910659, 1.662143, 0.000000] axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.143715, -9.170705, -10.848554, -5.776746, 0.000000] axi_rans_air_nozzle_restart.tol = 0.0001 test_list.append(axi_rans_air_nozzle_restart) @@ -385,7 +385,7 @@ def main(): axi_rans_air_nozzle_species.cfg_dir = "axisymmetric_rans/air_nozzle" axi_rans_air_nozzle_species.cfg_file = "air_nozzle_species.cfg" axi_rans_air_nozzle_species.test_iter = 10 - axi_rans_air_nozzle_species.test_vals = [-2.243181, 3.273075, -1.958732, 5.883857, -2.469621, 0.000000] + axi_rans_air_nozzle_species.test_vals = [-2.148980, 3.342062, -1.939182, 5.883411, -2.443141, 0.000000] axi_rans_air_nozzle_species.tol = 0.0001 test_list.append(axi_rans_air_nozzle_species) @@ -798,7 +798,7 @@ def main(): harmonic_balance.cfg_dir = "harmonic_balance" harmonic_balance.cfg_file = "HB.cfg" harmonic_balance.test_iter = 25 - harmonic_balance.test_vals = [-1.559187, 0.829575, 0.931512, 3.954440] + harmonic_balance.test_vals = [-1.556449, 0.840517, 0.943602, 3.957291] test_list.append(harmonic_balance) # Turbulent pitching NACA 64a010 airfoil @@ -818,7 +818,7 @@ def main(): rot_naca0012.cfg_dir = "rotating/naca0012" rot_naca0012.cfg_file = "rot_NACA0012.cfg" rot_naca0012.test_iter = 25 - rot_naca0012.test_vals = [-1.240352, 4.268727, -0.022164, 0.083891, 2.000000, -1.253214] + rot_naca0012.test_vals = [-1.281757, 4.222928, -0.027656, 0.059256, 2.000000, -1.218300] test_list.append(rot_naca0012) # Lid-driven cavity @@ -855,7 +855,7 @@ def main(): sine_gust.cfg_dir = "gust" sine_gust.cfg_file = "inv_gust_NACA0012.cfg" sine_gust.test_iter = 5 - sine_gust.test_vals = [-1.977498, 3.481817, -0.010871, -0.005083] + sine_gust.test_vals = [-1.977498, 3.481833, -0.012952, -0.003623] sine_gust.unsteady = True test_list.append(sine_gust) @@ -864,7 +864,7 @@ def main(): aeroelastic.cfg_dir = "aeroelastic" aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" aeroelastic.test_iter = 2 - aeroelastic.test_vals = [-1.876632, 4.021072, 0.080240, 0.027935, -0.001641, -0.000127, -1.133898] + aeroelastic.test_vals = [-1.876630, 4.021083, 0.082484, 0.026820, -0.001638, -0.000129, -1.081133] aeroelastic.unsteady = True test_list.append(aeroelastic) @@ -882,7 +882,7 @@ def main(): unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" unst_inc_turb_naca0015_sa.test_iter = 1 - unst_inc_turb_naca0015_sa.test_vals = [-3.007635, -6.879816, 1.445300, 0.419281] + unst_inc_turb_naca0015_sa.test_vals = [-3.005435, -6.878657, 1.445291, 0.420526] unst_inc_turb_naca0015_sa.unsteady = True test_list.append(unst_inc_turb_naca0015_sa) # unsteady pitching NACA64A010, RANS, SA @@ -898,7 +898,7 @@ def main(): unst_pitching_naca64a010_euler.cfg_dir = "unsteady/pitching_naca64a010_euler" unst_pitching_naca64a010_euler.cfg_file = "pitching_NACA64A010.cfg" unst_pitching_naca64a010_euler.test_iter = 2 - unst_pitching_naca64a010_euler.test_vals = [-1.186839, 4.280301, -0.039724, 0.000927] + unst_pitching_naca64a010_euler.test_vals = [-1.186839, 4.280671, -0.026619, 0.000937] unst_pitching_naca64a010_euler.unsteady = True test_list.append(unst_pitching_naca64a010_euler) # unsteady plunging NACA0012, Laminar NS @@ -915,7 +915,7 @@ def main(): unst_deforming_naca0012.cfg_dir = "disc_adj_euler/naca0012_pitching_def" unst_deforming_naca0012.cfg_file = "inv_NACA0012_pitching_deform.cfg" unst_deforming_naca0012.test_iter = 5 - unst_deforming_naca0012.test_vals = [-3.667005, -3.796733, -3.719112, -3.150401] + unst_deforming_naca0012.test_vals = [-3.666074, -3.794974, -3.717659, -3.149285] unst_deforming_naca0012.unsteady = True test_list.append(unst_deforming_naca0012) @@ -1012,7 +1012,7 @@ def main(): uniform_flow.cfg_dir = "sliding_interface/uniform_flow" uniform_flow.cfg_file = "uniform_NN.cfg" uniform_flow.test_iter = 2 - uniform_flow.test_vals = [2.000000, 0.000000, -0.230639, -13.250208] + uniform_flow.test_vals = [2.000000, 0.000000, -0.230680, -13.251592] uniform_flow.test_vals_aarch64 = [2.000000, 0.000000, -0.230641, -13.249000] uniform_flow.tol = 0.000001 uniform_flow.unsteady = True @@ -1033,7 +1033,7 @@ def main(): channel_2D.cfg_dir = "sliding_interface/channel_2D" channel_2D.cfg_file = "channel_2D_WA.cfg" channel_2D.test_iter = 2 - channel_2D.test_vals = [2.000000, 0.000000, 0.466389, 0.346857, 0.397472] + channel_2D.test_vals = [2.000000, 0.000000, 0.399122, 0.350309, 0.405616] channel_2D.timeout = 100 channel_2D.unsteady = True channel_2D.multizone = True @@ -1056,7 +1056,7 @@ def main(): pipe.cfg_dir = "sliding_interface/pipe" pipe.cfg_file = "pipe_NN.cfg" pipe.test_iter = 2 - pipe.test_vals = [0.528897, 0.684175, 0.970353, 1.065262] + pipe.test_vals = [0.452310, 0.562852, 0.974610, 1.031075] pipe.unsteady = True pipe.multizone = True test_list.append(pipe) @@ -1066,7 +1066,7 @@ def main(): rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" rotating_cylinders.test_iter = 3 - rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686432, 1.159461, 1.151134] + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686419, 1.152594, 1.145895] rotating_cylinders.unsteady = True rotating_cylinders.multizone = True test_list.append(rotating_cylinders) @@ -1076,7 +1076,7 @@ def main(): supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" supersonic_vortex_shedding.test_iter = 5 - supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.126036, 1.081775] + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064261] supersonic_vortex_shedding.unsteady = True supersonic_vortex_shedding.multizone = True test_list.append(supersonic_vortex_shedding) @@ -1154,7 +1154,7 @@ def main(): fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" fsi2d.cfg_file = "configFSI.cfg" fsi2d.test_iter = 4 - fsi2d.test_vals = [4, 0, -3.726015, -4.277528] + fsi2d.test_vals = [4.000000, 0.000000, -3.725521, -4.278759] fsi2d.multizone = True fsi2d.unsteady = True test_list.append(fsi2d) @@ -1173,7 +1173,7 @@ def main(): dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" dyn_fsi.cfg_file = "config.cfg" dyn_fsi.test_iter = 4 - dyn_fsi.test_vals = [-4.330728, -4.152820, 0.000000, 85.000000] + dyn_fsi.test_vals = [-4.328792, -4.153004, 0.000000, 86.000000] dyn_fsi.multizone = True dyn_fsi.unsteady = True test_list.append(dyn_fsi) @@ -1716,7 +1716,7 @@ def main(): pywrapper_fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" pywrapper_fsi2d.cfg_file = "configFSI.cfg" pywrapper_fsi2d.test_iter = 4 - pywrapper_fsi2d.test_vals = [4, 0, -3.726015, -4.277528] + pywrapper_fsi2d.test_vals = [4.000000, 0.000000, -3.725521, -4.278759] pywrapper_fsi2d.command = TestCase.Command(exec = "SU2_CFD.py", param = "--nZone 2 --fsi True -f") pywrapper_fsi2d.unsteady = True pywrapper_fsi2d.multizone = True diff --git a/TestCases/serial_regression_AD.py b/TestCases/serial_regression_AD.py index 288f8a47efd3..83e768e954e8 100644 --- a/TestCases/serial_regression_AD.py +++ b/TestCases/serial_regression_AD.py @@ -158,7 +158,7 @@ def main(): discadj_pitchingNACA0012.cfg_dir = "disc_adj_euler/naca0012_pitching" discadj_pitchingNACA0012.cfg_file = "inv_NACA0012_pitching.cfg" discadj_pitchingNACA0012.test_iter = 4 - discadj_pitchingNACA0012.test_vals = [-1.057526, -1.512609, -0.004842, 0.000013] + discadj_pitchingNACA0012.test_vals = [-1.138369, -1.575068, -0.005301, 0.000003] discadj_pitchingNACA0012.unsteady = True test_list.append(discadj_pitchingNACA0012) @@ -167,7 +167,7 @@ def main(): unst_deforming_naca0012.cfg_dir = "disc_adj_euler/naca0012_pitching_def" unst_deforming_naca0012.cfg_file = "inv_NACA0012_pitching_deform_ad.cfg" unst_deforming_naca0012.test_iter = 4 - unst_deforming_naca0012.test_vals = [-1.874283, -1.768562, 4274.000000, 0.000003] + unst_deforming_naca0012.test_vals = [-1.875062, -1.766683, 4307.900000, 0.000003] unst_deforming_naca0012.unsteady = True test_list.append(unst_deforming_naca0012) From 649d7a9cbdf6abecd577ace59eedc98caca435c5 Mon Sep 17 00:00:00 2001 From: rois1995 Date: Thu, 29 Oct 2026 20:00:42 +0100 Subject: [PATCH 14/14] Restore regression files after develop merge --- TestCases/hybrid_regression.py | 605 ++++++++++ TestCases/parallel_regression.py | 1678 +++++++++++++++++++++++++++ TestCases/parallel_regression_AD.py | 481 ++++++++ TestCases/serial_regression.py | 1410 ++++++++++++++++++++++ 4 files changed, 4174 insertions(+) diff --git a/TestCases/hybrid_regression.py b/TestCases/hybrid_regression.py index 0efa08ae05de..86bac9c010c7 100644 --- a/TestCases/hybrid_regression.py +++ b/TestCases/hybrid_regression.py @@ -266,3 +266,608 @@ def main(): axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 axi_rans_air_nozzle_restart.test_vals = [-5.069624, 0.505288, -2.816368, 1.728267, 0.000000] + axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.140441, -9.154674, -10.886121, -5.806594, 0.000000] + test_list.append(axi_rans_air_nozzle_restart) + + ################################# + ## Compressible RANS Restart ### + ################################# + + # NACA0012 SST Multigrid restart + turb_naca0012_sst_restart_mg = TestCase('turb_naca0012_sst_restart_mg') + turb_naca0012_sst_restart_mg.cfg_dir = "rans/naca0012" + turb_naca0012_sst_restart_mg.cfg_file = "turb_NACA0012_sst_multigrid_restart.cfg" + turb_naca0012_sst_restart_mg.test_iter = 20 + turb_naca0012_sst_restart_mg.ntest_vals = 5 + turb_naca0012_sst_restart_mg.test_vals = [-6.551665, -5.057150, 0.830240, -0.008811, 0.078187] + test_list.append(turb_naca0012_sst_restart_mg) + + ############################# + ### Compressibele RANS UQ ### + ############################# + + # NACA0012 1c + turb_naca0012_1c = TestCase('turb_naca0012_1c') + turb_naca0012_1c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_1c.cfg_file = "turb_NACA0012_uq_1c.cfg" + turb_naca0012_1c.test_iter = 10 + turb_naca0012_1c.test_vals = [-4.978722, 1.343530, 0.443909, -0.029125] + turb_naca0012_1c.test_vals_aarch64 = [-4.976620, 1.345983, 0.433171, -0.033685] + test_list.append(turb_naca0012_1c) + + # NACA0012 2c + turb_naca0012_2c = TestCase('turb_naca0012_2c') + turb_naca0012_2c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_2c.cfg_file = "turb_NACA0012_uq_2c.cfg" + turb_naca0012_2c.test_iter = 10 + turb_naca0012_2c.test_vals = [-5.482844, 1.260870, 0.404376, -0.040361] + turb_naca0012_2c.test_vals_aarch64 = [-5.485484, 1.263406, 0.411442, -0.040859] + test_list.append(turb_naca0012_2c) + + # NACA0012 3c + turb_naca0012_3c = TestCase('turb_naca0012_3c') + turb_naca0012_3c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_3c.cfg_file = "turb_NACA0012_uq_3c.cfg" + turb_naca0012_3c.test_iter = 10 + turb_naca0012_3c.test_vals = [-5.583730, 1.228732, 0.381967, -0.046233] + turb_naca0012_3c.test_vals_aarch64 = [-5.583737, 1.232005, 0.390258, -0.046305] + test_list.append(turb_naca0012_3c) + + # NACA0012 p1c1 + turb_naca0012_p1c1 = TestCase('turb_naca0012_p1c1') + turb_naca0012_p1c1.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c1.cfg_file = "turb_NACA0012_uq_p1c1.cfg" + turb_naca0012_p1c1.test_iter = 10 + turb_naca0012_p1c1.test_vals = [-5.134181, 1.283464, 0.553971, 0.011916] + turb_naca0012_p1c1.test_vals_aarch64 = [-5.114189, 1.285037, 0.406851, -0.043003] + test_list.append(turb_naca0012_p1c1) + + # NACA0012 p1c2 + turb_naca0012_p1c2 = TestCase('turb_naca0012_p1c2') + turb_naca0012_p1c2.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c2.cfg_file = "turb_NACA0012_uq_p1c2.cfg" + turb_naca0012_p1c2.test_iter = 10 + turb_naca0012_p1c2.test_vals = [-5.553988, 1.234031, 0.424168, -0.033501] + turb_naca0012_p1c2.test_vals_aarch64 = [-5.548245, 1.236384, 0.381821, -0.050337] + test_list.append(turb_naca0012_p1c2) + + ###################################### + ### Harmonic Balance ### + ###################################### + + # Description of the regression test + harmonic_balance = TestCase('harmonic_balance') + harmonic_balance.cfg_dir = "harmonic_balance" + harmonic_balance.cfg_file = "HB.cfg" + harmonic_balance.test_iter = 25 + harmonic_balance.test_vals = [-1.556450, 0.840516, 0.943600, 3.957290] + test_list.append(harmonic_balance) + + # Turbulent pitching NACA 64a010 airfoil + hb_rans_preconditioning = TestCase('hb_rans_preconditioning') + hb_rans_preconditioning.cfg_dir = "harmonic_balance/hb_rans_preconditioning" + hb_rans_preconditioning.cfg_file = "davis.cfg" + hb_rans_preconditioning.test_iter = 25 + hb_rans_preconditioning.test_vals = [-1.905523, 0.482128, 0.598472, 3.605108, -5.946081] + test_list.append(hb_rans_preconditioning) + + ############################# + ### Incompressible Euler ### + ############################# + + # NACA0012 Hydrofoil + inc_euler_naca0012 = TestCase('inc_euler_naca0012') + inc_euler_naca0012.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012.cfg_file = "incomp_NACA0012.cfg" + inc_euler_naca0012.test_iter = 20 + inc_euler_naca0012.test_vals = [-6.668256, -5.851153, 0.531532, 0.008487] + test_list.append(inc_euler_naca0012) + + # NACA0012 Hydrofoil, pressure-based. Exercises the OpenMP path of the Poisson + # solver's boundary flux corrections (inlet, far-field, pressure outlet). + inc_euler_naca0012_pb = TestCase('inc_euler_naca0012_pb') + inc_euler_naca0012_pb.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012_pb.cfg_file = "incomp_pb_NACA0012.cfg" + inc_euler_naca0012_pb.test_iter = 20 + inc_euler_naca0012_pb.test_vals = [-4.454835, -4.784268, 0.427448, 0.012084] + test_list.append(inc_euler_naca0012_pb) + + # Laminar cylinder, pressure-based. Viscous counterpart of the hydrofoil above, so the + # threaded momentum and Rhie-Chow stages run with wall markers present. + inc_lam_cylinder_pb = TestCase('inc_lam_cylinder_pb') + inc_lam_cylinder_pb.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder_pb.cfg_file = "incomp_pb_cylinder.cfg" + inc_lam_cylinder_pb.test_iter = 10 + inc_lam_cylinder_pb.test_vals = [-3.486562, -3.776813, 0.012619, 6.205610] + test_list.append(inc_lam_cylinder_pb) + + # Laminar sphere, pressure-based. The only 3D pressure-based case, and the one where the + # alpha_p reduction sums over a different set of Jacobian diagonals per thread. + inc_lam_sphere_pb = TestCase('inc_lam_sphere_pb') + inc_lam_sphere_pb.cfg_dir = "incomp_navierstokes/sphere" + inc_lam_sphere_pb.cfg_file = "pb_sphere.cfg" + inc_lam_sphere_pb.test_iter = 9 + inc_lam_sphere_pb.test_vals = [-6.104969, -2.307895, -2.481829, -2.570423, 0.189098, 170.764342, -6.128569] + test_list.append(inc_lam_sphere_pb) + + # Heated cylinder, pressure-based, coupled energy equation and variable density. + inc_poly_cylinder_pb = TestCase('inc_poly_cylinder_pb') + inc_poly_cylinder_pb.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder_pb.cfg_file = "pb_poly_cylinder.cfg" + inc_poly_cylinder_pb.test_iter = 20 + inc_poly_cylinder_pb.test_vals = [-9.564374, -3.013394, 0.000161, 1.778555, -172.280000] + test_list.append(inc_poly_cylinder_pb) + + # C-D nozzle with pressure inlet and mass flow outlet + inc_nozzle = TestCase('inc_nozzle') + inc_nozzle.cfg_dir = "incomp_euler/nozzle" + inc_nozzle.cfg_file = "inv_nozzle.cfg" + inc_nozzle.test_iter = 20 + inc_nozzle.test_vals = [-6.121917, -5.432144, 0.000056, 0.125551] + test_list.append(inc_nozzle) + + ############################# + ### Incompressible N-S ### + ############################# + + # Laminar cylinder + inc_lam_cylinder = TestCase('inc_lam_cylinder') + inc_lam_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder.cfg_file = "incomp_cylinder.cfg" + inc_lam_cylinder.test_iter = 10 + inc_lam_cylinder.test_vals = [-4.814160, -5.008238, 0.001269, 3.114987] + test_list.append(inc_lam_cylinder) + + # Buoyancy-driven cavity + inc_buoyancy = TestCase('inc_buoyancy') + inc_buoyancy.cfg_dir = "incomp_navierstokes/buoyancy_cavity" + inc_buoyancy.cfg_file = "lam_buoyancy_cavity.cfg" + inc_buoyancy.test_iter = 20 + inc_buoyancy.test_vals = [-3.860465, -3.122402, 1.322722, -23.413000] + test_list.append(inc_buoyancy) + + # Laminar heated cylinder with polynomial fluid model + inc_poly_cylinder = TestCase('inc_poly_cylinder') + inc_poly_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder.cfg_file = "poly_cylinder.cfg" + inc_poly_cylinder.test_iter = 20 + inc_poly_cylinder.test_vals = [-8.230355, -2.426276, 0.018487, 1.902089, -173.000000] + inc_poly_cylinder.test_vals_aarch64 = [-8.260165, -2.445453, 0.027209, 1.915447, -171.620000] + test_list.append(inc_poly_cylinder) + + # X-coarse laminar bend as a mixed element CGNS test + inc_lam_bend = TestCase('inc_lam_bend') + inc_lam_bend.cfg_dir = "incomp_navierstokes/bend" + inc_lam_bend.cfg_file = "lam_bend.cfg" + inc_lam_bend.test_iter = 10 + inc_lam_bend.test_vals = [-3.558795, -3.051040, -0.014118, 1.101254] + test_list.append(inc_lam_bend) + + ############################ + ### Incompressible RANS ### + ############################ + + # NACA0012, SA + inc_turb_naca0012 = TestCase('inc_turb_naca0012') + inc_turb_naca0012.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012.cfg_file = "naca0012.cfg" + inc_turb_naca0012.test_iter = 20 + inc_turb_naca0012.test_vals = [-4.758114, -10.974548, -0.000006, -0.028637, 4.000000, -4.016988, 2.000000, -4.487046] + test_list.append(inc_turb_naca0012) + + # NACA0012, SST_SUST + inc_turb_naca0012_sst_sust = TestCase('inc_turb_naca0012_sst_sust') + inc_turb_naca0012_sst_sust.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012_sst_sust.cfg_file = "naca0012_SST_SUST.cfg" + inc_turb_naca0012_sst_sust.test_iter = 20 + inc_turb_naca0012_sst_sust.test_vals = [-7.170018, 0.332638, 0.000002, 0.312117] + test_list.append(inc_turb_naca0012_sst_sust) + + # Weakly coupled heat equation + inc_weakly_coupled = TestCase('inc_weakly_coupled') + inc_weakly_coupled.cfg_dir = "disc_adj_heat" + inc_weakly_coupled.cfg_file = "primal.cfg" + inc_weakly_coupled.test_iter = 10 + inc_weakly_coupled.test_vals = [-18.106270, -16.302974, -16.484882, -15.006575, -17.858050, -14.024836, 5.609100] + test_list.append(inc_weakly_coupled) + + ###################################### + ### Moving Wall ### + ###################################### + + # Lid-driven cavity + cavity = TestCase('cavity') + cavity.cfg_dir = "moving_wall/cavity" + cavity.cfg_file = "lam_cavity.cfg" + cavity.test_iter = 25 + cavity.test_vals = [-7.887109, -2.429088, 0.013598, 0.005372] + test_list.append(cavity) + + # Spinning cylinder + spinning_cylinder = TestCase('spinning_cylinder') + spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder" + spinning_cylinder.cfg_file = "spinning_cylinder.cfg" + spinning_cylinder.test_iter = 25 + spinning_cylinder.test_vals = [-7.614070, -2.155206, 1.804022, 1.893004] + spinning_cylinder.test_vals_aarch64 = [-8.008023, -2.611064, 1.497308, 1.487483] + test_list.append(spinning_cylinder) + + ###################################### + ### Unsteady ### + ###################################### + + # Square cylinder + square_cylinder = TestCase('square_cylinder') + square_cylinder.cfg_dir = "unsteady/square_cylinder" + square_cylinder.cfg_file = "turb_square.cfg" + square_cylinder.test_iter = 3 + square_cylinder.test_vals = [-2.560678, -1.175981, 0.062204, 1.399351, 2.219223, 1.399297, 2.217470, 0.000000] + square_cylinder.unsteady = True + test_list.append(square_cylinder) + + # Gust + sine_gust = TestCase('sine_gust') + sine_gust.cfg_dir = "gust" + sine_gust.cfg_file = "inv_gust_NACA0012.cfg" + sine_gust.test_iter = 5 + sine_gust.test_vals = [-1.977498, 3.481833, -0.012152, -0.004132] + sine_gust.unsteady = True + test_list.append(sine_gust) + + # Cosine gust in z-direction + cosine_gust = TestCase('cosine_gust_zdir') + cosine_gust.cfg_dir = "gust" + cosine_gust.cfg_file = "cosine_gust_zdir.cfg" + cosine_gust.test_iter = 79 + cosine_gust.test_vals = [-2.418805, 0.003015, -0.001242, 0.000500, -0.000592] + cosine_gust.unsteady = True + cosine_gust.enabled_with_tsan = False + test_list.append(cosine_gust) + + # Gust with mesh deformation + gust_mesh_defo = TestCase('gust_with_mesh_deformation') + gust_mesh_defo.cfg_dir = "gust" + gust_mesh_defo.cfg_file = "gust_with_mesh_deformation.cfg" + gust_mesh_defo.test_iter = 6 + gust_mesh_defo.test_vals = [-1.844761, 0.001449, -0.000344] + gust_mesh_defo.unsteady = True + gust_mesh_defo.enabled_with_tsan = False + test_list.append(gust_mesh_defo) + + # Aeroelastic + aeroelastic = TestCase('aeroelastic') + aeroelastic.cfg_dir = "aeroelastic" + aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" + aeroelastic.test_iter = 2 + aeroelastic.test_vals = [-1.876631, 4.021081, 0.082286, 0.026921, -0.001638, -0.000130, -1.019527] + aeroelastic.unsteady = True + aeroelastic.enabled_on_cpu_arch = ["x86_64"] # Requires AVX-capable architecture + test_list.append(aeroelastic) + + # Delayed Detached Eddy Simulation + ddes_flatplate = TestCase('ddes_flatplate') + ddes_flatplate.cfg_dir = "ddes/flatplate" + ddes_flatplate.cfg_file = "ddes_flatplate.cfg" + ddes_flatplate.test_iter = 10 + ddes_flatplate.test_vals = [-2.714713, -5.763299, -0.214960, 0.023758, 0.000000] + ddes_flatplate.unsteady = True + test_list.append(ddes_flatplate) + + # unsteady pitching NACA0015, SA + unst_inc_turb_naca0015_sa = TestCase('unst_inc_turb_naca0015_sa') + unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" + unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" + unst_inc_turb_naca0015_sa.test_iter = 1 + unst_inc_turb_naca0015_sa.test_vals = [-3.007258, -6.887901, 1.435511, 0.433955] + unst_inc_turb_naca0015_sa.unsteady = True + test_list.append(unst_inc_turb_naca0015_sa) + + # unsteady pitching NACA0012, Euler, Deforming + unst_deforming_naca0012 = TestCase('unst_deforming_naca0012') + unst_deforming_naca0012.cfg_dir = "disc_adj_euler/naca0012_pitching_def" + unst_deforming_naca0012.cfg_file = "inv_NACA0012_pitching_deform.cfg" + unst_deforming_naca0012.test_iter = 5 + unst_deforming_naca0012.test_vals = [-3.666017, -3.794928, -3.717606, -3.149231] + unst_deforming_naca0012.unsteady = True + unst_deforming_naca0012.enabled_with_tsan = False + test_list.append(unst_deforming_naca0012) + + ###################################### + ### NICFD ### + ###################################### + + # Rarefaction shock wave edge_VW + edge_VW = TestCase('edge_VW') + edge_VW.cfg_dir = "nicf/edge" + edge_VW.cfg_file = "edge_VW.cfg" + edge_VW.test_iter = 25 + edge_VW.test_vals = [-11.723086, -5.536517, -0.000009, 0.000000] + test_list.append(edge_VW) + + # Rarefaction shock wave edge_PPR + edge_PPR = TestCase('edge_PPR') + edge_PPR.cfg_dir = "nicf/edge" + edge_PPR.cfg_file = "edge_PPR.cfg" + edge_PPR.test_iter = 20 + edge_PPR.test_vals = [-10.993286, -4.827527, -0.000034, 0.000000] + edge_PPR.test_vals_aarch64 = [ -7.139211, -0.980821, -0.000034, 0.000000] + test_list.append(edge_PPR) + + ###################################### + ### Turbomachinery ### + ###################################### + + # Jones APU Turbocharger restart + Jones_tc_restart = TestCase('jones_turbocharger_restart') + Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger" + Jones_tc_restart.cfg_file = "Jones_restart.cfg" + Jones_tc_restart.test_iter = 5 + Jones_tc_restart.test_vals = [-11.959253, -12.213612, -19.314223, -13.600253, -19.077186, -13.444728, 73286.000000, 73286.000000, 0.020056, 82.286000] + test_list.append(Jones_tc_restart) + + # 2D axial stage + axial_stage2D = TestCase('axial_stage2D') + axial_stage2D.cfg_dir = "turbomachinery/axial_stage_2D" + axial_stage2D.cfg_file = "Axial_stage2D.cfg" + axial_stage2D.test_iter = 20 + axial_stage2D.test_vals = [1.167512, 1.598494, -2.928579, 2.573642, -2.527390, 3.016171, 106370.000000, 106370.000000, 5.726800, 64.383000] + test_list.append(axial_stage2D) + + # 2D transonic stator restart + transonic_stator_restart = TestCase('transonic_stator_restart') + transonic_stator_restart.cfg_dir = "turbomachinery/transonic_stator_2D" + transonic_stator_restart.cfg_file = "transonic_stator_restart.cfg" + transonic_stator_restart.test_iter = 20 + transonic_stator_restart.test_vals = [-4.367144, -2.487733, -2.079075, 1.728173, -1.464952, 3.225025, -471620.000000, 94.839000, -0.051124] + transonic_stator_restart.test_vals_aarch64 = [-4.442510, -2.561369, -2.165778, 1.652750, -1.355494, 3.172712, -471620.000000, 94.843000, -0.043825] + test_list.append(transonic_stator_restart) + + # Multiple turbomachinery interface restart + multi_interface = TestCase('multi_interface') + multi_interface.cfg_dir = "turbomachinery/multi_interface" + multi_interface.cfg_file = "multi_interface_rst.cfg" + multi_interface.test_iter = 5 + multi_interface.test_vals = [-8.634571, -8.895558, -9.348754] + multi_interface.test_vals_aarch64 = [-8.632229, -8.894737, -9.348730] + test_list.append(multi_interface) + + ###################################### + ### Sliding Mesh ### + ###################################### + + # Uniform flow + uniform_flow = TestCase('uniform_flow') + uniform_flow.cfg_dir = "sliding_interface/uniform_flow" + uniform_flow.cfg_file = "uniform_NN.cfg" + uniform_flow.test_iter = 5 + uniform_flow.test_vals = [5.000000, 0.000000, -0.193990, -10.624443] + uniform_flow.unsteady = True + uniform_flow.multizone = True + test_list.append(uniform_flow) + + # Channel_2D, native SU2 binary mesh format (.su2b) + # channel_2D_WA.cfg loads channel_2D_su2bin.su2b directly, so SU2_DEF must + # first convert channel_2D.su2 (3 zones) into that binary mesh. + channel_2D_su2bin_convert = TestCase('channel_2D_su2bin_convert') + channel_2D_su2bin_convert.cfg_dir = "sliding_interface/channel_2D" + channel_2D_su2bin_convert.cfg_file = "mesh_su2_to_su2bin.cfg" + channel_2D_su2bin_convert.command = TestCase.Command(exec = "SU2_DEF") + channel_2D_su2bin_convert.timeout = 600 + test_list.append(channel_2D_su2bin_convert) + + channel_2D = TestCase('channel_2D') + channel_2D.cfg_dir = "sliding_interface/channel_2D" + channel_2D.cfg_file = "channel_2D_WA.cfg" + channel_2D.test_iter = 2 + channel_2D.test_vals = [2.000000, 0.000000, 0.399109, 0.350302, 0.405582] + channel_2D.unsteady = True + channel_2D.multizone = True + test_list.append(channel_2D) + + # Channel_3D + channel_3D = TestCase('channel_3D') + channel_3D.cfg_dir = "sliding_interface/channel_3D" + channel_3D.cfg_file = "channel_3D_WA.cfg" + channel_3D.test_iter = 2 + channel_3D.test_vals = [2.000000, 0.000000, 0.632749, 0.522745, 0.423269] + channel_3D.test_vals_aarch64 = [2.000000, 0.000000, 0.629112, 0.524948, 0.422396] + channel_3D.unsteady = True + channel_3D.multizone = True + channel_3D.enabled_with_tsan = False + test_list.append(channel_3D) + + # Pipe + pipe = TestCase('pipe') + pipe.cfg_dir = "sliding_interface/pipe" + pipe.cfg_file = "pipe_NN.cfg" + pipe.test_iter = 2 + pipe.test_vals = [0.024970, 0.452310, 0.562858, 0.974611, 1.031083] + pipe.unsteady = True + pipe.multizone = True + test_list.append(pipe) + + # Rotating cylinders + rotating_cylinders = TestCase('rotating_cylinders') + rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" + rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" + rotating_cylinders.test_iter = 3 + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686419, 1.152596, 1.145896] + rotating_cylinders.unsteady = True + rotating_cylinders.multizone = True + test_list.append(rotating_cylinders) + + # Supersonic vortex shedding + supersonic_vortex_shedding = TestCase('supersonic_vortex_shedding') + supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" + supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" + supersonic_vortex_shedding.test_iter = 5 + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064252] + supersonic_vortex_shedding.unsteady = True + supersonic_vortex_shedding.multizone = True + test_list.append(supersonic_vortex_shedding) + + # Bars_SST_2D + bars_SST_2D = TestCase('bars_SST_2D') + bars_SST_2D.cfg_dir = "sliding_interface/bars_SST_2D" + bars_SST_2D.cfg_file = "bars.cfg" + bars_SST_2D.test_iter = 13 + bars_SST_2D.test_vals = [13.000000, -0.455981, -1.541069] + bars_SST_2D.multizone = True + test_list.append(bars_SST_2D) + + # Sliding mesh with incompressible flows (steady) + slinc_steady = TestCase('slinc_steady') + slinc_steady.cfg_dir = "sliding_interface/incompressible_steady" + slinc_steady.cfg_file = "config.cfg" + slinc_steady.test_iter = 19 + slinc_steady.test_vals = [19.000000, -1.144102, -1.424986] + slinc_steady.test_vals_aarch64 = [19.000000, -1.154874, -1.378120] + slinc_steady.multizone = True + test_list.append(slinc_steady) + + ########################## + ### FEA - FSI ### + ########################## + + # Static beam, 3d + statbeam3d = TestCase('statbeam3d') + statbeam3d.cfg_dir = "fea_fsi/StatBeam_3d" + statbeam3d.cfg_file = "configBeam_3d.cfg" + statbeam3d.test_iter = 0 + statbeam3d.test_vals = [-2.862081, -1.795143, -2.380136, 110350.000000] + statbeam3d.test_vals_aarch64 = [-2.777602, -1.710976, -2.445072, 110350] + test_list.append(statbeam3d) + + # Dynamic beam, 2d + dynbeam2d = TestCase('dynbeam2d') + dynbeam2d.cfg_dir = "fea_fsi/DynBeam_2d" + dynbeam2d.cfg_file = "configBeam_2d.cfg" + dynbeam2d.test_iter = 6 + dynbeam2d.test_vals = [-3.240013, 2.895060, -0.353141, 76220] + dynbeam2d.unsteady = True + test_list.append(dynbeam2d) + + # FSI, 2d + fsi2d = TestCase('fsi2d') + fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" + fsi2d.cfg_file = "configFSI.cfg" + fsi2d.test_iter = 4 + fsi2d.test_vals = [4.000000, 0.000000, -3.725535, -4.278762] + fsi2d.multizone= True + fsi2d.unsteady = True + fsi2d.enabled_with_tsan = False + test_list.append(fsi2d) + + # FSI, Dynamic, 2D, new mesh solver + dyn_fsi = TestCase('dyn_fsi') + dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" + dyn_fsi.cfg_file = "config.cfg" + dyn_fsi.test_iter = 4 + dyn_fsi.test_vals = [-4.328791, -4.152991, 0.000000, 103.000000] + dyn_fsi.multizone = True + dyn_fsi.unsteady = True + test_list.append(dyn_fsi) + + # FSI+CHT, Static, 2D, new mesh solver, restart + fsi_cht_restart = TestCase('fsi_cht_restart') + fsi_cht_restart.cfg_dir = "fea_fsi/stat_fsi" + fsi_cht_restart.cfg_file = "config_restart.cfg" + fsi_cht_restart.test_iter = 0 + fsi_cht_restart.test_vals = [5.000000, 0.006352, -1.960362, -9.327033, -9.644570, -9.319618, 608.380000, -0.012974, 0.000000, 20.000000] + fsi_cht_restart.multizone = True + test_list.append(fsi_cht_restart) + + ############################################## + ### Method of Manufactured Solutions (MMS) ### + ############################################## + + # FVM, compressible, laminar N-S + mms_fvm_ns = TestCase('mms_fvm_ns') + mms_fvm_ns.cfg_dir = "mms/fvm_navierstokes" + mms_fvm_ns.cfg_file = "lam_mms_roe.cfg" + mms_fvm_ns.test_iter = 20 + mms_fvm_ns.test_vals = [-2.808514, 2.152654, 0.000000, 0.000000] + test_list.append(mms_fvm_ns) + + # FVM, incompressible, euler + mms_fvm_inc_euler = TestCase('mms_fvm_inc_euler') + mms_fvm_inc_euler.cfg_dir = "mms/fvm_incomp_euler" + mms_fvm_inc_euler.cfg_file = "inv_mms_jst.cfg" + mms_fvm_inc_euler.test_iter = 20 + mms_fvm_inc_euler.test_vals = [-9.128034, -9.441406, 0.000000, 0.000000] + mms_fvm_inc_euler.test_vals_aarch64 = [-9.128034, -9.441406, 0.000000, 0.000000] + test_list.append(mms_fvm_inc_euler) + + # FVM, incompressible, laminar N-S + mms_fvm_inc_ns = TestCase('mms_fvm_inc_ns') + mms_fvm_inc_ns.cfg_dir = "mms/fvm_incomp_navierstokes" + mms_fvm_inc_ns.cfg_file = "lam_mms_fds.cfg" + mms_fvm_inc_ns.test_iter = 20 + mms_fvm_inc_ns.test_vals = [-7.414944, -7.631546, 0.000000, 0.000000] + test_list.append(mms_fvm_inc_ns) + + ########################## + ### Python wrapper ### + ########################## + + # NACA0012 + pywrapper_translating_naca0012 = TestCase('pywrapper_translating_naca0012') + pywrapper_translating_naca0012.cfg_dir = "py_wrapper/translating_NACA0012" + pywrapper_translating_naca0012.cfg_file = "config.cfg" + pywrapper_translating_naca0012.command = TestCase.Command(exec = "python", param = "run_su2.py") + pywrapper_translating_naca0012.timeout = 60 + pywrapper_translating_naca0012.reference_file = "forces_0.csv.ref" + pywrapper_translating_naca0012.reference_file_aarch64 = "forces_0_aarch64.csv.ref" + pywrapper_translating_naca0012.test_file = "forces_0.csv" + pywrapper_translating_naca0012.tol_file_percent = 5.0 + pywrapper_translating_naca0012.enabled_on_cpu_arch = ["x86_64"] + pywrapper_translating_naca0012.enabled_with_tsan = False + file_diff_list.append(pywrapper_translating_naca0012) + + # NACA0012 with updated moving frame + pywrapper_updated_moving_frame_naca0012 = TestCase('pywrapper_updated_moving_frame_naca0012') + pywrapper_updated_moving_frame_naca0012.cfg_dir = "py_wrapper/updated_moving_frame_NACA12" + pywrapper_updated_moving_frame_naca0012.cfg_file = "config.cfg" + pywrapper_updated_moving_frame_naca0012.command = TestCase.Command(exec = "python", param = "run_su2.py") + pywrapper_updated_moving_frame_naca0012.timeout = 60 + pywrapper_updated_moving_frame_naca0012.reference_file = "forces_0.csv.ref" + pywrapper_updated_moving_frame_naca0012.reference_file_aarch64 = "forces_0_aarch64.csv.ref" + pywrapper_updated_moving_frame_naca0012.test_file = "forces_0.csv" + pywrapper_updated_moving_frame_naca0012.tol_file_percent = 5.0 + pywrapper_updated_moving_frame_naca0012.enabled_on_cpu_arch = ["x86_64"] + pywrapper_updated_moving_frame_naca0012.enabled_with_tsan = False + file_diff_list.append(pywrapper_updated_moving_frame_naca0012) + + ###################################### + ### RUN TESTS ### + ###################################### + + for test in test_list: + if test.command.empty(): + test.command = TestCase.Command(exec = "SU2_CFD", param = "-t 2") + if test.timeout == 0: + test.timeout = 600 + test.tol = 1e-4 + #end + + pass_list = [ test.run_test(args.tsan) for test in test_list ] + pass_list += [ test.run_filediff(args.tsan) for test in file_diff_list ] + + # Tests summary + print('==================================================================') + print('Summary of the hybrid parallel tests') + print('python version:', sys.version) + for i, test in enumerate(test_list+file_diff_list): + if (pass_list[i]): + print(' passed - %s'%test.tag) + else: + print('* FAILED - %s'%test.tag) + + if all(pass_list): + sys.exit(0) + else: + sys.exit(1) + # done + +if __name__ == '__main__': + main() diff --git a/TestCases/parallel_regression.py b/TestCases/parallel_regression.py index 590d9a10c252..603cce741de9 100755 --- a/TestCases/parallel_regression.py +++ b/TestCases/parallel_regression.py @@ -683,3 +683,1681 @@ def main(): axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 axi_rans_air_nozzle_restart.test_vals = [-5.130654, 0.443770, -2.934019, 1.603840, 0.000000] + axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.143310, -9.163287, -10.858232, -5.787715, 0.000000] + axi_rans_air_nozzle_restart.tol = 0.0001 + test_list.append(axi_rans_air_nozzle_restart) + + ################################# + ## Compressible RANS Restart ### + ################################# + + # NACA0012 SST Multigrid restart + turb_naca0012_sst_restart_mg = TestCase('turb_naca0012_sst_restart_mg') + turb_naca0012_sst_restart_mg.cfg_dir = "rans/naca0012" + turb_naca0012_sst_restart_mg.cfg_file = "turb_NACA0012_sst_multigrid_restart.cfg" + turb_naca0012_sst_restart_mg.test_iter = 20 + turb_naca0012_sst_restart_mg.ntest_vals = 5 + turb_naca0012_sst_restart_mg.test_vals = [-6.560190, -5.057149, 0.830238, -0.008812, 0.078167] + turb_naca0012_sst_restart_mg.timeout = 3200 + turb_naca0012_sst_restart_mg.tol = 0.000001 + test_list.append(turb_naca0012_sst_restart_mg) + + ############################# + ### Incompressible Euler ### + ############################# + + # NACA0012 Hydrofoil + inc_euler_naca0012 = TestCase('inc_euler_naca0012') + inc_euler_naca0012.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012.cfg_file = "incomp_NACA0012.cfg" + inc_euler_naca0012.test_iter = 20 + inc_euler_naca0012.test_vals = [-6.920909, -6.189139, 0.531865, 0.008472] + test_list.append(inc_euler_naca0012) + + # NACA0012 Hydrofoil + inc_euler_naca0012_pb = TestCase('inc_euler_naca0012_pb') + inc_euler_naca0012_pb.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012_pb.cfg_file = "incomp_pb_NACA0012.cfg" + inc_euler_naca0012_pb.test_iter = 20 + inc_euler_naca0012_pb.test_vals = [-4.454834, -4.784269, 0.427449, 0.012084] + test_list.append(inc_euler_naca0012_pb) + + # NACA0012 Hydrofoil, pressure-based with SIMPLEC + inc_euler_naca0012_pb_simplec = TestCase('inc_euler_naca0012_pb_simplec') + inc_euler_naca0012_pb_simplec.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012_pb_simplec.cfg_file = "incomp_pb_NACA0012_simplec.cfg" + inc_euler_naca0012_pb_simplec.test_iter = 20 + inc_euler_naca0012_pb_simplec.test_vals = [-4.400610, -4.580884, 0.480955, 0.021030] + test_list.append(inc_euler_naca0012_pb_simplec) + + # C-D nozzle with pressure inlet and mass flow outlet + inc_nozzle = TestCase('inc_nozzle') + inc_nozzle.cfg_dir = "incomp_euler/nozzle" + inc_nozzle.cfg_file = "inv_nozzle.cfg" + inc_nozzle.test_iter = 20 + inc_nozzle.test_vals = [-6.357399, -5.618580, 0.004548, 0.126243] + test_list.append(inc_nozzle) + + # Laminar wall mounted cylinder, Euler walls, cylinder wall diagonally split + inc_cylinder_split = TestCase('inc_cylinder_split') + inc_cylinder_split.cfg_dir = "incomp_navierstokes/cylinder_split" + inc_cylinder_split.cfg_file = "cylinder_split.cfg" + inc_cylinder_split.test_iter = 10 + inc_cylinder_split.test_vals = [-10.207060, -11.197502, -11.296847, 10.000000] + test_list.append(inc_cylinder_split) + + ############################# + ### Incompressible N-S ### + ############################# + + # Laminar cylinder + inc_lam_cylinder = TestCase('inc_lam_cylinder') + inc_lam_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder.cfg_file = "incomp_cylinder.cfg" + inc_lam_cylinder.test_iter = 10 + inc_lam_cylinder.test_vals = [-4.816099, -5.029676, -0.000155, 3.113777] + test_list.append(inc_lam_cylinder) + + # Laminar cylinder, pressure-based + inc_lam_cylinder_pb = TestCase('inc_lam_cylinder_pb') + inc_lam_cylinder_pb.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder_pb.cfg_file = "incomp_pb_cylinder.cfg" + inc_lam_cylinder_pb.test_iter = 10 + inc_lam_cylinder_pb.test_vals = [-3.486601, -3.776871, 0.012481, 6.205488] + test_list.append(inc_lam_cylinder_pb) + + # Laminar heated cylinder with polynomial fluid model, pressure-based, coupled energy + # equation and variable density. Convergence is genuine but slow (needs ~40k iterations + # for rms[h] to reach a low residual); this only checks a short trajectory guard, matching + # the pattern used for other hard-to-converge cases in this suite. + inc_poly_cylinder_pb = TestCase('inc_poly_cylinder_pb') + inc_poly_cylinder_pb.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder_pb.cfg_file = "pb_poly_cylinder.cfg" + inc_poly_cylinder_pb.test_iter = 20 + inc_poly_cylinder_pb.test_vals = [-9.820675, -3.000423, 0.002745, 1.778349, -172.280000] + test_list.append(inc_poly_cylinder_pb) + + # Unsteady heated cylinder with a polynomial fluid model, pressure-based with SIMPLEC + inc_poly_cylinder_pb_unsteady = TestCase('inc_poly_cylinder_pb_unsteady') + inc_poly_cylinder_pb_unsteady.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder_pb_unsteady.cfg_file = "pb_poly_cylinder_unsteady.cfg" + inc_poly_cylinder_pb_unsteady.test_iter = 1 + inc_poly_cylinder_pb_unsteady.test_vals = [-6.211300, -0.188735, 50.390122, -3363.100000] + inc_poly_cylinder_pb_unsteady.unsteady = True + test_list.append(inc_poly_cylinder_pb_unsteady) + + # Laminar sphere, Re=1. Last column: Cd=24/Re + inc_lam_sphere = TestCase('inc_lam_sphere') + inc_lam_sphere.cfg_dir = "incomp_navierstokes/sphere" + inc_lam_sphere.cfg_file = "sphere.cfg" + inc_lam_sphere.test_iter = 5 + inc_lam_sphere.test_vals = [-7.599894, -8.023038, -8.135420, -8.783151, 0.121003, 25.782689, -1.574889] + test_list.append(inc_lam_sphere) + + # Laminar sphere, Re=1, pressure-based. Only 3D pressure-based case in the regression suite. + inc_lam_sphere_pb = TestCase('inc_lam_sphere_pb') + inc_lam_sphere_pb.cfg_dir = "incomp_navierstokes/sphere" + inc_lam_sphere_pb.cfg_file = "pb_sphere.cfg" + inc_lam_sphere_pb.test_iter = 9 + inc_lam_sphere_pb.test_vals = [-6.104968, -2.307896, -2.481829, -2.570422, 0.189097, 170.764256, -6.848045] + test_list.append(inc_lam_sphere_pb) + + # Laminar sphere, Re=1, pressure-based, automatic relaxation factors. The only case + # in the suite that exercises USE_AUTOMATIC_RELAXATION_FACTORS, and 3D since the alpha_p + # bug this guards against is invisible in 2D (it sums the wrong set of Jacobian diagonals). + inc_lam_sphere_pb_urf = TestCase('inc_lam_sphere_pb_urf') + inc_lam_sphere_pb_urf.cfg_dir = "incomp_navierstokes/sphere" + inc_lam_sphere_pb_urf.cfg_file = "pb_sphere_urf.cfg" + inc_lam_sphere_pb_urf.test_iter = 9 + inc_lam_sphere_pb_urf.test_vals = [-4.745234, -2.241022, -2.374688, -1.689495, 0.216842, 206.109402, -6.281761] + test_list.append(inc_lam_sphere_pb_urf) + + # Buoyancy-driven cavity + inc_buoyancy = TestCase('inc_buoyancy') + inc_buoyancy.cfg_dir = "incomp_navierstokes/buoyancy_cavity" + inc_buoyancy.cfg_file = "lam_buoyancy_cavity.cfg" + inc_buoyancy.test_iter = 20 + inc_buoyancy.test_vals = [-3.860462, -3.122401, 1.322722, -23.414000] + test_list.append(inc_buoyancy) + + # Laminar heated cylinder with polynomial fluid model + inc_poly_cylinder = TestCase('inc_poly_cylinder') + inc_poly_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder.cfg_file = "poly_cylinder.cfg" + inc_poly_cylinder.test_iter = 20 + inc_poly_cylinder.test_vals = [-2.363389, 0.005552, 1.922971, -172.380000] + test_list.append(inc_poly_cylinder) + + # X-coarse laminar bend as a mixed element CGNS test + inc_lam_bend = TestCase('inc_lam_bend') + inc_lam_bend.cfg_dir = "incomp_navierstokes/bend" + inc_lam_bend.cfg_file = "lam_bend.cfg" + inc_lam_bend.test_iter = 10 + inc_lam_bend.test_vals = [-3.585943, -3.096592, -0.022111, 1.064110] + test_list.append(inc_lam_bend) + + # X-coarse laminar bend as a mixed element CGNS test, pressure-based + inc_lam_bend_pb = TestCase('inc_lam_bend_pb') + inc_lam_bend_pb.cfg_dir = "incomp_navierstokes/bend" + inc_lam_bend_pb.cfg_file = "pb_lam_bend.cfg" + inc_lam_bend_pb.test_iter = 10 + inc_lam_bend_pb.test_vals = [-4.137886, -3.477106, -0.014099, 0.306589] + test_list.append(inc_lam_bend_pb) + + # X-coarse laminar bend, pressure-based, variable density with a heated inlet + inc_lam_bend_pb_heated = TestCase('inc_lam_bend_pb_heated') + inc_lam_bend_pb_heated.cfg_dir = "incomp_navierstokes/bend" + inc_lam_bend_pb_heated.cfg_file = "pb_lam_bend_heated.cfg" + inc_lam_bend_pb_heated.test_iter = 10 + inc_lam_bend_pb_heated.test_vals = [-3.938675, -3.367579, 4.059184, 400.000000, 400.000000] + test_list.append(inc_lam_bend_pb_heated) + + # 3D laminar channnel with 1 cell in flow direction, streamwise periodic + sp_pipeSlice_3d_dp_hf_tp = TestCase('sp_pipeSlice_3d_dp_hf_tp') + sp_pipeSlice_3d_dp_hf_tp.cfg_dir = "incomp_navierstokes/streamwise_periodic/pipeSlice_3d" + sp_pipeSlice_3d_dp_hf_tp.cfg_file = "sp_pipeSlice_3d_dp_hf_tp.cfg" + sp_pipeSlice_3d_dp_hf_tp.test_iter = 10 + sp_pipeSlice_3d_dp_hf_tp.test_vals = [-11.119796, -11.234737, -9.429479, -0.000023] + test_list.append(sp_pipeSlice_3d_dp_hf_tp) + + # 2D pin array with heat transfer BC on pin surfaces + inc_heatTransfer_BC = TestCase('inc_heatTransfer_BC') + inc_heatTransfer_BC.cfg_dir = "incomp_navierstokes/streamwise_periodic/chtPinArray_2d" + inc_heatTransfer_BC.cfg_file = "BC_HeatTransfer.cfg" + inc_heatTransfer_BC.test_iter = 50 + inc_heatTransfer_BC.test_vals = [-8.904266, -7.745636, -8.064003, -1.079197, -1671.000000] + test_list.append(inc_heatTransfer_BC) + + ############################ + ### Incompressible RANS ### + ############################ + + # NACA0012 + inc_turb_naca0012 = TestCase('inc_turb_naca0012') + inc_turb_naca0012.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012.cfg_file = "naca0012.cfg" + inc_turb_naca0012.test_iter = 20 + inc_turb_naca0012.test_vals = [-4.758064, -10.974498, -0.000005, -0.028653, 3, -5.740545, 2, -5.036110] + test_list.append(inc_turb_naca0012) + + # NACA0012, SST_SUST + inc_turb_naca0012_sst_sust = TestCase('inc_turb_naca0012_sst_sust') + inc_turb_naca0012_sst_sust.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012_sst_sust.cfg_file = "naca0012_SST_SUST.cfg" + inc_turb_naca0012_sst_sust.test_iter = 20 + inc_turb_naca0012_sst_sust.test_vals = [-7.169837, 0.332730, -0.000001, 0.312131] + test_list.append(inc_turb_naca0012_sst_sust) + + # Flat plate, pressure-based + inc_flatplate_pb = TestCase('inc_flatplate_pb') + inc_flatplate_pb.cfg_dir = "incomp_rans/rough_flatplate" + inc_flatplate_pb.cfg_file = "pb_rough_flatplate_incomp.cfg" + inc_flatplate_pb.test_iter = 10 + inc_flatplate_pb.test_vals = [-4.063342, -9.884401, 0.000010, 0.228472] + test_list.append(inc_flatplate_pb) + + #################### + ### DG-FEM Euler ### + #################### + + # NACA0012 + fem_euler_naca0012 = TestCase('fem_euler_naca0012') + fem_euler_naca0012.cfg_dir = "hom_euler/NACA0012_5thOrder" + fem_euler_naca0012.cfg_file = "fem_NACA0012_reg.cfg" + fem_euler_naca0012.test_iter = 10 + fem_euler_naca0012.test_vals = [-6.519946, -5.976944, 0.255551, 0.000028] + test_list.append(fem_euler_naca0012) + + ############################ + ### DG-FEM Navier-Stokes ### + ############################ + + # Flat plate + fem_ns_flatplate = TestCase('fem_ns_flatplate') + fem_ns_flatplate.cfg_dir = "hom_navierstokes/FlatPlate/nPoly4" + fem_ns_flatplate.cfg_file = "lam_flatplate_reg.cfg" + fem_ns_flatplate.test_iter = 25 + fem_ns_flatplate.test_vals = [1.383727, 3.175247, 0.058387, 0.257951] + test_list.append(fem_ns_flatplate) + + # Steady cylinder + fem_ns_cylinder = TestCase('fem_ns_cylinder') + fem_ns_cylinder.cfg_dir = "hom_navierstokes/CylinderViscous/nPoly3" + fem_ns_cylinder.cfg_file = "fem_Cylinder_reg.cfg" + fem_ns_cylinder.test_iter = 10 + fem_ns_cylinder.test_vals = [0.454960, 0.979123, -0.000028, 79.984799] + test_list.append(fem_ns_cylinder) + + # Steady sphere + fem_ns_sphere = TestCase('fem_ns_sphere') + fem_ns_sphere.cfg_dir = "hom_navierstokes/SphereViscous/nPoly3_QuadDominant" + fem_ns_sphere.cfg_file = "fem_Sphere_reg.cfg" + fem_ns_sphere.test_iter = 10 + fem_ns_sphere.test_vals = [-0.288121, 0.240324, 0.000258, 21.797363] + test_list.append(fem_ns_sphere) + + # Unsteady sphere ADER + fem_ns_sphere_ader = TestCase('fem_ns_sphere_ader') + fem_ns_sphere_ader.cfg_dir = "hom_navierstokes/SphereViscous/nPoly3_QuadDominant" + fem_ns_sphere_ader.cfg_file = "fem_Sphere_reg_ADER.cfg" + fem_ns_sphere_ader.test_iter = 10 + fem_ns_sphere_ader.test_vals = [-35.000000, -35.000000, 0.000047, 31.110911] + test_list.append(fem_ns_sphere_ader) + + # Unsteady cylinder + fem_ns_unsteady_cylinder = TestCase('fem_ns_unsteady_cylinder') + fem_ns_unsteady_cylinder.cfg_dir = "hom_navierstokes/UnsteadyCylinder/nPoly4" + fem_ns_unsteady_cylinder.cfg_file = "fem_unst_cylinder.cfg" + fem_ns_unsteady_cylinder.test_iter = 11 + fem_ns_unsteady_cylinder.test_vals = [-3.558582, -3.014464, -0.038927, 1.383983] + fem_ns_unsteady_cylinder.unsteady = True + test_list.append(fem_ns_unsteady_cylinder) + + # Unsteady cylinder ADER + fem_ns_unsteady_cylinder_ader = TestCase('fem_ns_unsteady_cylinder_ader') + fem_ns_unsteady_cylinder_ader.cfg_dir = "hom_navierstokes/UnsteadyCylinder/nPoly4" + fem_ns_unsteady_cylinder_ader.cfg_file = "fem_unst_cylinder_ADER.cfg" + fem_ns_unsteady_cylinder_ader.test_iter = 11 + fem_ns_unsteady_cylinder_ader.test_vals = [-35.000000, -35.000000, -0.041003, 1.391339] + fem_ns_unsteady_cylinder_ader.unsteady = True + test_list.append(fem_ns_unsteady_cylinder_ader) + + ########################### + ### Turbulence modeling ### + ########################### + + # SA Baseline (Identical to RANS SA RAE2822) + turbmod_sa_bsl_rae2822 = TestCase('turbmod_sa_bsl_rae2822') + turbmod_sa_bsl_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_bsl_rae2822.cfg_file = "turb_SA_BSL_RAE2822.cfg" + turbmod_sa_bsl_rae2822.test_iter = 20 + turbmod_sa_bsl_rae2822.test_vals = [-3.062213, -0.409580, -0.834363, -5.133434, 0.790438, 0.018107] + test_list.append(turbmod_sa_bsl_rae2822) + + # SA Negative + turbmod_sa_neg_rae2822 = TestCase('turbmod_sa_neg_rae2822') + turbmod_sa_neg_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_neg_rae2822.cfg_file = "turb_SA_NEG_RAE2822.cfg" + turbmod_sa_neg_rae2822.test_iter = 10 + turbmod_sa_neg_rae2822.test_vals = [1.275994, 1.062588, -2.067822, 1.300662, 0.480881, 0.000000] + turbmod_sa_neg_rae2822.test_vals_aarch64 = [-1.345593, 1.448310, 1.208721, -0.846597, 1.248410, 0.489117, 0.000000] + test_list.append(turbmod_sa_neg_rae2822) + + # SA Compressibility Correction + turbmod_sa_comp_rae2822 = TestCase('turbmod_sa_comp_rae2822') + turbmod_sa_comp_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_comp_rae2822.cfg_file = "turb_SA_COMP_RAE2822.cfg" + turbmod_sa_comp_rae2822.test_iter = 20 + turbmod_sa_comp_rae2822.test_vals = [-3.063286, -0.408577, -0.834597, -5.159754, 0.790991, 0.018085] + test_list.append(turbmod_sa_comp_rae2822) + + # SA Edwards + turbmod_sa_edw_rae2822 = TestCase('turbmod_sa_edw_rae2822') + turbmod_sa_edw_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_edw_rae2822.cfg_file = "turb_SA_EDW_RAE2822.cfg" + turbmod_sa_edw_rae2822.test_iter = 20 + turbmod_sa_edw_rae2822.test_vals = [-3.069523, -0.405788, -0.835321, -5.185709, 0.794436, 0.017856] + test_list.append(turbmod_sa_edw_rae2822) + + # SA Compressibility and Edwards + turbmod_sa_comp_edw_rae2822 = TestCase('turbmod_sa_comp_edw_rae2822') + turbmod_sa_comp_edw_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_comp_edw_rae2822.cfg_file = "turb_SA_COMP_EDW_RAE2822.cfg" + turbmod_sa_comp_edw_rae2822.test_iter = 20 + turbmod_sa_comp_edw_rae2822.test_vals = [-3.067904, -0.338707, -0.811157, -5.279475, 0.809906, 0.019797] + test_list.append(turbmod_sa_comp_edw_rae2822) + + # SA QCR + turbmod_sa_qcr_rae2822 = TestCase('turbmod_sa_qcr_rae2822') + turbmod_sa_qcr_rae2822.cfg_dir = "turbulence_models/sa/rae2822" + turbmod_sa_qcr_rae2822.cfg_file = "turb_SA_QCR_RAE2822.cfg" + turbmod_sa_qcr_rae2822.test_iter = 20 + turbmod_sa_qcr_rae2822.test_vals = [-3.028293, -0.418748, -0.797999, -5.088756, 0.761887, 0.016830] + test_list.append(turbmod_sa_qcr_rae2822) + + ############################ + ### Transition ### + ############################ + + # Schubauer-Klebanoff Natural Transition Case + schubauer_klebanoff_transition = TestCase('Schubauer_Klebanoff') + schubauer_klebanoff_transition.cfg_dir = "transition/Schubauer_Klebanoff" + schubauer_klebanoff_transition.cfg_file = "transitional_BC_model_ConfigFile.cfg" + schubauer_klebanoff_transition.test_iter = 10 + schubauer_klebanoff_transition.test_vals = [-8.215651, -13.239431, 0.000048, 0.007983] + test_list.append(schubauer_klebanoff_transition) + + ##################################### + ### Cont. adj. compressible Euler ### + ##################################### + + # Inviscid NACA0012 + contadj_naca0012 = TestCase('contadj_naca0012') + contadj_naca0012.cfg_dir = "cont_adj_euler/naca0012" + contadj_naca0012.cfg_file = "inv_NACA0012.cfg" + contadj_naca0012.test_iter = 5 + contadj_naca0012.test_vals = [-9.547544, -15.069350, -0.726250, 0.020280] + contadj_naca0012.test_vals_aarch64 = [-9.662546, -14.998818, -0.726250, 0.020280] + test_list.append(contadj_naca0012) + + # Inviscid ONERA M6 + contadj_oneram6 = TestCase('contadj_oneram6') + contadj_oneram6.cfg_dir = "cont_adj_euler/oneram6" + contadj_oneram6.cfg_file = "inv_ONERAM6.cfg" + contadj_oneram6.test_iter = 10 + contadj_oneram6.test_vals = [-12.085026, -12.651321, -1.086100, 0.007556] + test_list.append(contadj_oneram6) + + # Inviscid WEDGE: tests averaged outflow total pressure adjoint + contadj_wedge = TestCase('contadj_wedge') + contadj_wedge.cfg_dir = "cont_adj_euler/wedge" + contadj_wedge.cfg_file = "inv_wedge_ROE.cfg" + contadj_wedge.test_iter = 10 + contadj_wedge.test_vals = [2.872065, -2.756214, 1010800.000000, 0.000000] + test_list.append(contadj_wedge) + + # Inviscid fixed CL NACA0012 + contadj_fixed_CL_naca0012 = TestCase('contadj_fixedcl_naca0012') + contadj_fixed_CL_naca0012.cfg_dir = "fixed_cl/naca0012" + contadj_fixed_CL_naca0012.cfg_file = "inv_NACA0012_ContAdj.cfg" + contadj_fixed_CL_naca0012.test_iter = 100 + contadj_fixed_CL_naca0012.test_vals = [1.408903, -4.010709, 0.005808, 0.004028] + test_list.append(contadj_fixed_CL_naca0012) + + ################################### + ### Cont. adj. compressible N-S ### + ################################### + + # Adjoint laminar cylinder + contadj_ns_cylinder = TestCase('contadj_ns_cylinder') + contadj_ns_cylinder.cfg_dir = "cont_adj_navierstokes/cylinder" + contadj_ns_cylinder.cfg_file = "lam_cylinder.cfg" + contadj_ns_cylinder.test_iter = 20 + contadj_ns_cylinder.test_vals = [-3.626865, -9.079504, 2.056700, -0.000000] + test_list.append(contadj_ns_cylinder) + + # Adjoint laminar naca0012 subsonic + contadj_ns_naca0012_sub = TestCase('contadj_ns_naca0012_sub') + contadj_ns_naca0012_sub.cfg_dir = "cont_adj_navierstokes/naca0012_sub" + contadj_ns_naca0012_sub.cfg_file = "lam_NACA0012.cfg" + contadj_ns_naca0012_sub.test_iter = 20 + contadj_ns_naca0012_sub.test_vals = [-2.743268, -8.215193, 0.518810, 0.001210] + test_list.append(contadj_ns_naca0012_sub) + + # Adjoint laminar naca0012 transonic + contadj_ns_naca0012_trans = TestCase('contadj_ns_naca0012_trans') + contadj_ns_naca0012_trans.cfg_dir = "cont_adj_navierstokes/naca0012_trans" + contadj_ns_naca0012_trans.cfg_file = "lam_NACA0012.cfg" + contadj_ns_naca0012_trans.test_iter = 20 + contadj_ns_naca0012_trans.test_vals = [-1.039664, -6.575019, 1.772300, 0.012495] + test_list.append(contadj_ns_naca0012_trans) + + ####################################################### + ### Cont. adj. compressible RANS (frozen viscosity) ### + ####################################################### + + # Adjoint turbulent NACA0012 + contadj_rans_naca0012 = TestCase('contadj_rans_naca0012') + contadj_rans_naca0012.cfg_dir = "cont_adj_rans/naca0012" + contadj_rans_naca0012.cfg_file = "turb_nasa.cfg" + contadj_rans_naca0012.test_iter = 20 + contadj_rans_naca0012.test_vals = [-0.794162, -5.761722, 19.214000, -0.000000] + test_list.append(contadj_rans_naca0012) + + # Adjoint turbulent NACA0012 with binary restarts + contadj_rans_naca0012_bin = TestCase('contadj_rans_naca0012_bin') + contadj_rans_naca0012_bin.cfg_dir = "cont_adj_rans/naca0012" + contadj_rans_naca0012_bin.cfg_file = "turb_nasa_binary.cfg" + contadj_rans_naca0012_bin.test_iter = 18 + contadj_rans_naca0012_bin.test_vals = [-0.794169, -5.761671, 19.214000, -0.000000] + test_list.append(contadj_rans_naca0012_bin) + + # Adjoint turbulent RAE2822 + contadj_rans_rae2822 = TestCase('contadj_rans_rae822') + contadj_rans_rae2822.cfg_dir = "cont_adj_rans/rae2822" + contadj_rans_rae2822.cfg_file = "turb_SA_RAE2822.cfg" + contadj_rans_rae2822.test_iter = 20 + contadj_rans_rae2822.test_vals = [-5.399270, -10.904277, -0.212470, 0.005448] + test_list.append(contadj_rans_rae2822) + + ############################# + ### Compressibele RANS UQ ### + ############################# + + # NACA0012 1c + turb_naca0012_1c = TestCase('turb_naca0012_1c') + turb_naca0012_1c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_1c.cfg_file = "turb_NACA0012_uq_1c.cfg" + turb_naca0012_1c.test_iter = 10 + turb_naca0012_1c.test_vals = [-4.979554, 1.344291, 0.666805, 0.010247] + turb_naca0012_1c.test_vals_aarch64 = [-4.981036, 1.345868, 0.673232, 0.010091] + test_list.append(turb_naca0012_1c) + + # NACA0012 2c + turb_naca0012_2c = TestCase('turb_naca0012_2c') + turb_naca0012_2c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_2c.cfg_file = "turb_NACA0012_uq_2c.cfg" + turb_naca0012_2c.test_iter = 10 + turb_naca0012_2c.test_vals = [-5.482691, 1.262918, 0.529442, -0.023584] + turb_naca0012_2c.test_vals_aarch64 = [-5.484365, 1.264701, 0.501741, -0.033109] + test_list.append(turb_naca0012_2c) + + # NACA0012 3c + turb_naca0012_3c = TestCase('turb_naca0012_3c') + turb_naca0012_3c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_3c.cfg_file = "turb_NACA0012_uq_3c.cfg" + turb_naca0012_3c.test_iter = 10 + turb_naca0012_3c.test_vals = [-5.583617, 1.229594, 0.463384, -0.035444] + test_list.append(turb_naca0012_3c) + + # NACA0012 p1c1 + turb_naca0012_p1c1 = TestCase('turb_naca0012_p1c1') + turb_naca0012_p1c1.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c1.cfg_file = "turb_NACA0012_uq_p1c1.cfg" + turb_naca0012_p1c1.test_iter = 10 + turb_naca0012_p1c1.test_vals = [-5.129555, 1.283892, 0.808074, 0.047784] + turb_naca0012_p1c1.test_vals_aarch64 = [-5.122100, 1.284478, 0.608744, -0.008593] + test_list.append(turb_naca0012_p1c1) + + # NACA0012 p1c2 + turb_naca0012_p1c2 = TestCase('turb_naca0012_p1c2') + turb_naca0012_p1c2.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c2.cfg_file = "turb_NACA0012_uq_p1c2.cfg" + turb_naca0012_p1c2.test_iter = 10 + turb_naca0012_p1c2.test_vals = [-5.554045, 1.234446, 0.603731, -0.008717] + test_list.append(turb_naca0012_p1c2) + + ###################################### + ### Harmonic Balance ### + ###################################### + + # Description of the regression test + harmonic_balance = TestCase('harmonic_balance') + harmonic_balance.cfg_dir = "harmonic_balance" + harmonic_balance.cfg_file = "HB.cfg" + harmonic_balance.test_iter = 25 + harmonic_balance.test_vals = [-1.556449, 0.840517, 0.943602, 3.957291] + test_list.append(harmonic_balance) + + # Turbulent pitching NACA 64a010 airfoil + hb_rans_preconditioning = TestCase('hb_rans_preconditioning') + hb_rans_preconditioning.cfg_dir = "harmonic_balance/hb_rans_preconditioning" + hb_rans_preconditioning.cfg_file = "davis.cfg" + hb_rans_preconditioning.test_iter = 25 + hb_rans_preconditioning.tol = 0.00001 + hb_rans_preconditioning.test_vals = [-1.905509, 0.482119, 0.598486, 3.605120, -5.946067] + test_list.append(hb_rans_preconditioning) + + ###################################### + ### Moving Wall ### + ###################################### + + # Rotating NACA 0012 + rot_naca0012 = TestCase('rot_naca0012') + rot_naca0012.cfg_dir = "rotating/naca0012" + rot_naca0012.cfg_file = "rot_NACA0012.cfg" + rot_naca0012.test_iter = 25 + rot_naca0012.test_vals = [-0.028757, 0.058709, 2.000000, -1.147370] + test_list.append(rot_naca0012) + + # Lid-driven cavity + cavity = TestCase('cavity') + cavity.cfg_dir = "moving_wall/cavity" + cavity.cfg_file = "lam_cavity.cfg" + cavity.test_iter = 25 + cavity.test_vals = [-7.770113, -2.308185, 0.011072, 0.008947] + test_list.append(cavity) + + # Spinning cylinder + spinning_cylinder = TestCase('spinning_cylinder') + spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder" + spinning_cylinder.cfg_file = "spinning_cylinder.cfg" + spinning_cylinder.test_iter = 25 + spinning_cylinder.test_vals = [-7.471322, -2.007082, 2.183565, 1.847848] + test_list.append(spinning_cylinder) + + ###################################### + ### Unsteady ### + ###################################### + + # Square cylinder + square_cylinder = TestCase('square_cylinder') + square_cylinder.cfg_dir = "unsteady/square_cylinder" + square_cylinder.cfg_file = "turb_square.cfg" + square_cylinder.test_iter = 3 + square_cylinder.test_vals = [-1.175979, 0.062203, 1.399352, 2.219226, 1.399298, 2.217472, 0.000000] + square_cylinder.unsteady = True + test_list.append(square_cylinder) + + # Aeroacoustics postprocessing of a converged square-cylinder pressure history + aeroacoustics_square_cylinder = TestCase('aeroacoustics_square_cylinder') + aeroacoustics_square_cylinder.cfg_dir = "unsteady/square_cylinder" + aeroacoustics_square_cylinder.cfg_file = "aeroacoustics.cfg" + aeroacoustics_square_cylinder.test_iter = 0 + aeroacoustics_square_cylinder.test_vals = [103.1512634765, 1.9531250000] + aeroacoustics_square_cylinder.command = TestCase.Command( + exec = "python", param = "run_aeroacoustics.py" + ) + aeroacoustics_square_cylinder.timeout = 60 + aeroacoustics_square_cylinder.tol = 1e-6 + test_list.append(aeroacoustics_square_cylinder) + + # Gust + sine_gust = TestCase('sine_gust') + sine_gust.cfg_dir = "gust" + sine_gust.cfg_file = "inv_gust_NACA0012.cfg" + sine_gust.test_iter = 5 + sine_gust.test_vals = [-1.977498, 3.481833, -0.013388, -0.003910] + sine_gust.unsteady = True + test_list.append(sine_gust) + + # Delayed Detached Eddy Simulation + ddes_flatplate = TestCase('ddes_flatplate') + ddes_flatplate.cfg_dir = "ddes/flatplate" + ddes_flatplate.cfg_file = "ddes_flatplate.cfg" + ddes_flatplate.test_iter = 10 + ddes_flatplate.test_vals = [-2.714713, -5.763284, -0.214960, 0.023758, 0.000000] + ddes_flatplate.unsteady = True + test_list.append(ddes_flatplate) + + # Stochastic BackScatter (SBS) model + sbs_backward_step = TestCase('sbs_backward_step') + sbs_backward_step.cfg_dir = "backscatter/backward_step" + sbs_backward_step.cfg_file = "backwardStep.cfg" + sbs_backward_step.test_iter = 3 + sbs_backward_step.test_vals = [-6.352884, -3.465372, -5.507901, -3.906545, -9.506305, -6.365236, -6.331021, -6.331028] + sbs_backward_step.unsteady = True + sbs_backward_step.decompress = True + sbs_backward_step.grid_file = "backward_step.su2" + test_list.append(sbs_backward_step) + + # unsteady pitching NACA0015, SA + unst_inc_turb_naca0015_sa = TestCase('unst_inc_turb_naca0015_sa') + unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" + unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" + unst_inc_turb_naca0015_sa.test_iter = 1 + unst_inc_turb_naca0015_sa.test_vals = [-3.002783, -6.875096, 1.487783, 0.421690] + unst_inc_turb_naca0015_sa.unsteady = True + test_list.append(unst_inc_turb_naca0015_sa) + + # Flat plate + flatplate_unsteady = TestCase('flatplate_unsteady') + flatplate_unsteady.cfg_dir = "navierstokes/flatplate" + flatplate_unsteady.cfg_file = "lam_flatplate_unst.cfg" + flatplate_unsteady.test_iter = 3 + flatplate_unsteady.test_vals = [0.000008, -8.875128, -8.250204, -6.305788, -5.469452, -3.398230, 0.002075, -0.325535] + flatplate_unsteady.unsteady = True + test_list.append(flatplate_unsteady) + + ###################################### + ### NICFD ### + ###################################### + + # Rarefaction shock wave edge_VW + edge_VW = TestCase('edge_VW') + edge_VW.cfg_dir = "nicf/edge" + edge_VW.cfg_file = "edge_VW.cfg" + edge_VW.test_iter = 20 + edge_VW.test_vals = [-4.478306, 1.723006, -0.000009, 0.000000] + test_list.append(edge_VW) + + # Rarefaction shock wave edge_PPR + edge_PPR = TestCase('edge_PPR') + edge_PPR.cfg_dir = "nicf/edge" + edge_PPR.cfg_file = "edge_PPR.cfg" + edge_PPR.test_iter = 20 + edge_PPR.test_vals = [-8.395110, -2.236894, -0.000034, 0.000000] + test_list.append(edge_PPR) + + # Rarefaction Q1D nozzle, include CoolProp fluid model + coolprop_fluidModel = TestCase('coolprop_fluidModel') + coolprop_fluidModel.cfg_dir = "nicf/coolprop" + coolprop_fluidModel.cfg_file = "fluidModel.cfg" + coolprop_fluidModel.test_iter = 5 + coolprop_fluidModel.test_vals = [-4.666146, -0.172864, 4.492817, 0.000000, 0.000000] + coolprop_fluidModel.enabled_on_cpu_arch = ["x86_64"] + test_list.append(coolprop_fluidModel) + + # Rarefaction Q1D nozzle, include CoolProp transport model + coolprop_transportModel = TestCase('coolprop_transportModel') + coolprop_transportModel.cfg_dir = "nicf/coolprop" + coolprop_transportModel.cfg_file = "transportModel.cfg" + coolprop_transportModel.test_iter = 5 + coolprop_transportModel.test_vals = [-4.667122, -0.172865, 4.687652, 0.000000, 0.000000] + coolprop_transportModel.enabled_on_cpu_arch = ["x86_64"] + test_list.append(coolprop_transportModel) + + # Rarefaction Q1D nozzle, include data-driven fluid model + datadriven_fluidModel = TestCase('datadriven_fluidModel') + datadriven_fluidModel.cfg_dir = "nicf/datadriven" + datadriven_fluidModel.cfg_file = "datadriven_nozzle.cfg" + datadriven_fluidModel.test_iter = 50 + datadriven_fluidModel.test_vals = [-6.283594, -3.253961, -4.172935, -0.949415, -2.046039, 1.546933] + test_list.append(datadriven_fluidModel) + + ###################################### + ### Turbomachinery ### + ###################################### + + # Aachen Turbine restart + Aachen_3D_restart = TestCase('aachen_turbine_restart') + Aachen_3D_restart.cfg_dir = "turbomachinery/Aachen_turbine" + Aachen_3D_restart.cfg_file = "aachen_3D_MP_restart.cfg" + Aachen_3D_restart.test_iter = 5 + Aachen_3D_restart.tol = 0.00001 + Aachen_3D_restart.test_vals = [-7.688483, -8.466346, -6.035067, -6.425967, -5.820125, -4.597817, -5.528297, -5.301466, -3.819862, -5.242356, -5.738805, -3.630202, -2.213240, -2.857919, -0.576864] + test_list.append(Aachen_3D_restart) + + # Jones APU Turbocharger restart + Jones_tc_restart = TestCase('jones_turbocharger_restart') + Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger" + Jones_tc_restart.cfg_file = "Jones_restart.cfg" + Jones_tc_restart.test_iter = 5 + Jones_tc_restart.test_vals = [-11.905370, -12.212031, -19.212143, -13.508267, -19.079216, -13.445953, 73286.000000, 73286.000000, 0.020056, 82.286000] + test_list.append(Jones_tc_restart) + + # 2D axial stage + axial_stage2D = TestCase('axial_stage2D') + axial_stage2D.cfg_dir = "turbomachinery/axial_stage_2D" + axial_stage2D.cfg_file = "Axial_stage2D.cfg" + axial_stage2D.test_iter = 20 + axial_stage2D.test_vals = [1.167500, 1.598546, -2.928573, 2.573647, -2.527331, 3.016254, 106370.000000, 106370.000000, 5.726800, 64.383000] + test_list.append(axial_stage2D) + + # 2D transonic stator restart + transonic_stator_restart = TestCase('transonic_stator_restart') + transonic_stator_restart.cfg_dir = "turbomachinery/transonic_stator_2D" + transonic_stator_restart.cfg_file = "transonic_stator_restart.cfg" + transonic_stator_restart.test_iter = 20 + transonic_stator_restart.test_vals = [-4.365636, -2.482248, -2.081252, 1.729763, -1.467305, 3.231073, -471620.000000, 94.837000, -0.046834] + transonic_stator_restart.test_vals_aarch64 = [-4.437809, -2.553049, -2.164729, 1.657542, -1.356823, 3.178788, -471620.000000, 94.842000, -0.040365] + test_list.append(transonic_stator_restart) + + # Multiple turbomachinery interface restart + multi_interface = TestCase('multi_interface') + multi_interface.cfg_dir = "turbomachinery/multi_interface" + multi_interface.cfg_file = "multi_interface_rst.cfg" + multi_interface.test_iter = 5 + multi_interface.test_vals = [-8.634558, -8.895554, -9.348754] + multi_interface.test_vals_aarch64 = [-8.632227, -8.894736, -9.348706] + test_list.append(multi_interface) + + ###################################### + ### Sliding Mesh ### + ###################################### + + # Uniform flow + uniform_flow = TestCase('uniform_flow') + uniform_flow.cfg_dir = "sliding_interface/uniform_flow" + uniform_flow.cfg_file = "uniform_NN.cfg" + uniform_flow.test_iter = 5 + uniform_flow.test_vals = [5.000000, 0.000000, -0.193989, -10.624451] + uniform_flow.unsteady = True + uniform_flow.multizone = True + test_list.append(uniform_flow) + + # Channel_2D, native SU2 binary mesh format (.su2b) + # channel_2D_WA.cfg loads channel_2D_su2bin.su2b directly, so SU2_DEF must + # first convert channel_2D.su2 (3 zones) into that binary mesh. + channel_2D_su2bin_convert = TestCase('channel_2D_su2bin_convert') + channel_2D_su2bin_convert.cfg_dir = "sliding_interface/channel_2D" + channel_2D_su2bin_convert.cfg_file = "mesh_su2_to_su2bin.cfg" + channel_2D_su2bin_convert.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + test_list.append(channel_2D_su2bin_convert) + + channel_2D = TestCase('channel_2D') + channel_2D.cfg_dir = "sliding_interface/channel_2D" + channel_2D.cfg_file = "channel_2D_WA.cfg" + channel_2D.test_iter = 2 + channel_2D.test_vals = [2.000000, 0.000000, 0.399141, 0.350260, 0.405570] + channel_2D.timeout = 100 + channel_2D.unsteady = True + channel_2D.multizone = True + test_list.append(channel_2D) + + # Channel_3D + channel_3D = TestCase('channel_3D') + channel_3D.cfg_dir = "sliding_interface/channel_3D" + channel_3D.cfg_file = "channel_3D_WA.cfg" + channel_3D.test_iter = 2 + channel_3D.test_vals = [2.000000, 0.000000, 0.632752, 0.522763, 0.423355] + channel_3D.test_vals_aarch64 = [2.000000, 0.000000, 0.629119, 0.524959, 0.422390] + channel_3D.unsteady = True + channel_3D.multizone = True + test_list.append(channel_3D) + + # Pipe + pipe = TestCase('pipe') + pipe.cfg_dir = "sliding_interface/pipe" + pipe.cfg_file = "pipe_NN.cfg" + pipe.test_iter = 2 + pipe.test_vals = [0.024970, 0.452312, 0.562852, 0.974613, 1.031075] + pipe.unsteady = True + pipe.multizone = True + test_list.append(pipe) + + # Rotating cylinders + rotating_cylinders = TestCase('rotating_cylinders') + rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" + rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" + rotating_cylinders.test_iter = 3 + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686417, 1.152593, 1.145900] + rotating_cylinders.unsteady = True + rotating_cylinders.multizone = True + test_list.append(rotating_cylinders) + + # Supersonic vortex shedding + supersonic_vortex_shedding = TestCase('supersonic_vortex_shedding') + supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" + supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" + supersonic_vortex_shedding.test_iter = 5 + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064262] + supersonic_vortex_shedding.unsteady = True + supersonic_vortex_shedding.multizone = True + test_list.append(supersonic_vortex_shedding) + + # Bars_SST_2D + bars_SST_2D = TestCase('bars_SST_2D') + bars_SST_2D.cfg_dir = "sliding_interface/bars_SST_2D" + bars_SST_2D.cfg_file = "bars.cfg" + bars_SST_2D.test_iter = 13 + bars_SST_2D.test_vals = [13.000000, -0.457912, -1.541047] + bars_SST_2D.multizone = True + test_list.append(bars_SST_2D) + + # Sliding mesh with incompressible flows (steady) + slinc_steady = TestCase('slinc_steady') + slinc_steady.cfg_dir = "sliding_interface/incompressible_steady" + slinc_steady.cfg_file = "config.cfg" + slinc_steady.test_iter = 19 + slinc_steady.test_vals = [19.000000, -1.129117, -1.399143] + slinc_steady.timeout = 100 + slinc_steady.tol = 0.00002 + slinc_steady.multizone = True + test_list.append(slinc_steady) + + # Sliding mesh with incompressible flows (unsteady) + # slinc_unsteady = TestCase('slinc_unsteady') + # slinc_unsteady.cfg_dir = "sliding_interface/incompressible_unsteady" + # slinc_unsteady.cfg_file = "config.cfg" + # slinc_unsteady.test_iter = 19 + # slinc_unsteady.test_vals = [-3.513701,1.931626,0.000000,0.000000] #last 4 columns + # slinc_unsteady.command = TestCase.Command(exec = "SU2_CFD") + # slinc_unsteady.timeout = 100 + # slinc_unsteady.unsteady = True + # test_list.append(slinc_unsteady) + + ########################## + ### FEA - FSI ### + ########################## + + # Static beam, 3d + statbeam3d = TestCase('statbeam3d') + statbeam3d.cfg_dir = "fea_fsi/StatBeam_3d" + statbeam3d.cfg_file = "configBeam_3d.cfg" + statbeam3d.test_iter = 0 + statbeam3d.test_vals = [-6.020105, -5.749794, -5.931330, 110190.000000] + statbeam3d.test_vals_aarch64 = [-6.062693, -5.769132, -5.891190, 110190] + test_list.append(statbeam3d) + + # Static beam, 3d with coupled temperature + thermal_beam_3d = TestCase('thermal_beam_3d') + thermal_beam_3d.cfg_dir = "fea_fsi/ThermalBeam_3d" + thermal_beam_3d.cfg_file = "configBeam_3d.cfg" + thermal_beam_3d.test_iter = 4 + thermal_beam_3d.test_vals = [-8.101468, -7.745325, -7.818908, -13.978110, 216.000000, -4.008646, 39.000000, -4.072613, 136760.000000, 75.000000] + test_list.append(thermal_beam_3d) + + # Static beam, 3d with coupled temperature, nonlinear elasticity + thermal_beam_nl_3d = TestCase('thermal_beam_nl_3d') + thermal_beam_nl_3d.cfg_dir = "fea_fsi/ThermalBeam_3d" + thermal_beam_nl_3d.cfg_file = "configBeamNonlinear_3d.cfg" + thermal_beam_nl_3d.test_iter = 8 + thermal_beam_nl_3d.test_vals = [-7.564308, -2.992893, -12.242503, -14.068322, 57.000000, -4.017669, 24.000000, -4.204804, 138710.000000, 75.233000] + test_list.append(thermal_beam_nl_3d) + + # Rotating cylinder, 3d + rotating_cylinder_fea = TestCase('rotating_cylinder_fea') + rotating_cylinder_fea.cfg_dir = "fea_fsi/rotating_cylinder" + rotating_cylinder_fea.cfg_file = "config.cfg" + rotating_cylinder_fea.test_iter = 0 + # For a thin disk with the inner and outer radius of this geometry, from + # "Formulas for Stress, Strain, and Structural Matrices", 2nd Edition, figure 19-4, + # the maximum stress is 165.6MPa, we get a von Mises stress very close to that. + rotating_cylinder_fea.test_vals = [-6.760497, -6.689266, -6.739355, 37.000000, -8.178510, 165020000.000000] + rotating_cylinder_fea.test_vals_aarch64 = [-6.861939, -6.835539, -6.895498, 22, -8.313847, 1.6502e+08] + test_list.append(rotating_cylinder_fea) + + # 2D beam in plain strain with thermal expansion. This tests fixes to the 2D Von Mises stress calculation. + linear_plane_strain = TestCase('linear_plane_strain') + linear_plane_strain.cfg_dir = "fea_fsi/VonMissesVerif" + linear_plane_strain.cfg_file = "linear_plane_strain_2d.cfg" + linear_plane_strain.test_iter = 0 + linear_plane_strain.test_vals = [-6.246772, -6.060575, 0.000000, 120140.000000, 148.000000, -8.140997] + test_list.append(linear_plane_strain) + + # 2D beam in plain stress with thermal expansion. This tests fixes to the 2D von Mises stress calculation, + # and to the plane stress formulation with thermal expansion for nonlinear materials. + nonlinear_plane_stress = TestCase('nonlinear_plane_stress') + nonlinear_plane_stress.cfg_dir = "fea_fsi/VonMissesVerif" + nonlinear_plane_stress.cfg_file = "nonlinear_plane_stress_2d.cfg" + nonlinear_plane_stress.test_iter = 16 + nonlinear_plane_stress.test_vals = [-6.235980, -2.229690, -11.701484, 162480.000000, 30.000000, -4.152654] + nonlinear_plane_stress.tol = [2e-4, 2e-4, 2e-4, 1e-5, 1e-5, 4e-4] + test_list.append(nonlinear_plane_stress) + + # Dynamic beam, 2d + dynbeam2d = TestCase('dynbeam2d') + dynbeam2d.cfg_dir = "fea_fsi/DynBeam_2d" + dynbeam2d.cfg_file = "configBeam_2d.cfg" + dynbeam2d.test_iter = 6 + dynbeam2d.test_vals = [-3.240012, 2.895060, -0.353140, 76220] + dynbeam2d.unsteady = True + test_list.append(dynbeam2d) + + # FSI, 2d + fsi2d = TestCase('fsi2d') + fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" + fsi2d.cfg_file = "configFSI.cfg" + fsi2d.test_iter = 4 + fsi2d.test_vals = [4.000000, 0.000000, -3.725519, -4.278760] + fsi2d.command = TestCase.Command(exec = "parallel_computation_fsi.py", param = "-f") + fsi2d.multizone= True + fsi2d.unsteady = True + test_list.append(fsi2d) + + # FSI, Dynamic, 2D, new mesh solver + dyn_fsi = TestCase('dyn_fsi') + dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" + dyn_fsi.cfg_file = "config.cfg" + dyn_fsi.test_iter = 4 + dyn_fsi.test_vals = [-4.328805, -4.153009, 0.000000, 75.000000] + dyn_fsi.multizone = True + dyn_fsi.unsteady = True + test_list.append(dyn_fsi) + + # ############################### + # ### Radiative Heat Transfer ### + # ############################### + + # Radiative heat transfer + p1rad = TestCase('p1rad') + p1rad.cfg_dir = "radiation/p1model" + p1rad.cfg_file = "configp1.cfg" + p1rad.test_iter = 50 + p1rad.test_vals = [-8.197112, -7.856394, -2.380743, 0.381122, -57.186000] + test_list.append(p1rad) + + + # ############################# + # ### Solid Heat Conduction ### + # ############################# + + # 2D pins, periodically connected + solid_periodic_pins = TestCase('solid_periodic_pins') + solid_periodic_pins.cfg_dir = "solid_heat_conduction/periodic_pins" + solid_periodic_pins.cfg_file = "configSolid.cfg" + solid_periodic_pins.test_iter = 750 + solid_periodic_pins.test_vals = [-15.878960, -14.569206, 300.900000, 425.320000, 5.000000, -1.672601] + solid_periodic_pins.test_vals_aarch64 = [-15.879016, -14.569206, 300.900000, 425.320000, 5.000000, -1.672666] + test_list.append(solid_periodic_pins) + + # ############################### + # ### Conjugate heat transfer ### + # ############################### + + # CHT incompressible + cht_incompressible = TestCase('cht_incompressible') + cht_incompressible.cfg_dir = "coupled_cht/incomp_2d" + cht_incompressible.cfg_file = "cht_2d_3cylinders.cfg" + cht_incompressible.test_iter = 10 + cht_incompressible.test_vals = [-1.376344, -0.591210, -0.591210, -0.591211] + cht_incompressible.multizone = True + test_list.append(cht_incompressible) + + # CHT compressible + cht_compressible = TestCase('cht_compressible') + cht_compressible.cfg_dir = "coupled_cht/comp_2d" + cht_compressible.cfg_file = "cht_2d_3cylinders.cfg" + cht_compressible.test_iter = 10 + cht_compressible.test_vals = [-4.256051, -0.532725, -0.532724, -0.532725] + cht_compressible.multizone = True + test_list.append(cht_compressible) + + # 2D CHT case streamwise periodicity. Also test Multizone PerSurface screen output. + sp_pinArray_cht_2d_dp_hf = TestCase('sp_pinArray_cht_2d_dp_hf') + sp_pinArray_cht_2d_dp_hf.cfg_dir = "incomp_navierstokes/streamwise_periodic/chtPinArray_2d" + sp_pinArray_cht_2d_dp_hf.cfg_file = "configMaster.cfg" + sp_pinArray_cht_2d_dp_hf.test_iter = 100 + sp_pinArray_cht_2d_dp_hf.test_vals = [0.691407, 2.834803, -1.205148, -0.677171, 208.023676, 350.080000, -0.000000, -0.677170, 0.677170] + sp_pinArray_cht_2d_dp_hf.multizone = True + test_list.append(sp_pinArray_cht_2d_dp_hf) + + # simple small 3D pin case massflow periodic with heatflux BC + sp_pinArray_3d_cht_mf_hf_tp = TestCase('sp_pinArray_3d_cht_mf_hf_tp') + sp_pinArray_3d_cht_mf_hf_tp.cfg_dir = "incomp_navierstokes/streamwise_periodic/chtPinArray_3d" + sp_pinArray_3d_cht_mf_hf_tp.cfg_file = "configMaster.cfg" + sp_pinArray_3d_cht_mf_hf_tp.test_iter = 30 + sp_pinArray_3d_cht_mf_hf_tp.test_vals = [-1.116268, 3.008626, -0.634287, -0.009805, 104.600487, 410.310000, 0.000000] + sp_pinArray_3d_cht_mf_hf_tp.multizone = True + test_list.append(sp_pinArray_3d_cht_mf_hf_tp) + + + ########################## + ### Python wrapper ### + ########################## + + # NACA0012 + pywrapper_naca0012 = TestCase('pywrapper_naca0012') + pywrapper_naca0012.cfg_dir = "euler/naca0012" + pywrapper_naca0012.cfg_file = "inv_NACA0012_Roe.cfg" + pywrapper_naca0012.test_iter = 80 + pywrapper_naca0012.test_vals = [-5.701280, -5.186480, 0.334856, 0.023342] + pywrapper_naca0012.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--parallel -f") + test_list.append(pywrapper_naca0012) + + # NACA0012 (SST, FUN3D results for finest grid: CL=1.0840, CD=0.01253) + pywrapper_turb_naca0012_sst = TestCase('pywrapper_turb_naca0012_sst') + pywrapper_turb_naca0012_sst.cfg_dir = "rans/naca0012" + pywrapper_turb_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg" + pywrapper_turb_naca0012_sst.test_iter = 10 + pywrapper_turb_naca0012_sst.test_vals = [-12.094736, -15.251092, -5.906365, 1.070413, 0.015775, -2.376001, 0.000000] + pywrapper_turb_naca0012_sst.test_vals_aarch64 = [-12.075620, -15.246688, -5.861276, 1.070036, 0.015841, -1.991001, 0.000000] + pywrapper_turb_naca0012_sst.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--parallel -f") + pywrapper_turb_naca0012_sst.timeout = 3200 + test_list.append(pywrapper_turb_naca0012_sst) + + # Square cylinder + pywrapper_square_cylinder = TestCase('pywrapper_square_cylinder') + pywrapper_square_cylinder.cfg_dir = "unsteady/square_cylinder" + pywrapper_square_cylinder.cfg_file = "turb_square.cfg" + pywrapper_square_cylinder.test_iter = 10 + pywrapper_square_cylinder.test_vals = [-1.178521, -0.349772, 1.401402, 2.359105, 1.401729, 2.300974, 0.000000] + pywrapper_square_cylinder.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--parallel -f") + pywrapper_square_cylinder.unsteady = True + test_list.append(pywrapper_square_cylinder) + + # Aeroelastic + pywrapper_aeroelastic = TestCase('pywrapper_aeroelastic') + pywrapper_aeroelastic.cfg_dir = "aeroelastic" + pywrapper_aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" + pywrapper_aeroelastic.test_iter = 2 + pywrapper_aeroelastic.test_vals = [-1.876625, 4.021088, 0.083361, 0.026765, -0.001638, -0.000130, -0.947102] + pywrapper_aeroelastic.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--parallel -f") + pywrapper_aeroelastic.unsteady = True + test_list.append(pywrapper_aeroelastic) + + # Custom FEA load + pywrapper_custom_fea_load = TestCase('pywrapper_custom_fea_load') + pywrapper_custom_fea_load.cfg_dir = "py_wrapper/custom_load_fea" + pywrapper_custom_fea_load.cfg_file = "config.cfg" + pywrapper_custom_fea_load.test_iter = 13 + pywrapper_custom_fea_load.test_vals = [-7.262040, -4.945686, -14.163208, 27.000000, -6.285429, 362.230000] + pywrapper_custom_fea_load.command = TestCase.Command("mpirun -np 2", "python", "run.py") + test_list.append(pywrapper_custom_fea_load) + + # FSI, 2d + pywrapper_fsi2d = TestCase('pywrapper_fsi2d') + pywrapper_fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" + pywrapper_fsi2d.cfg_file = "configFSI.cfg" + pywrapper_fsi2d.test_iter = 4 + pywrapper_fsi2d.test_vals = [4.000000, 0.000000, -3.725519, -4.278760] + pywrapper_fsi2d.command = TestCase.Command("mpirun -np 2", "SU2_CFD.py", "--nZone 2 --fsi True --parallel -f") + pywrapper_fsi2d.unsteady = True + pywrapper_fsi2d.multizone = True + test_list.append(pywrapper_fsi2d) + + # Unsteady FSI with custom load + pywrapper_unsteadyFSI = TestCase('pywrapper_unsteadyFSI') + pywrapper_unsteadyFSI.cfg_dir = "py_wrapper/dyn_fsi" + pywrapper_unsteadyFSI.cfg_file = "config.cfg" + pywrapper_unsteadyFSI.test_iter = 4 + pywrapper_unsteadyFSI.test_vals = [0.000000, 30.000000, 5.000000, 48.000000, -1.756676, -2.828284, -7.625018, -6.863923, 0.000156] + pywrapper_unsteadyFSI.command = TestCase.Command("mpirun -np 2", "python", "run.py") + pywrapper_unsteadyFSI.unsteady = True + pywrapper_unsteadyFSI.multizone = True + test_list.append(pywrapper_unsteadyFSI) + + # Unsteady CHT + pywrapper_unsteadyCHT = TestCase('pywrapper_unsteadyCHT') + pywrapper_unsteadyCHT.cfg_dir = "py_wrapper/flatPlate_unsteady_CHT" + pywrapper_unsteadyCHT.cfg_file = "unsteady_CHT_FlatPlate_Conf.cfg" + pywrapper_unsteadyCHT.test_iter = 5 + pywrapper_unsteadyCHT.test_vals = [-1.614168, 2.260203, -0.008065, 0.201068] + pywrapper_unsteadyCHT.command = TestCase.Command("mpirun -np 2", "python", "launch_unsteady_CHT_FlatPlate.py --parallel -f") + pywrapper_unsteadyCHT.unsteady = True + test_list.append(pywrapper_unsteadyCHT) + + # Rigid motion + pywrapper_rigidMotion = TestCase('pywrapper_rigidMotion') + pywrapper_rigidMotion.cfg_dir = "py_wrapper/flatPlate_rigidMotion" + pywrapper_rigidMotion.cfg_file = "flatPlate_rigidMotion_Conf.cfg" + pywrapper_rigidMotion.test_iter = 5 + pywrapper_rigidMotion.test_vals = [-1.607009, 2.260791, 0.350196, 0.089496] + pywrapper_rigidMotion.command = TestCase.Command("mpirun -np 2", "python", "launch_flatPlate_rigidMotion.py --parallel -f") + pywrapper_rigidMotion.unsteady = True + test_list.append(pywrapper_rigidMotion) + + # Deforming Bump in Channel + pywrapper_deformingBump = TestCase('pywrapper_deformingBump') + pywrapper_deformingBump.cfg_dir = "py_wrapper/deforming_bump_in_channel" + pywrapper_deformingBump.cfg_file = "config.cfg" + pywrapper_deformingBump.test_iter = 1 + pywrapper_deformingBump.test_vals = [0.500000, 0.000000, -2.556310, -1.270836, -2.351316, 2.905858, 9.953163, -0.946408] + pywrapper_deformingBump.command = TestCase.Command("mpirun -np 2", "python", "run.py") + pywrapper_deformingBump.unsteady = True + test_list.append(pywrapper_deformingBump) + + # custom source: buoyancy term + pywrapper_buoyancy = TestCase('pywrapper_buoyancy') + pywrapper_buoyancy.cfg_dir = "py_wrapper/custom_source_buoyancy" + pywrapper_buoyancy.cfg_file = "lam_buoyancy_cavity.cfg" + pywrapper_buoyancy.test_iter = 0 + pywrapper_buoyancy.test_vals = [-13.227985, -13.678479, -13.050758, -7.777151] + pywrapper_buoyancy.test_vals_aarch64 = [-13.227985, -13.678478, -13.050758, -7.777151] + pywrapper_buoyancy.command = TestCase.Command("mpirun -np 2", "python", "run.py") + test_list.append(pywrapper_buoyancy) + + # custom source: turbulent flamespeed closure (Zimont model) for PSI testcase + pywrapper_zimont = TestCase('pywrapper_zimont') + pywrapper_zimont.cfg_dir = "py_wrapper/turbulent_premixed_psi" + pywrapper_zimont.cfg_file = "psi.cfg" + pywrapper_zimont.test_iter = 0 + pywrapper_zimont.test_vals = [-3.415653, -2.221781, -3.107330, -2.569248, 0.531838, -3.796447] + pywrapper_zimont.command = TestCase.Command("mpirun -np 2", "python", "run.py") + test_list.append(pywrapper_zimont) + + + # Heat solver unsteady with source + pywrapper_Unst_Heat_Source = TestCase('pywrapper_Unst_Heat_Source') + pywrapper_Unst_Heat_Source.cfg_dir = "py_wrapper/custom_heat_source" + pywrapper_Unst_Heat_Source.cfg_file = "run.py" + pywrapper_Unst_Heat_Source.test_iter = 10 + pywrapper_Unst_Heat_Source.unsteady = True + pywrapper_Unst_Heat_Source.test_vals = [-5.235402, 300.010000, 300.000000] + pywrapper_Unst_Heat_Source.command = TestCase.Command("mpirun -n 2", "python", "run.py") + test_list.append(pywrapper_Unst_Heat_Source) + + ############################################## + ### Method of Manufactured Solutions (MMS) ### + ############################################## + + # FVM, compressible, euler (periodic isentropic vortex) + mms_fvm_vortex = TestCase('mms_fvm_vortex') + mms_fvm_vortex.cfg_dir = "mms/fvm_euler" + mms_fvm_vortex.cfg_file = "inv_mms_vortex.cfg" + mms_fvm_vortex.test_iter = 10 + mms_fvm_vortex.test_vals = [-5.704300, -4.848072, 0.000000, 0.000000] + mms_fvm_vortex.unsteady = True + test_list.append(mms_fvm_vortex) + + # FVM, compressible, laminar N-S + mms_fvm_ns = TestCase('mms_fvm_ns') + mms_fvm_ns.cfg_dir = "mms/fvm_navierstokes" + mms_fvm_ns.cfg_file = "lam_mms_roe.cfg" + mms_fvm_ns.test_iter = 20 + mms_fvm_ns.test_vals = [-2.808514, 2.152654, 0.000000, 0.000000] + mms_fvm_ns.tol = 0.0001 + test_list.append(mms_fvm_ns) + + # FVM, incompressible, euler + mms_fvm_inc_euler = TestCase('mms_fvm_inc_euler') + mms_fvm_inc_euler.cfg_dir = "mms/fvm_incomp_euler" + mms_fvm_inc_euler.cfg_file = "inv_mms_jst.cfg" + mms_fvm_inc_euler.test_iter = 20 + mms_fvm_inc_euler.test_vals = [-9.128735, -9.441757, 0.000000, 0.000000] + mms_fvm_inc_euler.tol = 0.0001 + test_list.append(mms_fvm_inc_euler) + + # FVM, incompressible, laminar N-S + mms_fvm_inc_ns = TestCase('mms_fvm_inc_ns') + mms_fvm_inc_ns.cfg_dir = "mms/fvm_incomp_navierstokes" + mms_fvm_inc_ns.cfg_file = "lam_mms_fds.cfg" + mms_fvm_inc_ns.test_iter = 20 + mms_fvm_inc_ns.test_vals = [-7.414944, -7.631546, 0.000000, 0.000000] + mms_fvm_inc_ns.tol = 0.0001 + test_list.append(mms_fvm_inc_ns) + + # DG, compressible, euler + ringleb_dg_euler = TestCase('ringleb_dg_euler') + ringleb_dg_euler.cfg_dir = "mms/dg_ringleb" + ringleb_dg_euler.cfg_file = "ringleb_dg.cfg" + ringleb_dg_euler.test_iter = 100 + ringleb_dg_euler.test_vals = [-5.136652, -4.724941, 0.000000, 0.000000] + ringleb_dg_euler.tol = 0.0001 + test_list.append(ringleb_dg_euler) + + # DG, compressible, laminar N-S + mms_dg_ns = TestCase('mms_dg_ns') + mms_dg_ns.cfg_dir = "mms/dg_navierstokes" + mms_dg_ns.cfg_file = "lam_mms_dg.cfg" + mms_dg_ns.test_iter = 100 + mms_dg_ns.test_vals = [-1.845393, 3.520699, 0.000000, 0.000000] + mms_dg_ns.tol = 0.0001 + test_list.append(mms_dg_ns) + + # DG, compressible, laminar N-S 3D + mms_dg_ns_3d = TestCase('mms_dg_ns_3d') + mms_dg_ns_3d.cfg_dir = "mms/dg_navierstokes_3d" + mms_dg_ns_3d.cfg_file = "lam_mms_dg_3d.cfg" + mms_dg_ns_3d.test_iter = 100 + mms_dg_ns_3d.test_vals = [-0.146826, 5.356413, 0.000000, 0.000000] + mms_dg_ns_3d.tol = 0.0001 + test_list.append(mms_dg_ns_3d) + + ##################### + ## Species solver ### + ##################### + + # 2 species (1 eq) primitive venturi mixing using mixing model + species2_primitiveVenturi_mixingmodel = TestCase('species2_primitiveVenturi_mixingmodel') + species2_primitiveVenturi_mixingmodel.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel.cfg_file = "species2_primitiveVenturi_mixingmodel.cfg" + species2_primitiveVenturi_mixingmodel.test_iter = 50 + species2_primitiveVenturi_mixingmodel.test_vals = [-5.735589, -4.564867, -4.669647, -5.794093, -0.067124, -5.583396, 5.000000, -1.375324, 5.000000, -4.869799, 5.000000, -1.453419, 0.000381, 0.000366, 0.000016, 0.000000] + test_list.append(species2_primitiveVenturi_mixingmodel) + + # 2 species (1 eq) primitive venturi mixing using mixing model and bounded scalar transport + species2_primitiveVenturi_mixingmodel_boundedscalar = TestCase('species2_primitiveVenturi_mixingmodel_boundedscalar') + species2_primitiveVenturi_mixingmodel_boundedscalar.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel_boundedscalar.cfg_file = "species2_primitiveVenturi_mixingmodel_boundedscalar.cfg" + species2_primitiveVenturi_mixingmodel_boundedscalar.test_iter = 50 + species2_primitiveVenturi_mixingmodel_boundedscalar.test_vals = [-5.689670, -4.511504, -4.615493, -5.795205, -0.113336, -5.704986, 5.000000, -1.433752, 5.000000, -4.921374, 5.000000, -1.771015, 0.000318, 0.000318, 0.000000, 0.000000] + test_list.append(species2_primitiveVenturi_mixingmodel_boundedscalar) + + # 2 species (1 eq) primitive venturi mixing using mixing model including viscosity, thermal conductivity and inlet markers for SA turbulence model + species2_primitiveVenturi_mixingmodel_viscosity = TestCase('species2_primitiveVenturi_mixingmodel_viscosity') + species2_primitiveVenturi_mixingmodel_viscosity.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel_viscosity.cfg_file = "species2_primitiveVenturi_mixingmodel_viscosity.cfg" + species2_primitiveVenturi_mixingmodel_viscosity.test_iter = 50 + species2_primitiveVenturi_mixingmodel_viscosity.test_vals = [-5.243310, -3.635941, -3.892111, -7.558656, -5.131491, 5.000000, -1.668102, 5.000000, -3.474705, 5.000000, -2.085931, 2.494619, 0.985334, 0.599879, 0.909406] + test_list.append(species2_primitiveVenturi_mixingmodel_viscosity) + + # 2 species (1 eq) primitive venturi mixing using mixing model including heat capacity and mass diffusivity + species2_primitiveVenturi_mixingmodel_heatcapacity_H2 = TestCase('species2_primitiveVenturi_mixingmodel_heatcapacity_H2.cfg') + species2_primitiveVenturi_mixingmodel_heatcapacity_H2.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel_heatcapacity_H2.cfg_file = "species2_primitiveVenturi_mixingmodel_heatcapacity_H2.cfg" + species2_primitiveVenturi_mixingmodel_heatcapacity_H2.test_iter = 50 + species2_primitiveVenturi_mixingmodel_heatcapacity_H2.test_vals = [-5.837690, -4.641815, -4.576060, -6.662811, 2.074231, -5.482861, 30.000000, -7.308120, 12.000000, -8.022273, 8.000000, -8.828506, 2.092336, 1.000000, 0.600000, 0.492336] + test_list.append(species2_primitiveVenturi_mixingmodel_heatcapacity_H2) + + # 2 species (1 eq) primitive venturi mixing using mixing model including heat capacity and mass diffusivity NonDimensional case + species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND = TestCase('species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.cfg') + species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.cfg_file = "species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.cfg" + species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.test_iter = 50 + species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND.test_vals = [-5.706757, -5.216206, -5.142503, -7.926926, 1.492326, -5.366923, 10.000000, -2.738884, 3.000000, -5.208126, 5.000000, -5.742459, 2.092365, 1.000000, 0.600000, 0.492365] + test_list.append(species2_primitiveVenturi_mixingmodel_heatcapacity_H2_ND) + + # 2 species (1 eq) primitive venturi mixing using mixing model solving enthalpy equation using preconditioning + JST convective scheme + species2_primitiveVenturi_JST = TestCase('species2_primitiveVenturi_JST.cfg') + species2_primitiveVenturi_JST.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_JST.cfg_file = "species2_primitiveVenturi_JST.cfg" + species2_primitiveVenturi_JST.test_iter = 50 + species2_primitiveVenturi_JST.test_vals = [-6.035464, -7.071918, -7.201080, -1.142940, -8.348316, 10.000000, -3.223791, 10.000000, -4.435519, 0.049048, 0.014468, 0.020068, 0.014512, 25.000000] + test_list.append(species2_primitiveVenturi_JST) + + # 2 species (1 eq) primitive venturi mixing using mixing model solving enthalpy equation using preconditioning + Lax-Friedrich convective scheme + species2_primitiveVenturi_Lax_Friedrich = TestCase('species2_primitiveVenturi_Lax_Friedrich.cfg') + species2_primitiveVenturi_Lax_Friedrich.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_Lax_Friedrich.cfg_file = "species2_primitiveVenturi_Lax_Friedrich.cfg" + species2_primitiveVenturi_Lax_Friedrich.test_iter = 50 + species2_primitiveVenturi_Lax_Friedrich.test_vals = [-6.092441, -6.981653, -6.982959, -1.195023, -8.245626, 10.000000, -3.472515, 8.000000, -5.356121, 0.048943, 0.014468, 0.020007, 0.014468, 12.500000] + test_list.append(species2_primitiveVenturi_Lax_Friedrich) + + # 2 species (1 eq) primitive venturi mixing + species2_primitiveVenturi = TestCase('species2_primitiveVenturi') + species2_primitiveVenturi.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi.cfg_file = "species2_primitiveVenturi.cfg" + species2_primitiveVenturi.test_iter = 50 + species2_primitiveVenturi.test_vals = [-5.470699, -4.435379, -4.486544, -5.327925, -0.866369, -5.623281, 5.000000, -0.557915, 5.000000, -2.599732, 5.000000, -0.536608, 0.000037, 0.000037, 0.000000, 0.000000] + test_list.append(species2_primitiveVenturi) + + # 2 species (1 eq) primitive venturi mixing with bounded scalar transport + species_primitiveVenturi_boundedscalar = TestCase('species2_primitiveVenturi_bounded_scalar') + species_primitiveVenturi_boundedscalar.cfg_dir = "species_transport/venturi_primitive_3species" + species_primitiveVenturi_boundedscalar.cfg_file = "species2_primitiveVenturi_boundedscalar.cfg" + species_primitiveVenturi_boundedscalar.test_iter = 50 + species_primitiveVenturi_boundedscalar.test_vals = [-5.537734, -4.375388, -4.475128, -5.597904, -0.870563, -5.633513, 5.000000, -1.461524, 5.000000, -4.142508, 5.000000, -1.727874, 0.000438, 0.000438, 0.000000, 0.000000] + test_list.append(species_primitiveVenturi_boundedscalar) + + # 2 species (1 eq) primitive venturi mixing, unsteady and pressure-based + species2_primitiveVenturi_pb_unsteady = TestCase('species2_primitiveVenturi_pb_unsteady') + species2_primitiveVenturi_pb_unsteady.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_pb_unsteady.cfg_file = "pb_species2_primitiveVenturi_unsteady.cfg" + species2_primitiveVenturi_pb_unsteady.test_iter = 1 + species2_primitiveVenturi_pb_unsteady.test_vals = [-4.109794, -3.353379, -3.837678, -4.013330] + species2_primitiveVenturi_pb_unsteady.unsteady = True + test_list.append(species2_primitiveVenturi_pb_unsteady) + + # 2 species (1 eq) primitive venturi mixing using mixing model including inlet markers for turbulent intensity and viscosity ratios + species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS = TestCase('species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.cfg') + species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.cfg_dir = "species_transport/venturi_primitive_3species" + species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.cfg_file = "species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.cfg" + species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.test_iter = 50 + species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS.test_vals = [-4.847325, -1.922154, -1.947527, -0.716546, 1.211740, -3.930346, 21.000000, -5.152522, 9.000000, -5.325373, 4.000000, -5.865914, 2.000000, 1.000000, 0.000000, 1.000000] + test_list.append(species2_primitiveVenturi_mixingmodel_TURBULENT_MARKERS) + + # 3 species (2 eq) primitive venturi mixing with inlet files. + # Note that the residuals are exactly the same as for the non-inlet case which should be the case for a fresh inlet file. + species3_primitiveVenturi_inletFile = TestCase('species3_primitiveVenturi_inletFile') + species3_primitiveVenturi_inletFile.cfg_dir = "species_transport/venturi_primitive_3species" + species3_primitiveVenturi_inletFile.cfg_file = "species3_primitiveVenturi_inletFile.cfg" + species3_primitiveVenturi_inletFile.test_iter = 50 + species3_primitiveVenturi_inletFile.test_vals = [-5.541163, -4.505905, -4.557116, -5.398846, -0.938219, -5.817818, -5.944195, 5.000000, -0.555895, 5.000000, -2.598254, 5.000000, -0.597122] + test_list.append(species3_primitiveVenturi_inletFile) + + # 3 species (2 eq) primitive venturi mixing with new flux and value boundary conditions + species3_primitiveVenturi_fluxvalue = TestCase('species3_primitiveVenturi_fluxvalue') + species3_primitiveVenturi_fluxvalue.cfg_dir = "species_transport/venturi_primitive_3species" + species3_primitiveVenturi_fluxvalue.cfg_file = "species3_primitiveVenturi_flux_value.cfg" + species3_primitiveVenturi_fluxvalue.test_iter = 50 + species3_primitiveVenturi_fluxvalue.test_vals = [-4.563242, -5.504658, -0.861266, -5.822957, -6.458367, 1.257912, 0.122219, 0.317705, 0.817988, 0.241494, 0.102507, 0.004981, 0.134006] + test_list.append(species3_primitiveVenturi_fluxvalue) + + # rectangle passive transport validation + species_passive_val = TestCase('species_passive_val') + species_passive_val.cfg_dir = "species_transport/passive_transport_validation" + species_passive_val.cfg_file = "passive_transport.cfg" + species_passive_val.test_iter = 50 + species_passive_val.test_vals = [-16.493002, -16.246291, -16.871574, -4.257599, 10.000000, -4.526973, 8.000000, -5.193350, 0.186610, 0.000000] + species_passive_val.test_vals_aarch64 = [-16.517744, -16.282420, -16.871663, -4.257599, 10.000000, -4.278151, 8.000000, -5.193350, 0.186610, 0.000000] + test_list.append(species_passive_val) + + # rectangle active 2-species transport + species_active_transport_temp_limits = TestCase('species_active_transport_temp_limits') + species_active_transport_temp_limits.cfg_dir = "species_transport/passive_transport_validation" + species_active_transport_temp_limits.cfg_file = "active_species_transport_temp_limits.cfg" + species_active_transport_temp_limits.test_iter = 50 + species_active_transport_temp_limits.test_vals = [-1.785041, -2.565628, 2.460433, -3.188111, 9.000000, -5.551493, 3.000000, -5.826106, 1.456438, 0.998134, 0.001475, 0.456829] + species_active_transport_temp_limits.test_vals_aarch64 = [-1.785041, -2.565628, 2.460433, -3.188111, 9.000000, -5.551493, 3.000000, -5.826106, 1.456438, 0.998134, 0.001475, 0.456829] + test_list.append(species_active_transport_temp_limits) + + # species transport, 3 species with multizone (2 fluid regions) + species3_multizone_restart = TestCase('species3_multizone_restart') + species3_multizone_restart.cfg_dir = "species_transport/multizone" + species3_multizone_restart.cfg_file = "configMaster.cfg" + species3_multizone_restart.test_iter = 5 + species3_multizone_restart.test_vals = [-4.621056, -4.492840] + species3_multizone_restart.multizone = True + test_list.append(species3_multizone_restart) + + ##################### + ## CGNS writer ### + ##################### + + # CGNS writer + cgns_writer = TestCase('cgns_writer') + cgns_writer.cfg_dir = "cgns_writer" + cgns_writer.cfg_file = "config.cfg" + cgns_writer.test_iter = 1 + cgns_writer.test_vals = [-2.974473, 0.640256, 5.371028, -6.732060] + cgns_writer.new_output = True + test_list.append(cgns_writer) + + # The CGNS output of a 2D mesh is read back as mesh, with the restart written by the same run. + # The read-back test must run after the test that writes the files. + cgns_output = TestCase('cgns_output') + cgns_output.cfg_dir = "output_writers" + cgns_output.cfg_file = "cgns_output.cfg" + cgns_output.test_iter = 2 + cgns_output.test_vals = [-1.684071, 0.454658, 3.802834, -2.624573, 6.956844, 0.091480] + test_list.append(cgns_output) + + cgns_mesh_readback = TestCase('cgns_mesh_readback') + cgns_mesh_readback.cfg_dir = "output_writers" + cgns_mesh_readback.cfg_file = "cgns_mesh_readback.cfg" + cgns_mesh_readback.test_iter = 2 + cgns_mesh_readback.test_vals = [-2.480775, 0.352445, 2.998807, -3.103293, 6.892515, 0.085107] + test_list.append(cgns_mesh_readback) + + # Same for a 3D mesh with mixed elements, whose boundaries are written as MIXED sections. + cgns_output_bend = TestCase('cgns_output_bend') + cgns_output_bend.cfg_dir = "output_writers" + cgns_output_bend.cfg_file = "cgns_output_bend.cfg" + cgns_output_bend.test_iter = 2 + cgns_output_bend.test_vals = [-2.413023, -2.210141, -2.545448, -3.057828, 2.475696] + test_list.append(cgns_output_bend) + + cgns_mesh_readback_bend = TestCase('cgns_mesh_readback_bend') + cgns_mesh_readback_bend.cfg_dir = "output_writers" + cgns_mesh_readback_bend.cfg_file = "cgns_mesh_readback_bend.cfg" + cgns_mesh_readback_bend.test_iter = 2 + cgns_mesh_readback_bend.test_vals = [-3.256728, -2.769844, -3.007840, -3.567315, 4.318459] + test_list.append(cgns_mesh_readback_bend) + + ###################################### + ### RUN CHT TEST WITH FILEDIFF ### + ###################################### + + # 2D planar laminar premixed methane flame on isothermal burner with conjugate heat transfer in cooling fin (restart) + cfd_flamelet_ch4_cht = TestCase('cfd_flamelet_ch4_cht') + cfd_flamelet_ch4_cht.cfg_dir = "flamelet/03_laminar_premixed_ch4_flame_cht_cfd" + cfd_flamelet_ch4_cht.cfg_file = "lam_prem_ch4_cht_cfd_master.cfg" + cfd_flamelet_ch4_cht.test_iter = 5 + cfd_flamelet_ch4_cht.test_vals = [-7.223149, -6.338839, -8.334392, -10.410156, -3.171365, -10.884464, -12.615132, -6.614396] + cfd_flamelet_ch4_cht.timeout = 1600 + cfd_flamelet_ch4_cht.multizone = True + test_list.append(cfd_flamelet_ch4_cht) + + ###################################### + ### RUN TESTS ### + ###################################### + + # set suitable defaults unless something else has been specified + # command: "mpirun -n 2 SU2_CFD" + # timeout: 1600 + # tol: 0.00001 + for test in test_list: + if test.command.empty(): + test.command = TestCase.Command("mpirun -n 2", "SU2_CFD") + if test.timeout == 0: + test.timeout = 1600 + if test.tol == 0.0: + test.tol = 0.00001 + + pass_list = [ test.run_test() for test in test_list ] + + ###################################### + ### RUN SU2_SOL TESTS ### + ###################################### + + # parallel STL output using + stl_writer_test = TestCase('stl_writer_test') + stl_writer_test.cfg_dir = "rans/oneram6" + stl_writer_test.cfg_file = "turb_ONERAM6.cfg" + stl_writer_test.test_iter = 1 + stl_writer_test.command = TestCase.Command("mpirun -n 2", "SU2_SOL") + stl_writer_test.timeout = 1600 + stl_writer_test.reference_file = "surface_flow.stl.ref" + stl_writer_test.test_file = "surface_flow.stl" + pass_list.append(stl_writer_test.run_filediff()) + test_list.append(stl_writer_test) + + # The ASCII writers write in parallel, compare their files with those of the previous writers. + # ITER= 0 (test_iter = -1): the restart solution is written without iterating. + ascii_restart_writer = TestCase('ascii_restart_writer') + ascii_restart_writer.cfg_dir = "output_writers" + ascii_restart_writer.cfg_file = "ascii_output.cfg" + ascii_restart_writer.test_iter = -1 + ascii_restart_writer.command = TestCase.Command("mpirun -n 2", "SU2_CFD") + ascii_restart_writer.timeout = 1600 + ascii_restart_writer.reference_file = "restart_flow.csv.ref" + ascii_restart_writer.test_file = "restart_flow.csv" + pass_list.append(ascii_restart_writer.run_filediff()) + test_list.append(ascii_restart_writer) + + for tag, test_file in [("ascii_paraview_writer", "flow.vtk"), ("ascii_tecplot_writer", "flow.dat"), + ("ascii_surface_paraview_writer", "surface_flow.vtk"), + ("ascii_surface_tecplot_writer", "surface_flow.dat")]: + ascii_writer = TestCase(tag) + ascii_writer.cfg_dir = "output_writers" + ascii_writer.cfg_file = "ascii_output.cfg" + ascii_writer.test_iter = -1 + ascii_writer.command = TestCase.Command("mpirun -n 2", "SU2_SOL") + ascii_writer.timeout = 1600 + ascii_writer.reference_file = test_file + ".ref" + ascii_writer.test_file = test_file + pass_list.append(ascii_writer.run_filediff()) + test_list.append(ascii_writer) + + # SU2 mesh file written by SU2_DEF without deformation + ascii_mesh_writer = TestCase('ascii_mesh_writer') + ascii_mesh_writer.cfg_dir = "output_writers" + ascii_mesh_writer.cfg_file = "ascii_output.cfg" + ascii_mesh_writer.test_iter = -1 + ascii_mesh_writer.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + ascii_mesh_writer.timeout = 1600 + ascii_mesh_writer.reference_file = "mesh_out.su2.ref" + ascii_mesh_writer.test_file = "mesh_out.su2" + pass_list.append(ascii_mesh_writer.run_filediff()) + test_list.append(ascii_mesh_writer) + + ###################################### + ### RUN SU2_DEF TESTS ### + ###################################### + + # Inviscid NACA0012 (triangles) + naca0012_def = TestCase('naca0012_def') + naca0012_def.cfg_dir = "deformation/naca0012" + naca0012_def.cfg_file = "def_NACA0012.cfg" + naca0012_def.test_iter = 10 + naca0012_def.test_vals = [0.00352488] #residual + naca0012_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca0012_def.timeout = 1600 + naca0012_def.tol = 1e-8 + + pass_list.append(naca0012_def.run_def()) + test_list.append(naca0012_def) + + # Inviscid NACA0012 based on Camberline deformation (triangles) + naca0012_def_file_camber = TestCase('naca0012_def_camber') + naca0012_def_file_camber.cfg_dir = "deformation/naca0012" + naca0012_def_file_camber.cfg_file = "def_NACA0012_camber.cfg" + naca0012_def_file_camber.test_iter = 10 + naca0012_def_file_camber.test_vals = [0.00854844] + naca0012_def_file_camber.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca0012_def_file_camber.timeout = 1600 + naca0012_def_file_camber.tol = 1e-8 + + pass_list.append(naca0012_def_file_camber.run_def()) + test_list.append(naca0012_def_file_camber) + + # Inviscid NACA0012 (triangles) RBF + naca0012_rbf_def = TestCase('naca0012_def') + naca0012_rbf_def.cfg_dir = "deformation/naca0012" + naca0012_rbf_def.cfg_file = "def_NACA0012_rbf.cfg" + naca0012_rbf_def.test_iter = 12 + naca0012_rbf_def.test_vals = [0.000782551, 26] # error + naca0012_rbf_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca0012_rbf_def.timeout = 1600 + naca0012_rbf_def.tol = 1e-8 + + pass_list.append(naca0012_def.run_def()) + test_list.append(naca0012_def) + + # Inviscid NACA0012 based on SURFACE_FILE input (surface_bump.dat) + naca0012_def_file = TestCase('naca0012_def_file') + naca0012_def_file.cfg_dir = "deformation/naca0012" + naca0012_def_file.cfg_file = "surface_file_NACA0012.cfg" + naca0012_def_file.test_iter = 10 + naca0012_def_file.test_vals = [0.00352488] #residual + naca0012_def_file.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca0012_def_file.timeout = 1600 + naca0012_def_file.tol = 1e-8 + + pass_list.append(naca0012_def_file.run_def()) + test_list.append(naca0012_def_file) + + # RAE2822 (mixed tris + quads) + rae2822_def = TestCase('rae2822_def') + rae2822_def.cfg_dir = "deformation/rae2822" + rae2822_def.cfg_file = "def_RAE2822.cfg" + rae2822_def.test_iter = 10 + rae2822_def.test_vals = [8.24002e-09] #residual + rae2822_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + rae2822_def.timeout = 1600 + rae2822_def.tol = 1e-13 + + pass_list.append(rae2822_def.run_def()) + test_list.append(rae2822_def) + + # Turb NACA4412 (quads, wall distance) + naca4412_def = TestCase('naca4412_def') + naca4412_def.cfg_dir = "deformation/naca4412" + naca4412_def.cfg_file = "def_NACA4412.cfg" + naca4412_def.test_iter = 10 + naca4412_def.test_vals = [2.210380e-12] #residual + naca4412_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca4412_def.timeout = 1600 + naca4412_def.tol = 1e-12 + + pass_list.append(naca4412_def.run_def()) + test_list.append(naca4412_def) + + # Brick of tets (inverse volume) + brick_tets_def = TestCase('brick_tets_def') + brick_tets_def.cfg_dir = "deformation/brick_tets" + brick_tets_def.cfg_file = "def_brick_tets.cfg" + brick_tets_def.test_iter = 10 + brick_tets_def.test_vals = [0.000955394] #residual + brick_tets_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_tets_def.timeout = 1600 + brick_tets_def.tol = 1e-9 + + pass_list.append(brick_tets_def.run_def()) + test_list.append(brick_tets_def) + + # Brick of isotropic hexas (inverse volume) + brick_hex_def = TestCase('brick_hex_def') + brick_hex_def.cfg_dir = "deformation/brick_hex" + brick_hex_def.cfg_file = "def_brick_hex.cfg" + brick_hex_def.test_iter = 10 + brick_hex_def.test_vals = [0.000166575] #residual + brick_hex_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_hex_def.timeout = 1600 + brick_hex_def.tol = 1e-9 + + pass_list.append(brick_hex_def.run_def()) + test_list.append(brick_hex_def) + + # Brick with a pyramid layer (inverse volume) + brick_pyra_def = TestCase('brick_pyra_def') + brick_pyra_def.cfg_dir = "deformation/brick_pyra" + brick_pyra_def.cfg_file = "def_brick_pyra.cfg" + brick_pyra_def.test_iter = 10 + brick_pyra_def.test_vals = [0.00161454] #residual + brick_pyra_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_pyra_def.timeout = 1600 + brick_pyra_def.tol = 1e-8 + + pass_list.append(brick_pyra_def.run_def()) + test_list.append(brick_pyra_def) + + # Brick of isotropic prisms (inverse volume) + brick_prism_def = TestCase('brick_prism_def') + brick_prism_def.cfg_dir = "deformation/brick_prism" + brick_prism_def.cfg_file = "def_brick_prism.cfg" + brick_prism_def.test_iter = 10 + brick_prism_def.test_vals = [0.00254732] #residual + brick_prism_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_prism_def.timeout = 1600 + brick_prism_def.tol = 1e-8 + + pass_list.append(brick_prism_def.run_def()) + test_list.append(brick_prism_def) + + # Brick of prisms with high aspect ratio cells near the wall (wall distance) + brick_prism_rans_def = TestCase('brick_prism_rans_def') + brick_prism_rans_def.cfg_dir = "deformation/brick_prism_rans" + brick_prism_rans_def.cfg_file = "def_brick_prism_rans.cfg" + brick_prism_rans_def.test_iter = 10 + brick_prism_rans_def.test_vals = [2.99461e-07] #residual + brick_prism_rans_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_prism_rans_def.timeout = 1600 + brick_prism_rans_def.tol = 1e-12 + + pass_list.append(brick_prism_rans_def.run_def()) + test_list.append(brick_prism_rans_def) + + # Brick of hexas with high aspect ratio cells near the wall (inverse volume) + brick_hex_rans_def = TestCase('brick_hex_rans_def') + brick_hex_rans_def.cfg_dir = "deformation/brick_hex_rans" + brick_hex_rans_def.cfg_file = "def_brick_hex_rans.cfg" + brick_hex_rans_def.test_iter = 10 + brick_hex_rans_def.test_vals = [3.54213e-06] #residual + brick_hex_rans_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + brick_hex_rans_def.timeout = 1600 + brick_hex_rans_def.tol = 1e-11 + + pass_list.append(brick_hex_rans_def.run_def()) + test_list.append(brick_hex_rans_def) + + # Cylindrical FFD test + cylinder_ffd_def = TestCase('cylinder_ffd_def') + cylinder_ffd_def.cfg_dir = "deformation/cylindrical_ffd" + cylinder_ffd_def.cfg_file = "def_cylindrical.cfg" + cylinder_ffd_def.test_iter = 10 + cylinder_ffd_def.test_vals = [0.000902348] #residual + cylinder_ffd_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + cylinder_ffd_def.timeout = 1600 + cylinder_ffd_def.tol = 1e-9 + + pass_list.append(cylinder_ffd_def.run_def()) + test_list.append(cylinder_ffd_def) + + # Spherical FFD test + sphere_ffd_def = TestCase('sphere_ffd_def') + sphere_ffd_def.cfg_dir = "deformation/spherical_ffd" + sphere_ffd_def.cfg_file = "def_spherical.cfg" + sphere_ffd_def.test_iter = 10 + sphere_ffd_def.test_vals = [0.00360367] #residual + sphere_ffd_def.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + sphere_ffd_def.timeout = 1600 + sphere_ffd_def.tol = 1e-8 + + pass_list.append(sphere_ffd_def.run_def()) + test_list.append(sphere_ffd_def) + + # Spherical FFD test using BSplines + sphere_ffd_def_bspline = TestCase('sphere_ffd_def_bspline') + sphere_ffd_def_bspline.cfg_dir = "deformation/spherical_ffd" + sphere_ffd_def_bspline.cfg_file = "def_spherical_bspline.cfg" + sphere_ffd_def_bspline.test_iter = 10 + sphere_ffd_def_bspline.test_vals = [0.00208393] #residual + sphere_ffd_def_bspline.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + sphere_ffd_def_bspline.timeout = 1600 + sphere_ffd_def_bspline.tol = 1e-8 + + pass_list.append(sphere_ffd_def_bspline.run_def()) + test_list.append(sphere_ffd_def_bspline) + + # Inviscid NACA0012 (triangles) + naca0012_cst = TestCase('naca0012_cst') + naca0012_cst.cfg_dir = "deformation/cst" + naca0012_cst.cfg_file = "naca0012.cfg" + naca0012_cst.test_iter = 10 + naca0012_cst.test_vals = [0.000385514] #residual + naca0012_cst.command = TestCase.Command("mpirun -n 2", "SU2_DEF") + naca0012_cst.timeout = 1600 + naca0012_cst.tol = 1e-8 + + pass_list.append(naca0012_cst.run_def()) + test_list.append(naca0012_cst) + + # 2D FD streamwise periodic cht, avg temp obj func + fd_sp_pinArray_cht_2d_dp_hf = TestCase('fd_sp_pinArray_cht_2d_dp_hf') + fd_sp_pinArray_cht_2d_dp_hf.cfg_dir = "incomp_navierstokes/streamwise_periodic/chtPinArray_2d" + fd_sp_pinArray_cht_2d_dp_hf.cfg_file = "FD_configMaster.cfg" + fd_sp_pinArray_cht_2d_dp_hf.test_iter = 100 + fd_sp_pinArray_cht_2d_dp_hf.command = TestCase.Command(exec = "finite_differences.py", param = "-z 2 -n 2 -f") + fd_sp_pinArray_cht_2d_dp_hf.timeout = 1600 + fd_sp_pinArray_cht_2d_dp_hf.comp_threshold = 1e-6 + fd_sp_pinArray_cht_2d_dp_hf.tol_file_percent = 0.2 + fd_sp_pinArray_cht_2d_dp_hf.reference_file = "of_grad_findiff.csv.ref" + fd_sp_pinArray_cht_2d_dp_hf.reference_file_aarch64 = "of_grad_findiff_aarch64.csv.ref" + fd_sp_pinArray_cht_2d_dp_hf.test_file = "FINDIFF/of_grad_findiff.csv" + fd_sp_pinArray_cht_2d_dp_hf.multizone = True + + pass_list.append(fd_sp_pinArray_cht_2d_dp_hf.run_filediff()) + test_list.append(fd_sp_pinArray_cht_2d_dp_hf) + + + # Tests summary + print('==================================================================') + print('Summary of the parallel tests') + print('python version:', sys.version) + for i, test in enumerate(test_list): + if (pass_list[i]): + print(' passed - %s'%test.tag) + else: + print('* FAILED - %s'%test.tag) + + if all(pass_list): + sys.exit(0) + else: + sys.exit(1) + # done + +if __name__ == '__main__': + main() diff --git a/TestCases/parallel_regression_AD.py b/TestCases/parallel_regression_AD.py index 384fa6dcf268..ebd1193f4b0c 100644 --- a/TestCases/parallel_regression_AD.py +++ b/TestCases/parallel_regression_AD.py @@ -151,3 +151,484 @@ def main(): discadj_axisymmetric_rans_nozzle.cfg_file = "air_nozzle_restart.cfg" discadj_axisymmetric_rans_nozzle.test_iter = 10 discadj_axisymmetric_rans_nozzle.test_vals = [9.738854, 5.135195, 7.108430, 2.487299] + discadj_axisymmetric_rans_nozzle.no_restart = True + test_list.append(discadj_axisymmetric_rans_nozzle) + + ####################################################### + ### Unsteady Disc. adj. compressible RANS ### + ####################################################### + + # Turbulent Cylinder + discadj_cylinder = TestCase('unsteady_cylinder') + discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder" + discadj_cylinder.cfg_file = "cylinder.cfg" + discadj_cylinder.test_iter = 9 + discadj_cylinder.test_vals = [1.639372, -2.834293, -0.009538, 0.000020] + discadj_cylinder.unsteady = True + test_list.append(discadj_cylinder) + + ############################################################## + ### Unsteady Disc. adj. compressible RANS Windowed Average ### + ############################################################## + + # Turbulent Cylinder + discadj_cylinder = TestCase('unsteady_cylinder_windowed_average_AD') + discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder" + discadj_cylinder.cfg_file = "cylinder_Windowing_AD.cfg" + discadj_cylinder.test_iter = 9 + discadj_cylinder.test_vals = [2.183361] + discadj_cylinder.unsteady = True + test_list.append(discadj_cylinder) + + ############################################################## + ### Unsteady Disc. adj. compressible RANS Windowed Average ### + ############################################################## + + # Turbulent Cylinder + discadj_cylinder = TestCase('unsteady_cylinder_windowed_average') + discadj_cylinder.cfg_dir = "disc_adj_rans/cylinder" + discadj_cylinder.cfg_file = "cylinder_Windowing.cfg" + discadj_cylinder.test_iter = 6 + discadj_cylinder.test_vals = [0.238134, -0.000245, 1.926672, -0.000097, 1.062800] + discadj_cylinder.tol = 0.0001 + discadj_cylinder.command = TestCase.Command("mpirun -n 2", "SU2_CFD_DIRECTDIFF") + discadj_cylinder.unsteady = True + test_list.append(discadj_cylinder) + + ########################################################################## + ### Unsteady Disc. adj. compressible RANS DualTimeStepping 1st order ### + ########################################################################## + + # Turbulent Cylinder + discadj_DT_1ST_cylinder = TestCase('unsteady_cylinder_DT_1ST') + discadj_DT_1ST_cylinder.cfg_dir = "disc_adj_rans/cylinder_DT_1ST" + discadj_DT_1ST_cylinder.cfg_file = "cylinder.cfg" + discadj_DT_1ST_cylinder.test_iter = 9 + discadj_DT_1ST_cylinder.test_vals = [1.196414, -3.339029, -0.006212, 0.000020] + discadj_DT_1ST_cylinder.unsteady = True + test_list.append(discadj_DT_1ST_cylinder) + + ###################################################### + ### Unsteady Disc. adj. compressible pitching NACA ### + ###################################################### + + # compressible pitching NACA0012 + discadj_pitchingNACA0012 = TestCase('pitchingNACA0012') + discadj_pitchingNACA0012.cfg_dir = "disc_adj_euler/naca0012_pitching" + discadj_pitchingNACA0012.cfg_file = "inv_NACA0012_pitching.cfg" + discadj_pitchingNACA0012.test_iter = 4 + discadj_pitchingNACA0012.test_vals = [-1.115587, -1.573317, -0.006474, 0.000010] + discadj_pitchingNACA0012.tol = 0.01 + discadj_pitchingNACA0012.unsteady = True + test_list.append(discadj_pitchingNACA0012) + + ####################################################### + ### Disc. adj. multizone interfaces ### + ####################################################### + + # Mixing plane interface + discadj_mixing_plane = TestCase('discadj_mixing_plane') + discadj_mixing_plane.cfg_dir = "disc_adj_ffi/mixing_plane" + discadj_mixing_plane.cfg_file = "circles.cfg" + discadj_mixing_plane.test_iter = 10 + discadj_mixing_plane.test_vals = [10.000000, -4.714607, -4.479606] + test_list.append(discadj_mixing_plane) + + # Sliding interface + discadj_sliding_interface = TestCase('discadj_sliding_interface') + discadj_sliding_interface.cfg_dir = "disc_adj_ffi/sliding_interface" + discadj_sliding_interface.cfg_file = "circles.cfg" + discadj_sliding_interface.test_iter = 10 + discadj_sliding_interface.test_vals = [10.000000, -4.403529, -4.419435] + test_list.append(discadj_sliding_interface) + + ####################################################### + ### Disc. adj. turbomachinery ### + ####################################################### + + # Transonic Stator 2D + discadj_trans_stator = TestCase('transonic_stator') + discadj_trans_stator.cfg_dir = "disc_adj_turbomachinery/transonic_stator_2D" + discadj_trans_stator.cfg_file = "transonic_stator.cfg" + discadj_trans_stator.test_iter = 79 + discadj_trans_stator.test_vals = [79.000000, -7.555647, -10.335486, -10.356919, -13.629543] + discadj_trans_stator.test_vals_aarch64 = [79.000000, -7.555647, -10.335486, -10.356919, -13.629543] + test_list.append(discadj_trans_stator) + + # Axial stage 2D + discadj_axial_stage = TestCase('axial_stage_2D') + discadj_axial_stage.cfg_dir = "disc_adj_turbomachinery/axial_stage_2D" + discadj_axial_stage.cfg_file = "Axial_stage2D.cfg" + discadj_axial_stage.test_iter = 79 + discadj_axial_stage.test_vals = [79.000000, -6.606356, -7.139726] + discadj_axial_stage.test_vals_aarch64 = [79.000000, -6.606356, -7.139726] + test_list.append(discadj_axial_stage) + + ################################### + ### Structural Adjoint ### + ################################### + + # Structural model + discadj_fea = TestCase('discadj_fea') + discadj_fea.cfg_dir = "disc_adj_fea" + discadj_fea.cfg_file = "configAD_fem.cfg" + discadj_fea.test_iter = 4 + discadj_fea.test_vals = [-2.849664, -3.238571, -0.000364, -8.708700] + discadj_fea.test_vals_aarch64 = [-2.849646, -3.238577, -0.000364, -8.708700] #last 4 columns + test_list.append(discadj_fea) + + # Thermoelastic problem + # Derivative of heat flux wrt Poisson's ratio (due to increase in cross section) verified via finite differences. + discadj_thermoelastic = TestCase('discadj_thermoelastic') + discadj_thermoelastic.cfg_dir = "fea_fsi/ThermalBeam_3d" + discadj_thermoelastic.cfg_file = "configBeamNonlinear_3d_ad.cfg" + discadj_thermoelastic.test_iter = 10 + discadj_thermoelastic.test_vals = [-5.355530, -5.293381, -6.164472, -6.433864, 43, -4.049760, 27, -4.164193, 0, 0.192640, 0] + test_list.append(discadj_thermoelastic) + + ################################### + ### Disc. adj. heat ### + ################################### + + # Discrete adjoint for heated cylinder + discadj_heat = TestCase('discadj_heat') + discadj_heat.cfg_dir = "disc_adj_heat" + discadj_heat.cfg_file = "disc_adj_heat.cfg" + discadj_heat.test_iter = 10 + discadj_heat.test_vals = [-2.344276, 0.759978, 0.000000, -3.967600] + test_list.append(discadj_heat) + + ################################### + ### Coupled FSI Adjoint ### + ################################### + + # Legacy driver + discadj_fsi = TestCase('discadj_fsi') + discadj_fsi.cfg_dir = "disc_adj_fsi" + discadj_fsi.cfg_file = "config.cfg" + discadj_fsi.test_iter = 9 + discadj_fsi.test_vals = [-3.166421, -4.160938, 0.000439, -1.061900] + test_list.append(discadj_fsi) + + # Multi physics framework + discadj_fsi2 = TestCase('discadj_fsi_airfoil') + discadj_fsi2.cfg_dir = "disc_adj_fsi/Airfoil_2d" + discadj_fsi2.cfg_file = "config.cfg" + discadj_fsi2.test_iter = 8 + discadj_fsi2.test_vals = [-3.824591, 1.979595, -3.863368, 0.295450, 3.839800] + discadj_fsi2.test_vals_aarch64 = [-3.824870, 1.979160, -3.863368, 0.295450, 3.839800] + discadj_fsi2.tol = 0.00001 + test_list.append(discadj_fsi2) + + ################################### + ### Coupled CHT Adjoint ### + ################################### + + # Coupled discrete adjoint for heatflux in heated cylinder array + discadj_cht = TestCase('discadj_cht') + discadj_cht.cfg_dir = "coupled_cht/disc_adj_incomp_2d" + discadj_cht.cfg_file = "cht_2d_3cylinders.cfg" + discadj_cht.test_iter = 10 + discadj_cht.test_vals = [-6.308199, -3.086021, -3.086022, -3.086022] + test_list.append(discadj_cht) + + # 2D DA cht streamwise periodic case, 2 zones, avg temp objective + da_sp_pinArray_cht_2d_dp_hf = TestCase('da_sp_pinArray_cht_2d_dp_hf') + da_sp_pinArray_cht_2d_dp_hf.cfg_dir = "incomp_navierstokes/streamwise_periodic/chtPinArray_2d" + da_sp_pinArray_cht_2d_dp_hf.cfg_file = "DA_configMaster.cfg" + da_sp_pinArray_cht_2d_dp_hf.test_iter = 100 + da_sp_pinArray_cht_2d_dp_hf.tol = 5e-4 + da_sp_pinArray_cht_2d_dp_hf.test_vals = [-11.620815, -6.488915, -13.316583] + da_sp_pinArray_cht_2d_dp_hf.multizone = True + test_list.append(da_sp_pinArray_cht_2d_dp_hf) + + # 2D DA cht streamwise periodic case, 2 zones, PressureDrop objective, additional pressure drop adjoint equation + da_sp_pinArray_cht_2d_mf = TestCase('da_sp_pinArray_cht_2d_mf') + da_sp_pinArray_cht_2d_mf.cfg_dir = "incomp_navierstokes/streamwise_periodic/dp-adjoint_chtPinArray_2d" + da_sp_pinArray_cht_2d_mf.cfg_file = "configMaster.cfg" + da_sp_pinArray_cht_2d_mf.test_iter = 100 + da_sp_pinArray_cht_2d_mf.test_vals = [-4.544489, -1.200740, -1.451677, -0.809551, -5.998322, -15.723654, -49.833480] + da_sp_pinArray_cht_2d_mf.multizone = True + test_list.append(da_sp_pinArray_cht_2d_mf) + + # 2D unsteady CHT vortex shedding at RE=200. TAVG_Temperature OF + da_unsteadyCHT_cylinder = TestCase('da_unsteadyCHT_cylinder') + da_unsteadyCHT_cylinder.cfg_dir = "coupled_cht/disc_adj_unsteadyCHT_cylinder" + da_unsteadyCHT_cylinder.cfg_file = "chtMaster.cfg" + da_unsteadyCHT_cylinder.test_iter = 2 + da_unsteadyCHT_cylinder.tol = 2e-5 + da_unsteadyCHT_cylinder.test_vals = [-8.479629, -9.239920, -9.234868, -15.934511, -13.662008, 0.000000, 10.627000, 0.295190] + da_unsteadyCHT_cylinder.test_vals_aarch64 = [-8.479629, -9.239920, -9.234868, -15.934511, -13.662012, 0.000000, 89.932000, 0.295190] + da_unsteadyCHT_cylinder.unsteady = True + da_unsteadyCHT_cylinder.multizone = True + test_list.append(da_unsteadyCHT_cylinder) + + ################################## + ### Disc. adj. flamelet solver ### + ################################## + + # 2D planar laminar premixed flame on isothermal burner (restart) + discadj_flamelet_ch4_hx = TestCase('discadj_flamelet_ch4_hx') + discadj_flamelet_ch4_hx.cfg_dir = "flamelet/02_laminar_premixed_ch4_flame_hx_ad" + discadj_flamelet_ch4_hx.cfg_file = "lam_prem_ch4_hx_ad.cfg" + discadj_flamelet_ch4_hx.multizone = False + discadj_flamelet_ch4_hx.test_iter = 10 + discadj_flamelet_ch4_hx.test_vals = [-9.083502, -9.033520, -9.529644, -8.442388, -15.399568, -6.170002, -18.881156] + test_list.append(discadj_flamelet_ch4_hx) + + # 2D planar laminar premixed flame on isothermal burner with conjugate heat transfer (restart) + discadj_flamelet_ch4_cht = TestCase('discadj_flamelet_ch4_cht') + discadj_flamelet_ch4_cht.cfg_dir = "flamelet/04_laminar_premixed_ch4_flame_cht_ad" + discadj_flamelet_ch4_cht.cfg_file = "lam_prem_ch4_cht_ad_master.cfg" + discadj_flamelet_ch4_cht.multizone = True + discadj_flamelet_ch4_cht.test_iter = 10 + discadj_flamelet_ch4_cht.test_vals = [-1.545058, 0.628666, -6.533534, -18.651078, -18.648552, -3.794724, -6.572494, 11.000000] + test_list.append(discadj_flamelet_ch4_cht) + + ###################################### + ### RUN TESTS ### + ###################################### + + # set suitable defaults unless something else has been specified + # command: "mpirun -n 2 SU2_CFD_AD" + # timeout: 1600 + # tol: 0.00001 + for test in test_list: + if test.command.empty(): + test.command = TestCase.Command("mpirun -n 2", "SU2_CFD_AD") + if test.timeout == 0: + test.timeout = 1600 + if test.tol == 0.0: + test.tol = 0.00001 + + pass_list = [ test.run_test() for test in test_list ] + + ################################################ + ### Gradient check (dot) for flamelet solver ### + ################################################ + + # 2D planar laminar premixed flame on isothermal burner (restart) + # This test restarts on the output of test discadj_flamelet_ch4_hx and + # will only pass if test discadj_flamelet_ch4_hx passes. + dot_flamelet_ch4_hx = TestCase('dot_flamelet_ch4_hx') + dot_flamelet_ch4_hx.cfg_dir = "flamelet/02_laminar_premixed_ch4_flame_hx_ad" + dot_flamelet_ch4_hx.cfg_file = "lam_prem_ch4_hx_dot.cfg" + dot_flamelet_ch4_hx.test_iter = 10 + dot_flamelet_ch4_hx.command = TestCase.Command("mpirun -n 2", "SU2_DOT_AD") + dot_flamelet_ch4_hx.timeout = 20000 + dot_flamelet_ch4_hx.reference_file = "of_grad.csv.ref" + dot_flamelet_ch4_hx.test_file = "of_grad.csv" + dot_flamelet_ch4_hx.comp_threshold = 1e-6 + dot_flamelet_ch4_hx.tol_file_percent = 0.1 + pass_list.append(dot_flamelet_ch4_hx.run_filediff()) + test_list.append(dot_flamelet_ch4_hx) + + # 2D planar laminar premixed flame on isothermal burner with conjugate heat transfer (restart) + # This test restarts on the output of test discadj_flamelet_ch4_cht and + # will only pass if test discadj_flamelet_ch4_cht passes. + dot_flamelet_ch4_cht = TestCase('dot_flamelet_ch4_cht') + dot_flamelet_ch4_cht.cfg_dir = "flamelet/04_laminar_premixed_ch4_flame_cht_ad" + dot_flamelet_ch4_cht.cfg_file = "lam_prem_ch4_cht_dot_master.cfg" + dot_flamelet_ch4_cht.multizone = True + dot_flamelet_ch4_cht.test_iter = 10 + dot_flamelet_ch4_cht.command = TestCase.Command("mpirun -n 2", "SU2_DOT_AD") + dot_flamelet_ch4_cht.timeout = 20000 + dot_flamelet_ch4_cht.reference_file = "of_grad.csv.ref" + dot_flamelet_ch4_cht.test_file = "of_grad.csv" + dot_flamelet_ch4_cht.comp_threshold = 1e-6 + dot_flamelet_ch4_cht.tol_file_percent = 0.1 + pass_list.append(dot_flamelet_ch4_cht.run_filediff()) + test_list.append(dot_flamelet_ch4_cht) + + ################################################## + ### Structural Adjoint - Topology Optimization ### + ################################################## + + # test discrete_adjoint.py + discadj_topol_optim = TestCase('discadj_topol_optim') + discadj_topol_optim.cfg_dir = "fea_topology" + discadj_topol_optim.cfg_file = "config.cfg" + discadj_topol_optim.test_iter = 0 + discadj_topol_optim.command = TestCase.Command("mpirun -n 2", "SU2_CFD_AD") + discadj_topol_optim.timeout = 1600 + discadj_topol_optim.reference_file = "grad_ref_node.dat.ref" + discadj_topol_optim.reference_file_aarch64 = "grad_ref_node_aarch64.dat.ref" + discadj_topol_optim.test_file = "grad_ref_node.dat" + pass_list.append(discadj_topol_optim.run_filediff()) + test_list.append(discadj_topol_optim) + + #################################################################################### + ### Unsteady Disc. adj. compressible RANS Windowed Average with restart solution ### + #################################################################################### + + # NACA0012 Airfoil + unsteady_naca0012 = TestCase('unsteady_NACA0012_restart_adjoint') + unsteady_naca0012.cfg_dir = "disc_adj_rans/naca0012" + unsteady_naca0012.cfg_file = "naca0012.cfg" + unsteady_naca0012.test_iter = 14 + unsteady_naca0012.command = TestCase.Command(exec = "discrete_adjoint.py", param = "-f") + unsteady_naca0012.timeout = 1600 + unsteady_naca0012.reference_file = "of_grad_cd.csv.ref" + unsteady_naca0012.test_file = "of_grad_cd.csv" + unsteady_naca0012.unsteady = True + pass_list.append(unsteady_naca0012.run_filediff()) + test_list.append(unsteady_naca0012) + + #################################################################################### + ### Unsteady Disc. adj. compressible RANS Windowed Average only adjoint ### + #################################################################################### + + # NACA0012 Airfoil (Test depends on results of "unsteady_NACA0012_restart_adjoint") + unsteady_naca0012 = TestCase('unsteady_NACA0012_adjoint_only') + unsteady_naca0012.cfg_dir = "disc_adj_rans/naca0012" + unsteady_naca0012.cfg_file = "naca0012.cfg" + unsteady_naca0012.test_iter = 14 + unsteady_naca0012.command = TestCase.Command(exec = "discrete_adjoint.py", param = "-m adj -f") + unsteady_naca0012.timeout = 1600 + unsteady_naca0012.reference_file = "of_grad_cd.csv.ref" + unsteady_naca0012.test_file = "of_grad_cd.csv" + unsteady_naca0012.unsteady = True + pass_list.append(unsteady_naca0012.run_filediff()) + test_list.append(unsteady_naca0012) + + #################################################################### + ### Python Wrapper ### + #################################################################### + + # FEA AD Flow Load Sensitivity + pywrapper_FEA_AD_FlowLoad = TestCase('pywrapper_FEA_AD_FlowLoad') + pywrapper_FEA_AD_FlowLoad.cfg_dir = "py_wrapper/disc_adj_fea/flow_load_sens" + pywrapper_FEA_AD_FlowLoad.cfg_file = "configAD_fem.cfg" + pywrapper_FEA_AD_FlowLoad.test_iter = 100 + pywrapper_FEA_AD_FlowLoad.test_vals = [-0.13945587401785386, -0.5859858866132448, -0.00036377840086080694, -0.0031005670174756366] #last 4 columns + pywrapper_FEA_AD_FlowLoad.command = TestCase.Command("mpirun -n 2", "python", "run_adjoint.py --parallel -f") + pywrapper_FEA_AD_FlowLoad.timeout = 1600 + pywrapper_FEA_AD_FlowLoad.tol = 0.000001 + pywrapper_FEA_AD_FlowLoad.new_output = False + test_list.append(pywrapper_FEA_AD_FlowLoad) + pass_list.append(pywrapper_FEA_AD_FlowLoad.run_test()) + + # FEA unsteady AD Load Sensitivity + pywrapper_Unst_FEA_AD = TestCase('pywrapper_Unst_FEA_AD') + pywrapper_Unst_FEA_AD.cfg_dir = "py_wrapper/custom_load_fea" + pywrapper_Unst_FEA_AD.cfg_file = "config.cfg" + pywrapper_Unst_FEA_AD.test_iter = 100 + pywrapper_Unst_FEA_AD.test_vals = [0.262441, 0.262444, 0.324361, 0.324640, -0.188221, -0.188238] + pywrapper_Unst_FEA_AD.command = TestCase.Command("mpirun -n 2", "python", "run_ad.py") + pywrapper_Unst_FEA_AD.timeout = 1600 + pywrapper_Unst_FEA_AD.tol = 0.00001 + pywrapper_Unst_FEA_AD.new_output = False + test_list.append(pywrapper_Unst_FEA_AD) + pass_list.append(pywrapper_Unst_FEA_AD.run_test()) + + # Heat solver unsteady AD + pywrapper_Unst_Heat_AD = TestCase('pywrapper_Unst_Heat_AD') + pywrapper_Unst_Heat_AD.cfg_dir = "py_wrapper/custom_heat_flux" + pywrapper_Unst_Heat_AD.cfg_file = "run_ad.py" + pywrapper_Unst_Heat_AD.test_iter = 100 + pywrapper_Unst_Heat_AD.test_vals = [0.776365, 0.776430, 1.000003] + pywrapper_Unst_Heat_AD.command = TestCase.Command("mpirun -n 2", "python", "run_ad.py") + pywrapper_Unst_Heat_AD.timeout = 1600 + pywrapper_Unst_Heat_AD.tol = 0.00001 + pywrapper_Unst_Heat_AD.new_output = False + test_list.append(pywrapper_Unst_Heat_AD) + pass_list.append(pywrapper_Unst_Heat_AD.run_test()) + + # Flow AD Mesh Displacement Sensitivity + pywrapper_CFD_AD_MeshDisp = TestCase('pywrapper_CFD_AD_MeshDisp') + pywrapper_CFD_AD_MeshDisp.cfg_dir = "py_wrapper/disc_adj_flow/mesh_disp_sens" + pywrapper_CFD_AD_MeshDisp.cfg_file = "configAD_flow.cfg" + pywrapper_CFD_AD_MeshDisp.test_iter = 1000 + pywrapper_CFD_AD_MeshDisp.test_vals = [30.000000, -2.496452, 1.441022, 0.000000] + pywrapper_CFD_AD_MeshDisp.command = TestCase.Command("mpirun -n 2", "python", "run_adjoint.py --parallel -f") + pywrapper_CFD_AD_MeshDisp.timeout = 1600 + pywrapper_CFD_AD_MeshDisp.tol = 0.000001 + pywrapper_CFD_AD_MeshDisp.new_output = False + test_list.append(pywrapper_CFD_AD_MeshDisp) + pass_list.append(pywrapper_CFD_AD_MeshDisp.run_test()) + + # Flow AD Mesh Displacement and Initial Coordinates Sensitivity + pywrapper_wavy_wall_steady = TestCase('pywrapper_wavy_wall_steady') + pywrapper_wavy_wall_steady.cfg_dir = "py_wrapper/wavy_wall" + pywrapper_wavy_wall_steady.cfg_file = "run_steady.py" + pywrapper_wavy_wall_steady.test_iter = 100 + pywrapper_wavy_wall_steady.test_vals = [-1.353007, 2.581051, -2.900574] + pywrapper_wavy_wall_steady.command = TestCase.Command("mpirun -n 2", "python", "run_steady.py") + pywrapper_wavy_wall_steady.timeout = 1600 + pywrapper_wavy_wall_steady.tol = 0.00001 + pywrapper_wavy_wall_steady.new_output = False + test_list.append(pywrapper_wavy_wall_steady) + pass_list.append(pywrapper_wavy_wall_steady.run_test()) + + #################################################################### + ### Unsteady Disc. adj. compressible RANS restart optimization ### + #################################################################### + + # test shape_optimization.py + naca_restart_shape_opt = TestCase('restart_shape_optimization') + naca_restart_shape_opt.cfg_dir = "optimization_rans/naca0012" + naca_restart_shape_opt.cfg_file = "naca0012.cfg" + naca_restart_shape_opt.test_iter = 1 + naca_restart_shape_opt.test_vals = [1.000000, 1.000000, 0.007047, 0.196668] + naca_restart_shape_opt.command = TestCase.Command(exec = "shape_optimization.py", param = "-f") + naca_restart_shape_opt.timeout = 1600 + naca_restart_shape_opt.tol = 0.00001 + pass_list.append(naca_restart_shape_opt.run_opt()) + test_list.append(naca_restart_shape_opt) + + #################################################################### + ### Unsteady Disc. Adj. Coupled FSI ### + #################################################################### + + # Unsteady multi physics framework + dyn_discadj_fsi = TestCase('dyn_discadj_fsi') + dyn_discadj_fsi.cfg_dir = "disc_adj_fsi/dyn_fsi" + dyn_discadj_fsi.cfg_file = "config.cfg" + dyn_discadj_fsi.test_iter = 2 + dyn_discadj_fsi.command = TestCase.Command("mpirun -n 2", "SU2_CFD_AD") + dyn_discadj_fsi.timeout = 1600 + dyn_discadj_fsi.reference_file = "grad_dv.opt.ref" + dyn_discadj_fsi.reference_file_aarch64 = "grad_dv_aarch64.opt.ref" + dyn_discadj_fsi.test_file = "grad_young.opt" + dyn_discadj_fsi.comp_threshold = 1e-6 + dyn_discadj_fsi.tol_file_percent = 0.1 + dyn_discadj_fsi.unsteady = True + pass_list.append(dyn_discadj_fsi.run_filediff()) + test_list.append(dyn_discadj_fsi) + + #################################################################### + ### Sobolev Gradient Smoothing ### + #################################################################### + + # Sobolev gradient smoothing solver + grad_smooth_oneram6 = TestCase('grad_smooth_sob') + grad_smooth_oneram6.cfg_dir = "grad_smooth/oneram6" + grad_smooth_oneram6.cfg_file = "ONERAM6_gradsmooth.cfg" + grad_smooth_oneram6.test_iter = 2 + grad_smooth_oneram6.command = TestCase.Command("mpirun -n 2", "SU2_DOT_AD") + grad_smooth_oneram6.timeout = 1600 + grad_smooth_oneram6.reference_file = "of_hess.dat.ref" + grad_smooth_oneram6.reference_file_aarch64 = "of_hess_aarch64.dat.ref" + grad_smooth_oneram6.test_file = "of_hess.dat" + pass_list.append(grad_smooth_oneram6.run_filediff()) + test_list.append(grad_smooth_oneram6) + + + # Tests summary + print('==================================================================') + print('Summary of the parallel tests') + print('python version:', sys.version) + for i, test in enumerate(test_list): + if (pass_list[i]): + print(' passed - %s'%test.tag) + else: + print('* FAILED - %s'%test.tag) + + if all(pass_list): + sys.exit(0) + else: + sys.exit(1) + # done + +if __name__ == '__main__': + main() diff --git a/TestCases/serial_regression.py b/TestCases/serial_regression.py index 65b40988b844..d1462e455e46 100755 --- a/TestCases/serial_regression.py +++ b/TestCases/serial_regression.py @@ -376,3 +376,1413 @@ def main(): axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg" axi_rans_air_nozzle_restart.test_iter = 10 axi_rans_air_nozzle_restart.test_vals = [-5.121517, 0.452804, -2.910659, 1.662143, 0.000000] + axi_rans_air_nozzle_restart.test_vals_aarch64 = [-14.143715, -9.170705, -10.848554, -5.776746, 0.000000] + axi_rans_air_nozzle_restart.tol = 0.0001 + test_list.append(axi_rans_air_nozzle_restart) + + # Axisymmetric air nozzle species + axi_rans_air_nozzle_species = TestCase('axi_rans_air_nozzle_species') + axi_rans_air_nozzle_species.cfg_dir = "axisymmetric_rans/air_nozzle" + axi_rans_air_nozzle_species.cfg_file = "air_nozzle_species.cfg" + axi_rans_air_nozzle_species.test_iter = 10 + axi_rans_air_nozzle_species.test_vals = [-2.148980, 3.342062, -1.939182, 5.883411, -2.443141, 0.000000] + axi_rans_air_nozzle_species.tol = 0.0001 + test_list.append(axi_rans_air_nozzle_species) + + ################################# + ## Compressible RANS Restart ### + ################################# + + # NACA0012 SST Multigrid restart + turb_naca0012_sst_restart_mg = TestCase('turb_naca0012_sst_restart_mg') + turb_naca0012_sst_restart_mg.cfg_dir = "rans/naca0012" + turb_naca0012_sst_restart_mg.cfg_file = "turb_NACA0012_sst_multigrid_restart.cfg" + turb_naca0012_sst_restart_mg.test_iter = 50 + turb_naca0012_sst_restart_mg.ntest_vals = 5 + turb_naca0012_sst_restart_mg.test_vals = [-6.570974, -5.081421, 0.810883, -0.008830, 0.077967] + turb_naca0012_sst_restart_mg.timeout = 3200 + turb_naca0012_sst_restart_mg.tol = 0.000001 + test_list.append(turb_naca0012_sst_restart_mg) + + ############################# + ### Incompressible Euler ### + ############################# + + # Dry run Inc Euler + inc_euler_naca0012_d = TestCase('dry run Inc Euler') + inc_euler_naca0012_d.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012_d.cfg_file = "incomp_NACA0012.cfg" + inc_euler_naca0012_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(inc_euler_naca0012_d) + + # NACA0012 Hydrofoil + inc_euler_naca0012 = TestCase('inc_euler_naca0012') + inc_euler_naca0012.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012.cfg_file = "incomp_NACA0012.cfg" + inc_euler_naca0012.test_iter = 20 + inc_euler_naca0012.test_vals = [-6.814482, -6.001232, 0.531760, 0.008476] + test_list.append(inc_euler_naca0012) + + # NACA0012 Hydrofoil, pressure-based + inc_euler_naca0012_pb = TestCase('inc_euler_naca0012_pb') + inc_euler_naca0012_pb.cfg_dir = "incomp_euler/naca0012" + inc_euler_naca0012_pb.cfg_file = "incomp_pb_NACA0012.cfg" + inc_euler_naca0012_pb.test_iter = 20 + inc_euler_naca0012_pb.test_vals = [-4.454834, -4.784268, 0.427449, 0.012084] + test_list.append(inc_euler_naca0012_pb) + + # C-D nozzle with pressure inlet and mass flow outlet + inc_nozzle = TestCase('inc_nozzle') + inc_nozzle.cfg_dir = "incomp_euler/nozzle" + inc_nozzle.cfg_file = "inv_nozzle.cfg" + inc_nozzle.test_iter = 20 + inc_nozzle.test_vals = [-6.331969, -5.586818, -0.024387, 0.126306] + test_list.append(inc_nozzle) + + ############################# + ### Incompressible N-S ### + ############################# + + # Dry Run Inc. NS + inc_lam_cylinder_d = TestCase('dry run Inc. NS') + inc_lam_cylinder_d.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder_d.cfg_file = "incomp_cylinder.cfg" + inc_lam_cylinder_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(inc_lam_cylinder_d) + + # Laminar cylinder + inc_lam_cylinder = TestCase('inc_lam_cylinder') + inc_lam_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder.cfg_file = "incomp_cylinder.cfg" + inc_lam_cylinder.test_iter = 10 + inc_lam_cylinder.test_vals = [-4.809141, -5.026921, 0.000880, 3.118344] + test_list.append(inc_lam_cylinder) + + # Laminar cylinder, pressure-based + inc_lam_cylinder_pb = TestCase('inc_lam_cylinder_pb') + inc_lam_cylinder_pb.cfg_dir = "incomp_navierstokes/cylinder" + inc_lam_cylinder_pb.cfg_file = "incomp_pb_cylinder.cfg" + inc_lam_cylinder_pb.test_iter = 10 + inc_lam_cylinder_pb.test_vals = [-3.486587, -3.776864, 0.012396, 6.205509] + test_list.append(inc_lam_cylinder_pb) + + + # Buoyancy-driven cavity + inc_buoyancy = TestCase('inc_buoyancy') + inc_buoyancy.cfg_dir = "incomp_navierstokes/buoyancy_cavity" + inc_buoyancy.cfg_file = "lam_buoyancy_cavity.cfg" + inc_buoyancy.test_iter = 20 + inc_buoyancy.test_vals = [-3.860466, -3.122403, 1.322721, -23.413000] + test_list.append(inc_buoyancy) + + # Laminar heated cylinder with polynomial fluid model + inc_poly_cylinder = TestCase('inc_poly_cylinder') + inc_poly_cylinder.cfg_dir = "incomp_navierstokes/cylinder" + inc_poly_cylinder.cfg_file = "poly_cylinder.cfg" + inc_poly_cylinder.test_iter = 20 + inc_poly_cylinder.test_vals = [-8.081227, -2.399756, 0.009794, 1.900988, -172.970000] + test_list.append(inc_poly_cylinder) + + # X-coarse laminar bend as a mixed element CGNS test + inc_lam_bend = TestCase('inc_lam_bend') + inc_lam_bend.cfg_dir = "incomp_navierstokes/bend" + inc_lam_bend.cfg_file = "lam_bend.cfg" + inc_lam_bend.test_iter = 10 + inc_lam_bend.test_vals = [-3.639664, -3.218039, -0.016067, 1.090645] + test_list.append(inc_lam_bend) + + + ############################ + ### Incompressible RANS ### + ############################ + + # Dry run Inc. RANS + inc_turb_naca0012_d = TestCase('dry run Inc. RANS') + inc_turb_naca0012_d.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012_d.cfg_file = "naca0012.cfg" + inc_turb_naca0012_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(inc_turb_naca0012_d) + + # NACA0012, SA + inc_turb_naca0012 = TestCase('inc_turb_naca0012') + inc_turb_naca0012.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012.cfg_file = "naca0012.cfg" + inc_turb_naca0012.test_iter = 20 + inc_turb_naca0012.test_vals = [-4.758064, -10.974498, -0.000003, -0.028654, 3.000000, -4.499423, 2.000000, -4.951202] + test_list.append(inc_turb_naca0012) + + # NACA0012, SST_SUST + inc_turb_naca0012_sst_sust = TestCase('inc_turb_naca0012_sst_sust') + inc_turb_naca0012_sst_sust.cfg_dir = "incomp_rans/naca0012" + inc_turb_naca0012_sst_sust.cfg_file = "naca0012_SST_SUST.cfg" + inc_turb_naca0012_sst_sust.test_iter = 20 + inc_turb_naca0012_sst_sust.test_vals = [-7.169704, 0.332779, 0.000021, 0.312114] + test_list.append(inc_turb_naca0012_sst_sust) + + # Flat plate, pressure-based + inc_flatplate_pb = TestCase('inc_flatplate_pb') + inc_flatplate_pb.cfg_dir = "incomp_rans/rough_flatplate" + inc_flatplate_pb.cfg_file = "pb_rough_flatplate_incomp.cfg" + inc_flatplate_pb.test_iter = 10 + inc_flatplate_pb.test_vals = [-4.063342, -9.884401, 0.000010, 0.228472] + test_list.append(inc_flatplate_pb) + + # FLAT PLATE, WALL FUNCTIONS, INCOMPRESSIBLE SST + inc_turb_wallfunction_flatplate_sst = TestCase('inc_turb_sst_wallfunction_flatplate') + inc_turb_wallfunction_flatplate_sst.cfg_dir = "wallfunctions/flatplate/incompressible_SST" + inc_turb_wallfunction_flatplate_sst.cfg_file = "turb_SST_flatplate.cfg" + inc_turb_wallfunction_flatplate_sst.test_iter = 10 + inc_turb_wallfunction_flatplate_sst.test_vals = [-6.879863, -5.731934, -6.732450, -4.240641, -7.189679, -2.050873, 10.000000, -4.007590, 0.001161, 0.003172, 0.000000] + test_list.append(inc_turb_wallfunction_flatplate_sst) + + # FLAT PLATE, WALL FUNCTIONS, INCOMPRESSIBLE SA + inc_turb_wallfunction_flatplate_sa = TestCase('inc_turb_sa_wallfunction_flatplate') + inc_turb_wallfunction_flatplate_sa.cfg_dir = "wallfunctions/flatplate/incompressible_SA" + inc_turb_wallfunction_flatplate_sa.cfg_file = "turb_SA_flatplate.cfg" + inc_turb_wallfunction_flatplate_sa.test_iter = 10 + inc_turb_wallfunction_flatplate_sa.test_vals = [-6.892366, -5.716008, -6.750391, -4.240551, -9.549816, 10.000000, -4.008735, 0.001030, 0.003759] + test_list.append(inc_turb_wallfunction_flatplate_sa) + + #################### + ### DG-FEM Euler ### + #################### + + # Dry run DG Euler + fem_euler_naca0012_d = TestCase('dry run DG Euler') + fem_euler_naca0012_d.cfg_dir = "hom_euler/NACA0012_5thOrder" + fem_euler_naca0012_d.cfg_file = "fem_NACA0012_reg.cfg" + fem_euler_naca0012_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(fem_euler_naca0012_d) + + # NACA0012 + fem_euler_naca0012 = TestCase('fem_euler_naca0012') + fem_euler_naca0012.cfg_dir = "hom_euler/NACA0012_5thOrder" + fem_euler_naca0012.cfg_file = "fem_NACA0012_reg.cfg" + fem_euler_naca0012.test_iter = 10 + fem_euler_naca0012.test_vals = [-6.519946, -5.976944, 0.255551, 0.000028] + test_list.append(fem_euler_naca0012) + + ############################ + ### DG-FEM Navier-Stokes ### + ############################ + + # Dry run DG NS + fem_ns_flatplate_d = TestCase('dry run DG NS') + fem_ns_flatplate_d.cfg_dir = "hom_navierstokes/FlatPlate/nPoly4" + fem_ns_flatplate_d.cfg_file = "lam_flatplate_reg.cfg" + fem_ns_flatplate_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(fem_ns_flatplate_d) + + # Flat plate + fem_ns_flatplate = TestCase('fem_ns_flatplate') + fem_ns_flatplate.cfg_dir = "hom_navierstokes/FlatPlate/nPoly4" + fem_ns_flatplate.cfg_file = "lam_flatplate_reg.cfg" + fem_ns_flatplate.test_iter = 25 + fem_ns_flatplate.test_vals = [1.383727, 3.175247, 0.058387, 0.257951] + test_list.append(fem_ns_flatplate) + + # Steady cylinder + fem_ns_cylinder = TestCase('fem_ns_cylinder') + fem_ns_cylinder.cfg_dir = "hom_navierstokes/CylinderViscous/nPoly3" + fem_ns_cylinder.cfg_file = "fem_Cylinder_reg.cfg" + fem_ns_cylinder.test_iter = 10 + fem_ns_cylinder.test_vals = [0.454960, 0.979123, -0.000028, 79.984799] + test_list.append(fem_ns_cylinder) + + # Steady sphere + fem_ns_sphere = TestCase('fem_ns_sphere') + fem_ns_sphere.cfg_dir = "hom_navierstokes/SphereViscous/nPoly3_QuadDominant" + fem_ns_sphere.cfg_file = "fem_Sphere_reg.cfg" + fem_ns_sphere.test_iter = 10 + fem_ns_sphere.test_vals = [-0.288121, 0.240324, 0.000258, 21.797363] + test_list.append(fem_ns_sphere) + + # Unsteady sphere ADER + fem_ns_sphere_ader = TestCase('fem_ns_sphere_ader') + fem_ns_sphere_ader.cfg_dir = "hom_navierstokes/SphereViscous/nPoly3_QuadDominant" + fem_ns_sphere_ader.cfg_file = "fem_Sphere_reg_ADER.cfg" + fem_ns_sphere_ader.test_iter = 10 + fem_ns_sphere_ader.test_vals = [-35.000000, -35.000000, 0.000047, 31.110911] + fem_ns_sphere_ader.unsteady = True + test_list.append(fem_ns_sphere_ader) + + # Unsteady cylinder + fem_ns_unsteady_cylinder = TestCase('fem_ns_unsteady_cylinder') + fem_ns_unsteady_cylinder.cfg_dir = "hom_navierstokes/UnsteadyCylinder/nPoly4" + fem_ns_unsteady_cylinder.cfg_file = "fem_unst_cylinder.cfg" + fem_ns_unsteady_cylinder.test_iter = 11 + fem_ns_unsteady_cylinder.test_vals = [-3.558582, -3.014464, -0.038927, 1.383983] + fem_ns_unsteady_cylinder.unsteady = True + test_list.append(fem_ns_unsteady_cylinder) + + # Unsteady cylinder ADER + fem_ns_unsteady_cylinder_ader = TestCase('fem_ns_unsteady_cylinder_ader') + fem_ns_unsteady_cylinder_ader.cfg_dir = "hom_navierstokes/UnsteadyCylinder/nPoly4" + fem_ns_unsteady_cylinder_ader.cfg_file = "fem_unst_cylinder_ADER.cfg" + fem_ns_unsteady_cylinder_ader.test_iter = 11 + fem_ns_unsteady_cylinder_ader.test_vals = [-35.000000, -35.000000, -0.041003, 1.391339] + fem_ns_unsteady_cylinder_ader.unsteady = True + test_list.append(fem_ns_unsteady_cylinder_ader) + + ######################### + ### Transition ### + ######################### + + # Schubauer-Klebanoff Natural Transition + schubauer_klebanoff_transition = TestCase('Schubauer_Klebanoff') + schubauer_klebanoff_transition.cfg_dir = "transition/Schubauer_Klebanoff" + schubauer_klebanoff_transition.cfg_file = "transitional_BC_model_ConfigFile.cfg" + schubauer_klebanoff_transition.test_iter = 10 + schubauer_klebanoff_transition.test_vals = [-8.284308, -13.239421, 0.000057, 0.007982] + test_list.append(schubauer_klebanoff_transition) + + ##################################### + ### Cont. adj. compressible Euler ### + ##################################### + + # Dry run Cont. Adj. Euler + contadj_naca0012_d = TestCase('dry run Cont. Adj. Euler') + contadj_naca0012_d.cfg_dir = "cont_adj_euler/naca0012" + contadj_naca0012_d.cfg_file = "inv_NACA0012.cfg" + contadj_naca0012_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(contadj_naca0012_d) + + # Inviscid NACA0012 + contadj_naca0012 = TestCase('contadj_naca0012') + contadj_naca0012.cfg_dir = "cont_adj_euler/naca0012" + contadj_naca0012.cfg_file = "inv_NACA0012.cfg" + contadj_naca0012.test_iter = 5 + contadj_naca0012.test_vals = [-9.552105, -15.069398, -0.726250, 0.020280] + contadj_naca0012.tol = 0.001 + test_list.append(contadj_naca0012) + + # Inviscid ONERA M6 + contadj_oneram6 = TestCase('contadj_oneram6') + contadj_oneram6.cfg_dir = "cont_adj_euler/oneram6" + contadj_oneram6.cfg_file = "inv_ONERAM6.cfg" + contadj_oneram6.test_iter = 10 + contadj_oneram6.test_vals = [-12.083324, -12.644564, -1.086100, 0.007556] + test_list.append(contadj_oneram6) + + # Inviscid WEDGE: tests averaged outflow total pressure adjoint + contadj_wedge = TestCase('contadj_wedge') + contadj_wedge.cfg_dir = "cont_adj_euler/wedge" + contadj_wedge.cfg_file = "inv_wedge_ROE.cfg" + contadj_wedge.test_iter = 10 + contadj_wedge.test_vals = [2.872066, -2.756215, 1010800.000000, -0.000000] + test_list.append(contadj_wedge) + + # Inviscid fixed CL NACA0012 + contadj_fixedCL_naca0012 = TestCase('contadj_fixedcl_naca0012') + contadj_fixedCL_naca0012.cfg_dir = "fixed_cl/naca0012" + contadj_fixedCL_naca0012.cfg_file = "inv_NACA0012_ContAdj.cfg" + contadj_fixedCL_naca0012.test_iter = 100 + contadj_fixedCL_naca0012.test_vals = [1.409148, -4.006889, -0.025392, 0.004170] + test_list.append(contadj_fixedCL_naca0012) + + ################################### + ### Cont. adj. compressible N-S ### + ################################### + + # Dry run Cont. Adj. NS + contadj_ns_cylinder_d = TestCase('dry run Cont. Adj. NS') + contadj_ns_cylinder_d.cfg_dir = "cont_adj_navierstokes/cylinder" + contadj_ns_cylinder_d.cfg_file = "lam_cylinder.cfg" + contadj_ns_cylinder_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(contadj_ns_cylinder_d) + + # Adjoint laminar cylinder + contadj_ns_cylinder = TestCase('contadj_ns_cylinder') + contadj_ns_cylinder.cfg_dir = "cont_adj_navierstokes/cylinder" + contadj_ns_cylinder.cfg_file = "lam_cylinder.cfg" + contadj_ns_cylinder.test_iter = 20 + contadj_ns_cylinder.test_vals = [-3.634026, -9.089553, 2.056700, -0.000000] + test_list.append(contadj_ns_cylinder) + + # Adjoint laminar naca0012 subsonic + contadj_ns_naca0012_sub = TestCase('contadj_ns_naca0012_sub') + contadj_ns_naca0012_sub.cfg_dir = "cont_adj_navierstokes/naca0012_sub" + contadj_ns_naca0012_sub.cfg_file = "lam_NACA0012.cfg" + contadj_ns_naca0012_sub.test_iter = 20 + contadj_ns_naca0012_sub.test_vals = [-2.743268, -8.215193, 0.518810, 0.001210] + test_list.append(contadj_ns_naca0012_sub) + + # Adjoint laminar naca0012 transonic + contadj_ns_naca0012_trans = TestCase('contadj_ns_naca0012_trans') + contadj_ns_naca0012_trans.cfg_dir = "cont_adj_navierstokes/naca0012_trans" + contadj_ns_naca0012_trans.cfg_file = "lam_NACA0012.cfg" + contadj_ns_naca0012_trans.test_iter = 20 + contadj_ns_naca0012_trans.test_vals = [-1.039664, -6.575019, 1.772300, 0.012495] + test_list.append(contadj_ns_naca0012_trans) + + ####################################################### + ### Cont. adj. compressible RANS (frozen viscosity) ### + ####################################################### + + # Adjoint turbulent NACA0012 + contadj_rans_naca0012 = TestCase('contadj_rans_naca0012') + contadj_rans_naca0012.cfg_dir = "cont_adj_rans/naca0012" + contadj_rans_naca0012.cfg_file = "turb_nasa.cfg" + contadj_rans_naca0012.test_iter = 20 + contadj_rans_naca0012.test_vals = [-0.794162, -5.761722, 19.214000, -0.000000] + test_list.append(contadj_rans_naca0012) + + # Adjoint turbulent NACA0012 with binary restarts + contadj_rans_naca0012_bin = TestCase('contadj_rans_naca0012_bin') + contadj_rans_naca0012_bin.cfg_dir = "cont_adj_rans/naca0012" + contadj_rans_naca0012_bin.cfg_file = "turb_nasa_binary.cfg" + contadj_rans_naca0012_bin.test_iter = 18 + contadj_rans_naca0012_bin.test_vals = [-0.794169, -5.761671, 19.214000, -0.000000] + test_list.append(contadj_rans_naca0012_bin) + + # Adjoint turbulent RAE2822 + contadj_rans_rae2822 = TestCase('contadj_rans_rae2822') + contadj_rans_rae2822.cfg_dir = "cont_adj_rans/rae2822" + contadj_rans_rae2822.cfg_file = "turb_SA_RAE2822.cfg" + contadj_rans_rae2822.test_iter = 20 + contadj_rans_rae2822.test_vals = [-5.399078, -10.904106, -0.212470, 0.005448] + test_list.append(contadj_rans_rae2822) + + ############################# + ### Compressibele RANS UQ ### + ############################# + + # NACA0012 1c + turb_naca0012_1c = TestCase('turb_naca0012_1c') + turb_naca0012_1c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_1c.cfg_file = "turb_NACA0012_uq_1c.cfg" + turb_naca0012_1c.test_iter = 10 + turb_naca0012_1c.test_vals = [-4.981181, 1.343583, 0.597111, 0.017244] + turb_naca0012_1c.test_vals_aarch64 = [-4.992791, 1.342873, 0.557941, 0.003269] + test_list.append(turb_naca0012_1c) + + # NACA0012 2c + turb_naca0012_2c = TestCase('turb_naca0012_2c') + turb_naca0012_2c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_2c.cfg_file = "turb_NACA0012_uq_2c.cfg" + turb_naca0012_2c.test_iter = 10 + turb_naca0012_2c.test_vals = [-5.482907, 1.262063, 0.459671, -0.026410] + test_list.append(turb_naca0012_2c) + + # NACA0012 3c + turb_naca0012_3c = TestCase('turb_naca0012_3c') + turb_naca0012_3c.cfg_dir = "rans_uq/naca0012" + turb_naca0012_3c.cfg_file = "turb_NACA0012_uq_3c.cfg" + turb_naca0012_3c.test_iter = 10 + turb_naca0012_3c.test_vals = [-5.583768, 1.229824, 0.426258, -0.033150] + test_list.append(turb_naca0012_3c) + + # NACA0012 p1c1 + turb_naca0012_p1c1 = TestCase('turb_naca0012_p1c1') + turb_naca0012_p1c1.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c1.cfg_file = "turb_NACA0012_uq_p1c1.cfg" + turb_naca0012_p1c1.test_iter = 10 + turb_naca0012_p1c1.test_vals = [-5.127701, 1.284875, 0.779301, 0.086111] + turb_naca0012_p1c1.test_vals_aarch64 = [-5.119942, 1.283920, 0.486264, -0.021518] + test_list.append(turb_naca0012_p1c1) + + # NACA0012 p1c2 + turb_naca0012_p1c2 = TestCase('turb_naca0012_p1c2') + turb_naca0012_p1c2.cfg_dir = "rans_uq/naca0012" + turb_naca0012_p1c2.cfg_file = "turb_NACA0012_uq_p1c2.cfg" + turb_naca0012_p1c2.test_iter = 10 + turb_naca0012_p1c2.test_vals = [-5.553987, 1.235071, 0.521197, -0.004487] + test_list.append(turb_naca0012_p1c2) + + ###################################### + ### Harmonic Balance ### + ###################################### + + # Description of the regression test + harmonic_balance = TestCase('harmonic_balance') + harmonic_balance.cfg_dir = "harmonic_balance" + harmonic_balance.cfg_file = "HB.cfg" + harmonic_balance.test_iter = 25 + harmonic_balance.test_vals = [-1.556449, 0.840517, 0.943602, 3.957291] + test_list.append(harmonic_balance) + + # Turbulent pitching NACA 64a010 airfoil + hb_rans_preconditioning = TestCase('hb_rans_preconditioning') + hb_rans_preconditioning.cfg_dir = "harmonic_balance/hb_rans_preconditioning" + hb_rans_preconditioning.cfg_file = "davis.cfg" + hb_rans_preconditioning.test_iter = 25 + hb_rans_preconditioning.test_vals = [-1.905509, 0.482119, 0.598486, 3.605121, -5.946067] + test_list.append(hb_rans_preconditioning) + + ###################################### + ### Moving Wall ### + ###################################### + + # Rotating NACA 0012 + rot_naca0012 = TestCase('rot_naca0012') + rot_naca0012.cfg_dir = "rotating/naca0012" + rot_naca0012.cfg_file = "rot_NACA0012.cfg" + rot_naca0012.test_iter = 25 + rot_naca0012.test_vals = [-1.281757, 4.222928, -0.027656, 0.059256, 2.000000, -1.218300] + test_list.append(rot_naca0012) + + # Lid-driven cavity + cavity = TestCase('cavity') + cavity.cfg_dir = "moving_wall/cavity" + cavity.cfg_file = "lam_cavity.cfg" + cavity.test_iter = 25 + cavity.test_vals = [-8.032742, -2.589249, 0.015257, 0.007688] + test_list.append(cavity) + + # Spinning cylinder + spinning_cylinder = TestCase('spinning_cylinder') + spinning_cylinder.cfg_dir = "moving_wall/spinning_cylinder" + spinning_cylinder.cfg_file = "spinning_cylinder.cfg" + spinning_cylinder.test_iter = 25 + spinning_cylinder.test_vals = [-7.634797, -2.176937, 1.860210, 1.939647] + test_list.append(spinning_cylinder) + + ###################################### + ### Unsteady ### + ###################################### + + # Square cylinder + square_cylinder = TestCase('square_cylinder') + square_cylinder.cfg_dir = "unsteady/square_cylinder" + square_cylinder.cfg_file = "turb_square.cfg" + square_cylinder.test_iter = 3 + square_cylinder.test_vals = [-2.560678, -1.175979, 0.062202, 1.399351, 2.219234, 1.399297, 2.217479, 0.000000] + square_cylinder.unsteady = True + test_list.append(square_cylinder) + + # Gust + sine_gust = TestCase('sine_gust') + sine_gust.cfg_dir = "gust" + sine_gust.cfg_file = "inv_gust_NACA0012.cfg" + sine_gust.test_iter = 5 + sine_gust.test_vals = [-1.977498, 3.481833, -0.012952, -0.003623] + sine_gust.unsteady = True + test_list.append(sine_gust) + + # Aeroelastic + aeroelastic = TestCase('aeroelastic') + aeroelastic.cfg_dir = "aeroelastic" + aeroelastic.cfg_file = "aeroelastic_NACA64A010.cfg" + aeroelastic.test_iter = 2 + aeroelastic.test_vals = [-1.876630, 4.021083, 0.082484, 0.026820, -0.001638, -0.000129, -1.081133] + aeroelastic.unsteady = True + test_list.append(aeroelastic) + + # Delayed Detached Eddy Simulation + ddes_flatplate = TestCase('ddes_flatplate') + ddes_flatplate.cfg_dir = "ddes/flatplate" + ddes_flatplate.cfg_file = "ddes_flatplate.cfg" + ddes_flatplate.test_iter = 10 + ddes_flatplate.test_vals = [-2.714713, -5.763293, -0.214960, 0.023758, 0.000000] + ddes_flatplate.unsteady = True + test_list.append(ddes_flatplate) + + # unsteady pitching NACA0015, SA + unst_inc_turb_naca0015_sa = TestCase('unst_inc_turb_naca0015_sa') + unst_inc_turb_naca0015_sa.cfg_dir = "unsteady/pitching_naca0015_rans_inc" + unst_inc_turb_naca0015_sa.cfg_file = "config_incomp_turb_sa.cfg" + unst_inc_turb_naca0015_sa.test_iter = 1 + unst_inc_turb_naca0015_sa.test_vals = [-3.005435, -6.878657, 1.445291, 0.420526] + unst_inc_turb_naca0015_sa.unsteady = True + test_list.append(unst_inc_turb_naca0015_sa) + # unsteady pitching NACA64A010, RANS, SA + unst_pitching_naca64a010_rans = TestCase('unst_pitching_naca64a010_rans') + unst_pitching_naca64a010_rans.cfg_dir = "unsteady/pitching_naca64a010_rans" + unst_pitching_naca64a010_rans.cfg_file = "turb_NACA64A010.cfg" + unst_pitching_naca64a010_rans.test_iter = 2 + unst_pitching_naca64a010_rans.test_vals = [-1.299045, -3.951331, 0.011098, 0.008241] + unst_pitching_naca64a010_rans.unsteady = True + test_list.append(unst_pitching_naca64a010_rans) + # unsteady pitching NACA64A010, Euler + unst_pitching_naca64a010_euler = TestCase('unst_pitching_naca64a010_euler') + unst_pitching_naca64a010_euler.cfg_dir = "unsteady/pitching_naca64a010_euler" + unst_pitching_naca64a010_euler.cfg_file = "pitching_NACA64A010.cfg" + unst_pitching_naca64a010_euler.test_iter = 2 + unst_pitching_naca64a010_euler.test_vals = [-1.186839, 4.280671, -0.026619, 0.000937] + unst_pitching_naca64a010_euler.unsteady = True + test_list.append(unst_pitching_naca64a010_euler) + # unsteady plunging NACA0012, Laminar NS + unst_plunging_naca0012 = TestCase('unst_plunging_naca0012') + unst_plunging_naca0012.cfg_dir = "unsteady/plunging_naca0012" + unst_plunging_naca0012.cfg_file = "plunging_NACA0012.cfg" + unst_plunging_naca0012.test_iter = 2 + unst_plunging_naca0012.test_vals = [-4.083462, 1.366757, -3.455802, -0.097062] + unst_plunging_naca0012.unsteady = True + test_list.append(unst_plunging_naca0012) + + # unsteady pitching NACA0012, Euler, Deforming + unst_deforming_naca0012 = TestCase('unst_deforming_naca0012') + unst_deforming_naca0012.cfg_dir = "disc_adj_euler/naca0012_pitching_def" + unst_deforming_naca0012.cfg_file = "inv_NACA0012_pitching_deform.cfg" + unst_deforming_naca0012.test_iter = 5 + unst_deforming_naca0012.test_vals = [-3.666074, -3.794974, -3.717659, -3.149285] + unst_deforming_naca0012.unsteady = True + test_list.append(unst_deforming_naca0012) + + ###################################### + ### NICFD ### + ###################################### + + # ls89_sa + ls89_sa = TestCase('ls89_sa') + ls89_sa.cfg_dir = "nicf/LS89" + ls89_sa.cfg_file = "turb_SA_PR.cfg" + ls89_sa.test_iter = 20 + ls89_sa.test_vals = [-5.041500, -13.379523, 0.179019, 0.420831] + test_list.append(ls89_sa) + + # Rarefaction shock wave edge_VW + edge_VW = TestCase('edge_VW') + edge_VW.cfg_dir = "nicf/edge" + edge_VW.cfg_file = "edge_VW.cfg" + edge_VW.test_iter = 20 + edge_VW.test_vals = [-8.901513, -2.707051, -0.000009, 0.000000] + test_list.append(edge_VW) + + # Rarefaction shock wave edge_PPR + edge_PPR = TestCase('edge_PPR') + edge_PPR.cfg_dir = "nicf/edge" + edge_PPR.cfg_file = "edge_PPR.cfg" + edge_PPR.test_iter = 20 + edge_PPR.test_vals = [-12.051551, -5.877885, -0.000034, 0.000000] + test_list.append(edge_PPR) + + + ###################################### + ### Turbomachinery ### + ###################################### + + # Aachen Turbine restart + Aachen_3D_restart = TestCase('aachen_turbine_restart') + Aachen_3D_restart.cfg_dir = "turbomachinery/Aachen_turbine" + Aachen_3D_restart.cfg_file = "aachen_3D_MP_restart.cfg" + Aachen_3D_restart.test_iter = 5 + Aachen_3D_restart.test_vals = [-7.689117, -8.476204, -6.036107, -6.427402, -5.831576, -4.599024, -5.530512, -5.305687, -3.821789, -5.243255, -5.754831, -3.631603, -2.213934, -2.895728, -0.578545] + Aachen_3D_restart.enabled_with_asan = False + test_list.append(Aachen_3D_restart) + + # Jones APU Turbocharger restart + Jones_tc_restart = TestCase('jones_turbocharger_restart') + Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger" + Jones_tc_restart.cfg_file = "Jones_restart.cfg" + Jones_tc_restart.test_iter = 5 + Jones_tc_restart.test_vals = [-11.905621, -12.212078, -19.212558, -13.508063, -19.069990, -13.439493, 73286.000000, 73286.000000, 0.020056, 82.286000] + test_list.append(Jones_tc_restart) + + # 2D axial stage + axial_stage2D = TestCase('axial_stage2D') + axial_stage2D.cfg_dir = "turbomachinery/axial_stage_2D" + axial_stage2D.cfg_file = "Axial_stage2D.cfg" + axial_stage2D.test_iter = 20 + axial_stage2D.test_vals = [1.167521, 1.598536, -2.928575, 2.573646, -2.527330, 3.016253, 106370.000000, 106370.000000, 5.726800, 64.383000] + test_list.append(axial_stage2D) + + # 2D transonic stator restart + transonic_stator_restart = TestCase('transonic_stator_restart') + transonic_stator_restart.cfg_dir = "turbomachinery/transonic_stator_2D" + transonic_stator_restart.cfg_file = "transonic_stator_restart.cfg" + transonic_stator_restart.test_iter = 20 + transonic_stator_restart.test_vals = [-4.367784, -2.492912, -2.082414, 1.727491, -1.466974, 3.224730, -471620.000000, 94.839000, -0.052082] + transonic_stator_restart.test_vals_aarch64 = [-4.367784, -2.492912, -2.082414, 1.727491, -1.466974, 3.224730, -471620.000000, 94.839000, -0.052082] + test_list.append(transonic_stator_restart) + + # Multiple turbomachinery interface restart + multi_interface = TestCase('multi_interface') + multi_interface.cfg_dir = "turbomachinery/multi_interface" + multi_interface.cfg_file = "multi_interface_rst.cfg" + multi_interface.test_iter = 5 + multi_interface.test_vals = [-8.634558, -8.895554, -9.348754] + multi_interface.test_vals_aarch64 = [-8.632227, -8.894736, -9.348706] + test_list.append(multi_interface) + + + ###################################### + ### Sliding Mesh ### + ###################################### + + # Dry run Multizone + uniform_flow_d = TestCase('dry run Multizone') + uniform_flow_d.cfg_dir = "sliding_interface/uniform_flow" + uniform_flow_d.cfg_file = "uniform_NN.cfg" + uniform_flow_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(uniform_flow_d) + + # Uniform flow + uniform_flow = TestCase('uniform_flow') + uniform_flow.cfg_dir = "sliding_interface/uniform_flow" + uniform_flow.cfg_file = "uniform_NN.cfg" + uniform_flow.test_iter = 2 + uniform_flow.test_vals = [2.000000, 0.000000, -0.230680, -13.251592] + uniform_flow.test_vals_aarch64 = [2.000000, 0.000000, -0.230641, -13.249000] + uniform_flow.tol = 0.000001 + uniform_flow.unsteady = True + uniform_flow.multizone = True + test_list.append(uniform_flow) + + # Channel_2D, native SU2 binary mesh format (.su2b) + # channel_2D_WA.cfg loads channel_2D_su2bin.su2b directly, so SU2_DEF must + # first convert channel_2D.su2 (3 zones) into that binary mesh. + channel_2D_su2bin_convert = TestCase('channel_2D_su2bin_convert') + channel_2D_su2bin_convert.cfg_dir = "sliding_interface/channel_2D" + channel_2D_su2bin_convert.cfg_file = "mesh_su2_to_su2bin.cfg" + channel_2D_su2bin_convert.command = TestCase.Command(exec = "SU2_DEF") + test_list.append(channel_2D_su2bin_convert) + + # Channel_2D + channel_2D = TestCase('channel_2D') + channel_2D.cfg_dir = "sliding_interface/channel_2D" + channel_2D.cfg_file = "channel_2D_WA.cfg" + channel_2D.test_iter = 2 + channel_2D.test_vals = [2.000000, 0.000000, 0.399122, 0.350309, 0.405616] + channel_2D.timeout = 100 + channel_2D.unsteady = True + channel_2D.multizone = True + test_list.append(channel_2D) + + # Channel_3D + channel_3D = TestCase('channel_3D') + channel_3D.cfg_dir = "sliding_interface/channel_3D" + channel_3D.cfg_file = "channel_3D_WA.cfg" + channel_3D.test_iter = 1 + channel_3D.test_vals = [1.000000, 0.000000, 0.620573, 0.810294, 0.718984] + channel_3D.test_vals_aarch64 = [1.000000, 0.000000, 0.611996, 0.798988, 0.702357] + channel_3D.unsteady = True + channel_3D.multizone = True + channel_3D.enabled_with_asan = False + test_list.append(channel_3D) + + # Pipe + pipe = TestCase('pipe') + pipe.cfg_dir = "sliding_interface/pipe" + pipe.cfg_file = "pipe_NN.cfg" + pipe.test_iter = 2 + pipe.test_vals = [0.452310, 0.562852, 0.974610, 1.031075] + pipe.unsteady = True + pipe.multizone = True + test_list.append(pipe) + + # Rotating cylinders + rotating_cylinders = TestCase('rotating_cylinders') + rotating_cylinders.cfg_dir = "sliding_interface/rotating_cylinders" + rotating_cylinders.cfg_file = "rot_cylinders_WA.cfg" + rotating_cylinders.test_iter = 3 + rotating_cylinders.test_vals = [3.000000, 0.000000, 0.686419, 1.152594, 1.145895] + rotating_cylinders.unsteady = True + rotating_cylinders.multizone = True + test_list.append(rotating_cylinders) + + # Supersonic vortex shedding + supersonic_vortex_shedding = TestCase('supersonic_vortex_shedding') + supersonic_vortex_shedding.cfg_dir = "sliding_interface/supersonic_vortex_shedding" + supersonic_vortex_shedding.cfg_file = "sup_vor_shed_WA.cfg" + supersonic_vortex_shedding.test_iter = 5 + supersonic_vortex_shedding.test_vals = [5.000000, 0.000000, 1.128138, 1.064261] + supersonic_vortex_shedding.unsteady = True + supersonic_vortex_shedding.multizone = True + test_list.append(supersonic_vortex_shedding) + + # Bars_SST_2D + bars_SST_2D = TestCase('bars_SST_2D') + bars_SST_2D.cfg_dir = "sliding_interface/bars_SST_2D" + bars_SST_2D.cfg_file = "bars.cfg" + bars_SST_2D.test_iter = 13 + bars_SST_2D.test_vals = [13.000000, -0.456143, -1.541051] + bars_SST_2D.multizone = True + test_list.append(bars_SST_2D) + + # Sliding mesh with incompressible flows (steady) + slinc_steady = TestCase('slinc_steady') + slinc_steady.cfg_dir = "sliding_interface/incompressible_steady" + slinc_steady.cfg_file = "config.cfg" + slinc_steady.test_iter = 19 + slinc_steady.test_vals = [19.000000, -1.141747, -1.450721] + slinc_steady.timeout = 100 + slinc_steady.multizone = True + test_list.append(slinc_steady) + + # Sliding mesh with incompressible flows (unsteady) + # slinc_unsteady = TestCase('slinc_unsteady') + # slinc_unsteady.cfg_dir = "sliding_interface/incompressible_unsteady" + # slinc_unsteady.cfg_file = "config.cfg" + # slinc_unsteady.test_iter = 19 + # slinc_unsteady.test_vals = [-3.515218,1.930028,0.000000,0.000000] #last 4 columns + # slinc_unsteady.timeout = 100 + # slinc_unsteady.unsteady = True + # test_list.append(slinc_unsteady) + + ########################## + ### FEA - FSI ### + ########################## + + # Dry run FEA + statbeam3d_d = TestCase('dry run FEA') + statbeam3d_d.cfg_dir = "fea_fsi/StatBeam_3d" + statbeam3d_d.cfg_file = "configBeam_3d.cfg" + statbeam3d_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(statbeam3d_d) + + # Static beam, 3d + statbeam3d = TestCase('statbeam3d') + statbeam3d.cfg_dir = "fea_fsi/StatBeam_3d" + statbeam3d.cfg_file = "configBeam_3d.cfg" + statbeam3d.test_iter = 0 + statbeam3d.test_vals = [-6.192310, -5.950395, -6.079363, 110190.000000] + statbeam3d.test_vals_aarch64 = [-6.166287, -5.938291, -6.069768, 110190] #last 4 columns + test_list.append(statbeam3d) + + # Mix elem, 3d beam, Knowles + knowlesbeam = TestCase('mixelemknowles') + knowlesbeam.cfg_dir = "fea_fsi/MixElemsKnowles" + knowlesbeam.cfg_file = "config.cfg" + knowlesbeam.test_iter = 0 + knowlesbeam.test_vals = [-14.472698, -13.540078, -28.049079, 0.445030, 9.730600] + knowlesbeam.test_vals_aarch64 = [-14.475326, -13.54641, -28.057487, 0.44503, 9.7306] #last 5 columns + knowlesbeam.tol = 0.0001 + test_list.append(knowlesbeam) + + # Dynamic beam, 2d + dynbeam2d = TestCase('dynbeam2d') + dynbeam2d.cfg_dir = "fea_fsi/DynBeam_2d" + dynbeam2d.cfg_file = "configBeam_2d.cfg" + dynbeam2d.unsteady = True + dynbeam2d.test_iter = 6 + dynbeam2d.test_vals = [-3.240012, 2.895060, -0.353140, 76220] + test_list.append(dynbeam2d) + + # FSI, 2d + fsi2d = TestCase('fsi2d') + fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" + fsi2d.cfg_file = "configFSI.cfg" + fsi2d.test_iter = 4 + fsi2d.test_vals = [4.000000, 0.000000, -3.725521, -4.278759] + fsi2d.multizone = True + fsi2d.unsteady = True + test_list.append(fsi2d) + + # FSI+CHT, Static, 2D, new mesh solver + fsi_cht = TestCase('fsi_cht') + fsi_cht.cfg_dir = "fea_fsi/stat_fsi" + fsi_cht.cfg_file = "config.cfg" + fsi_cht.test_iter = 20 + fsi_cht.test_vals = [5.000000, -5.077002, -5.379450, -9.247804, -9.320014, -9.185034, 608.350000, -0.012973, 0.000000, 30.000000] + fsi_cht.multizone = True + test_list.append(fsi_cht) + + # FSI, Dynamic, 2D, new mesh solver + dyn_fsi = TestCase('dyn_fsi') + dyn_fsi.cfg_dir = "fea_fsi/dyn_fsi" + dyn_fsi.cfg_file = "config.cfg" + dyn_fsi.test_iter = 4 + dyn_fsi.test_vals = [-4.328792, -4.153004, 0.000000, 86.000000] + dyn_fsi.multizone = True + dyn_fsi.unsteady = True + test_list.append(dyn_fsi) + + # FSI, 2D airfoil with RBF interpolation + airfoilRBF = TestCase('airfoil_fsi_rbf') + airfoilRBF.cfg_dir = "fea_fsi/Airfoil_RBF" + airfoilRBF.cfg_file = "config.cfg" + airfoilRBF.test_iter = 1 + airfoilRBF.test_vals = [1.000000, 0.030557, -3.531052] + airfoilRBF.tol = 0.0001 + airfoilRBF.multizone = True + test_list.append(airfoilRBF) + + # ############################### + # ### Radiative Heat Transfer ### + # ###############################] + + # Radiative heat transfer + p1rad = TestCase('p1rad') + p1rad.cfg_dir = "radiation/p1model" + p1rad.cfg_file = "configp1.cfg" + p1rad.test_iter = 50 + p1rad.test_vals = [-8.284673, -8.008659, -2.424204, 0.389030, -56.560000] + test_list.append(p1rad) + + # ############################### + # ### Conjugate heat transfer ### + # ############################### + + # Dry run CHT + cht_incompressible_d = TestCase('dry run CHT') + cht_incompressible_d.cfg_dir = "coupled_cht/incomp_2d" + cht_incompressible_d.cfg_file = "cht_2d_3cylinders.cfg" + cht_incompressible_d.command = TestCase.Command(exec = "SU2_CFD", param = "-d") + test_list.append(cht_incompressible_d) + + # CHT incompressible + cht_incompressible = TestCase('cht_incompressible') + cht_incompressible.cfg_dir = "coupled_cht/incomp_2d" + cht_incompressible.cfg_file = "cht_2d_3cylinders.cfg" + cht_incompressible.test_iter = 10 + cht_incompressible.test_vals = [-1.376345, -0.591212, -0.591212, -0.591212] + cht_incompressible.multizone = True + test_list.append(cht_incompressible) + + # CHT compressible + cht_incompressible = TestCase('cht_compressible') + cht_incompressible.cfg_dir = "coupled_cht/comp_2d" + cht_incompressible.cfg_file = "cht_2d_3cylinders.cfg" + cht_incompressible.test_iter = 10 + cht_incompressible.test_vals = [-4.256032, -0.532728, -0.532728, -0.532728] + cht_incompressible.multizone = True + test_list.append(cht_incompressible) + + ############################################## + ### Method of Manufactured Solutions (MMS) ### + ############################################## + + # FVM, compressible, euler (periodic isentropic vortex) + mms_fvm_vortex = TestCase('mms_fvm_vortex') + mms_fvm_vortex.cfg_dir = "mms/fvm_euler" + mms_fvm_vortex.cfg_file = "inv_mms_vortex.cfg" + mms_fvm_vortex.test_iter = 10 + mms_fvm_vortex.test_vals = [-5.704300, -4.848072, 0.000000, 0.000000] + mms_fvm_vortex.unsteady = True + test_list.append(mms_fvm_vortex) + + # FVM, compressible, laminar N-S + mms_fvm_ns = TestCase('mms_fvm_ns') + mms_fvm_ns.cfg_dir = "mms/fvm_navierstokes" + mms_fvm_ns.cfg_file = "lam_mms_roe.cfg" + mms_fvm_ns.test_iter = 20 + mms_fvm_ns.test_vals = [-2.808514, 2.152654, 0.000000, 0.000000] + mms_fvm_ns.tol = 0.0001 + test_list.append(mms_fvm_ns) + + # FVM, incompressible, euler + mms_fvm_inc_euler = TestCase('mms_fvm_inc_euler') + mms_fvm_inc_euler.cfg_dir = "mms/fvm_incomp_euler" + mms_fvm_inc_euler.cfg_file = "inv_mms_jst.cfg" + mms_fvm_inc_euler.test_iter = 20 + mms_fvm_inc_euler.test_vals = [-9.128345, -9.441741, 0.000000, 0.000000] + mms_fvm_inc_euler.tol = 0.0001 + test_list.append(mms_fvm_inc_euler) + + # FVM, incompressible, laminar N-S + mms_fvm_inc_ns = TestCase('mms_fvm_inc_ns') + mms_fvm_inc_ns.cfg_dir = "mms/fvm_incomp_navierstokes" + mms_fvm_inc_ns.cfg_file = "lam_mms_fds.cfg" + mms_fvm_inc_ns.test_iter = 20 + mms_fvm_inc_ns.test_vals = [-7.414944, -7.631546, 0.000000, 0.000000] + mms_fvm_inc_ns.tol = 0.0001 + test_list.append(mms_fvm_inc_ns) + + # DG, compressible, euler + ringleb_dg_euler = TestCase('ringleb_dg_euler') + ringleb_dg_euler.cfg_dir = "mms/dg_ringleb" + ringleb_dg_euler.cfg_file = "ringleb_dg.cfg" + ringleb_dg_euler.test_iter = 100 + ringleb_dg_euler.test_vals = [-5.136652, -4.724941, 0.000000, 0.000000] + ringleb_dg_euler.tol = 0.0001 + test_list.append(ringleb_dg_euler) + + # DG, compressible, laminar N-S + mms_dg_ns = TestCase('mms_dg_ns') + mms_dg_ns.cfg_dir = "mms/dg_navierstokes" + mms_dg_ns.cfg_file = "lam_mms_dg.cfg" + mms_dg_ns.test_iter = 100 + mms_dg_ns.test_vals = [-1.845393, 3.520699, 0.000000, 0.000000] + mms_dg_ns.tol = 0.0001 + test_list.append(mms_dg_ns) + + # DG, compressible, laminar N-S 3D + mms_dg_ns_3d = TestCase('mms_dg_ns_3d') + mms_dg_ns_3d.cfg_dir = "mms/dg_navierstokes_3d" + mms_dg_ns_3d.cfg_file = "lam_mms_dg_3d.cfg" + mms_dg_ns_3d.test_iter = 100 + mms_dg_ns_3d.test_vals = [-0.146826, 5.356413, 0.000000, 0.000000] + mms_dg_ns_3d.tol = 0.0001 + test_list.append(mms_dg_ns_3d) + + ###################################### + ### CGNS writer ### + ###################################### + + # The CGNS output of a 2D mesh is read back as mesh, with the restart written by the same run. + # The read-back test must run after the test that writes the files. + cgns_output = TestCase('cgns_output') + cgns_output.cfg_dir = "output_writers" + cgns_output.cfg_file = "cgns_output.cfg" + cgns_output.test_iter = 2 + cgns_output.test_vals = [-1.684071, 0.454658, 3.802835, -2.624573, 6.956844, 0.091480] + test_list.append(cgns_output) + + cgns_mesh_readback = TestCase('cgns_mesh_readback') + cgns_mesh_readback.cfg_dir = "output_writers" + cgns_mesh_readback.cfg_file = "cgns_mesh_readback.cfg" + cgns_mesh_readback.test_iter = 2 + cgns_mesh_readback.test_vals = [-2.480775, 0.352445, 2.998807, -3.103293, 6.892515, 0.085107] + test_list.append(cgns_mesh_readback) + + # Same for a 3D mesh with mixed elements, whose boundaries are written as MIXED sections. + cgns_output_bend = TestCase('cgns_output_bend') + cgns_output_bend.cfg_dir = "output_writers" + cgns_output_bend.cfg_file = "cgns_output_bend.cfg" + cgns_output_bend.test_iter = 2 + cgns_output_bend.test_vals = [-2.420818, -2.225454, -2.551501, -3.067128, 2.673612] + test_list.append(cgns_output_bend) + + cgns_mesh_readback_bend = TestCase('cgns_mesh_readback_bend') + cgns_mesh_readback_bend.cfg_dir = "output_writers" + cgns_mesh_readback_bend.cfg_file = "cgns_mesh_readback_bend.cfg" + cgns_mesh_readback_bend.test_iter = 2 + cgns_mesh_readback_bend.test_vals = [-3.254168, -2.756564, -3.006605, -3.572686, 4.308287] + test_list.append(cgns_mesh_readback_bend) + + ###################################### + ### RUN TESTS ### + ###################################### + + # set suitable defaults unless something else has been specified + # command: "SU2_CFD" + # timeout: 1600 + # tol: 0.00001 + for test in test_list: + if test.command.empty(): + test.command = TestCase.Command(exec = "SU2_CFD") + if test.timeout == 0: + test.timeout = 1600 + if test.tol == 0.0: + test.tol = 0.00001 + + pass_list = [ test.run_test(args.tsan, args.asan) for test in test_list ] + + # Nastran bulk data parser unit tests + nastran_parser = TestCase('pysu2_nastran') + # The CI container runs this script from a copied tests/TestCases tree, so + # the repo-relative path does not exist there; use the installed copy that + # SU2_RUN points to and fall back to the source tree for local runs. + nastran_test = os.path.join( + os.environ.get('SU2_RUN', ''), + 'SU2_Nastran', + 'test_pysu2_nastran.py', + ) + if not os.path.isfile(nastran_test): + nastran_test = os.path.join( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))), + 'SU2_PY', + 'SU2_Nastran', + 'test_pysu2_nastran.py', + ) + pass_list.append(subprocess.call([sys.executable, nastran_test]) == 0) + test_list.append(nastran_parser) + + + ###################################### + ### RUN SU2_GEO TESTS ### + ###################################### + + # NACA0012 + naca0012_geo = TestCase('naca0012_geo') + naca0012_geo.cfg_dir = "optimization_euler/steady_naca0012" + naca0012_geo.cfg_file = "inv_NACA0012_adv.cfg" + naca0012_geo.test_vals = [1.000000, 62.045500, 0.120011, 0.000000] + naca0012_geo.command = TestCase.Command(exec = "SU2_GEO") + naca0012_geo.timeout = 1600 + naca0012_geo.tol = 0.00001 + pass_list.append(naca0012_geo.run_geo(args.tsan, args.asan)) + test_list.append(naca0012_geo) + + ###################################### + ### RUN SU2_DEF TESTS ### + ###################################### + + # intersection prevention + intersect_def = TestCase('intersectionprevention') + intersect_def.cfg_dir = "deformation/intersection_prevention" + intersect_def.cfg_file = "def_intersect.cfg" + intersect_def.test_iter = 10 + intersect_def.test_vals = [0.000112] + intersect_def.command = TestCase.Command(exec = "SU2_DEF") + intersect_def.timeout = 1600 + intersect_def.tol = 1e-04 + + pass_list.append(intersect_def.run_def(args.tsan, args.asan)) + test_list.append(intersect_def) + + # Inviscid NACA0012 (triangles) + naca0012_def = TestCase('naca0012_def') + naca0012_def.cfg_dir = "deformation/naca0012" + naca0012_def.cfg_file = "def_NACA0012.cfg" + naca0012_def.test_iter = 10 + naca0012_def.test_vals = [0.0034470] + naca0012_def.command = TestCase.Command(exec = "SU2_DEF") + naca0012_def.timeout = 1600 + naca0012_def.tol = 1e-06 + + pass_list.append(naca0012_def.run_def(args.tsan, args.asan)) + test_list.append(naca0012_def) + + # Inviscid NACA0012 based on SURFACE_FILE input (surface_bump.dat) + naca0012_def_file = TestCase('naca0012_def_file') + naca0012_def_file.cfg_dir = "deformation/naca0012" + naca0012_def_file.cfg_file = "surface_file_NACA0012.cfg" + naca0012_def_file.test_iter = 10 + naca0012_def_file.test_vals = [0.0034470] + naca0012_def_file.command = TestCase.Command(exec = "SU2_DEF") + naca0012_def_file.timeout = 1600 + naca0012_def_file.tol = 1e-6 + + pass_list.append(naca0012_def_file.run_def(args.tsan, args.asan)) + test_list.append(naca0012_def_file) + + # RAE2822 (mixed tris + quads) + rae2822_def = TestCase('rae2822_def') + rae2822_def.cfg_dir = "deformation/rae2822" + rae2822_def.cfg_file = "def_RAE2822.cfg" + rae2822_def.test_iter = 10 + rae2822_def.test_vals = [0.0000000] + rae2822_def.command = TestCase.Command(exec = "SU2_DEF") + rae2822_def.timeout = 1600 + rae2822_def.tol = 1e-06 + + pass_list.append(rae2822_def.run_def(args.tsan, args.asan)) + test_list.append(rae2822_def) + + # Turb NACA4412 (quads, wall distance) + naca4412_def = TestCase('naca4412_def') + naca4412_def.cfg_dir = "deformation/naca4412" + naca4412_def.cfg_file = "def_NACA4412.cfg" + naca4412_def.test_iter = 10 + naca4412_def.test_vals = [0.0000000] + naca4412_def.command = TestCase.Command(exec = "SU2_DEF") + naca4412_def.timeout = 1600 + naca4412_def.tol = 1e-06 + + pass_list.append(naca4412_def.run_def(args.tsan, args.asan)) + test_list.append(naca4412_def) + + # Brick of tets (inverse volume) + brick_tets_def = TestCase('brick_tets_def') + brick_tets_def.cfg_dir = "deformation/brick_tets" + brick_tets_def.cfg_file = "def_brick_tets.cfg" + brick_tets_def.test_iter = 10 + brick_tets_def.test_vals = [0.0008970] + brick_tets_def.command = TestCase.Command(exec = "SU2_DEF") + brick_tets_def.timeout = 1600 + brick_tets_def.tol = 1e-06 + + pass_list.append(brick_tets_def.run_def(args.tsan, args.asan)) + test_list.append(brick_tets_def) + + # Brick of isotropic hexas (inverse volume) + brick_hex_def = TestCase('brick_hex_def') + brick_hex_def.cfg_dir = "deformation/brick_hex" + brick_hex_def.cfg_file = "def_brick_hex.cfg" + brick_hex_def.test_iter = 10 + brick_hex_def.test_vals = [0.0002080] + brick_hex_def.command = TestCase.Command(exec = "SU2_DEF") + brick_hex_def.timeout = 1600 + brick_hex_def.tol = 1e-06 + + pass_list.append(brick_hex_def.run_def(args.tsan, args.asan)) + test_list.append(brick_hex_def) + + # Brick with a pyramid layer (inverse volume) + brick_pyra_def = TestCase('brick_pyra_def') + brick_pyra_def.cfg_dir = "deformation/brick_pyra" + brick_pyra_def.cfg_file = "def_brick_pyra.cfg" + brick_pyra_def.test_iter = 10 + brick_pyra_def.test_vals = [0.0015010] + brick_pyra_def.command = TestCase.Command(exec = "SU2_DEF") + brick_pyra_def.timeout = 1600 + brick_pyra_def.tol = 1e-06 + + pass_list.append(brick_pyra_def.run_def(args.tsan, args.asan)) + test_list.append(brick_pyra_def) + + # Brick of isotropic prisms (inverse volume) + brick_prism_def = TestCase('brick_prism_def') + brick_prism_def.cfg_dir = "deformation/brick_prism" + brick_prism_def.cfg_file = "def_brick_prism.cfg" + brick_prism_def.test_iter = 10 + brick_prism_def.test_vals = [0.0021210] + brick_prism_def.command = TestCase.Command(exec = "SU2_DEF") + brick_prism_def.timeout = 1600 + brick_prism_def.tol = 1e-06 + + pass_list.append(brick_prism_def.run_def(args.tsan, args.asan)) + test_list.append(brick_prism_def) + + # Brick of prisms with high aspect ratio cells near the wall (wall distance) + brick_prism_rans_def = TestCase('brick_prism_rans_def') + brick_prism_rans_def.cfg_dir = "deformation/brick_prism_rans" + brick_prism_rans_def.cfg_file = "def_brick_prism_rans.cfg" + brick_prism_rans_def.test_iter = 10 + brick_prism_rans_def.test_vals = [0.0000000] + brick_prism_rans_def.command = TestCase.Command(exec = "SU2_DEF") + brick_prism_rans_def.timeout = 1600 + brick_prism_rans_def.tol = 1e-06 + + pass_list.append(brick_prism_rans_def.run_def(args.tsan, args.asan)) + test_list.append(brick_prism_rans_def) + + # Brick of hexas with high aspect ratio cells near the wall (inverse volume) + brick_hex_rans_def = TestCase('brick_hex_rans_def') + brick_hex_rans_def.cfg_dir = "deformation/brick_hex_rans" + brick_hex_rans_def.cfg_file = "def_brick_hex_rans.cfg" + brick_hex_rans_def.test_iter = 10 + brick_hex_rans_def.test_vals = [0.0000000] + brick_hex_rans_def.command = TestCase.Command(exec = "SU2_DEF") + brick_hex_rans_def.timeout = 1600 + brick_hex_rans_def.tol = 1e-06 + + pass_list.append(brick_hex_rans_def.run_def(args.tsan, args.asan)) + test_list.append(brick_hex_rans_def) + + # Cylindrical FFD test + cylinder_ffd_def = TestCase('cylinder_ffd_def') + cylinder_ffd_def.cfg_dir = "deformation/cylindrical_ffd" + cylinder_ffd_def.cfg_file = "def_cylindrical.cfg" + cylinder_ffd_def.test_iter = 10 + cylinder_ffd_def.test_vals = [0.0004700] + cylinder_ffd_def.command = TestCase.Command(exec = "SU2_DEF") + cylinder_ffd_def.timeout = 1600 + cylinder_ffd_def.tol = 1e-06 + + pass_list.append(cylinder_ffd_def.run_def(args.tsan, args.asan)) + test_list.append(cylinder_ffd_def) + + # Spherical FFD test + sphere_ffd_def = TestCase('sphere_ffd_def') + sphere_ffd_def.cfg_dir = "deformation/spherical_ffd" + sphere_ffd_def.cfg_file = "def_spherical.cfg" + sphere_ffd_def.test_iter = 10 + sphere_ffd_def.test_vals = [0.0035670] + sphere_ffd_def.command = TestCase.Command(exec = "SU2_DEF") + sphere_ffd_def.timeout = 1600 + sphere_ffd_def.tol = 1e-06 + + pass_list.append(sphere_ffd_def.run_def(args.tsan, args.asan)) + test_list.append(sphere_ffd_def) + + # Spherical FFD test using BSplines + sphere_ffd_def_bspline = TestCase('sphere_ffd_def_bspline') + sphere_ffd_def_bspline.cfg_dir = "deformation/spherical_ffd" + sphere_ffd_def_bspline.cfg_file = "def_spherical_bspline.cfg" + sphere_ffd_def_bspline.test_iter = 10 + sphere_ffd_def_bspline.test_vals = [0.0020680] + sphere_ffd_def_bspline.command = TestCase.Command(exec = "SU2_DEF") + sphere_ffd_def_bspline.timeout = 1600 + sphere_ffd_def_bspline.tol = 1e-06 + + pass_list.append(sphere_ffd_def_bspline.run_def(args.tsan, args.asan)) + test_list.append(sphere_ffd_def_bspline) + + ###################################### + ### RUN PYTHON TESTS ### + ###################################### + + # test continuous_adjoint.py + contadj_euler_py = TestCase('contadj_euler_py') + contadj_euler_py.cfg_dir = "cont_adj_euler/naca0012" + contadj_euler_py.cfg_file = "inv_NACA0012.cfg" + contadj_euler_py.test_iter = 10 + contadj_euler_py.command = TestCase.Command(exec = "continuous_adjoint.py", param = "-f") + contadj_euler_py.timeout = 1600 + contadj_euler_py.reference_file = "of_grad_cd.dat.ref" + contadj_euler_py.test_file = "of_grad_cd.dat" + contadj_euler_py.enabled_with_asan = False + pass_list.append(contadj_euler_py.run_filediff(args.tsan, args.asan)) + test_list.append(contadj_euler_py) + + # test shape_optimization.py + shape_opt_euler_py = TestCase('shape_opt_euler_py') + shape_opt_euler_py.cfg_dir = "optimization_euler/steady_naca0012" + shape_opt_euler_py.cfg_file = "inv_NACA0012_adv.cfg" + shape_opt_euler_py.test_iter = 1 + shape_opt_euler_py.test_vals = [1.000000, 1.000000, 0.000021, 0.003642] + shape_opt_euler_py.command = TestCase.Command(exec = "shape_optimization.py", param = "-g CONTINUOUS_ADJOINT -f") + shape_opt_euler_py.timeout = 1600 + shape_opt_euler_py.tol = 0.00001 + shape_opt_euler_py.enabled_with_asan = False + pass_list.append(shape_opt_euler_py.run_opt(args.tsan, args.asan)) + test_list.append(shape_opt_euler_py) + + # Multiple functionals with the continuous adjoint + contadj_multi_py = TestCase('contadj_multi_py') + contadj_multi_py.cfg_dir = "cont_adj_euler/wedge" + contadj_multi_py.cfg_file = "inv_wedge_ROE_multiobj.cfg" + contadj_multi_py.test_iter = 10 + contadj_multi_py.command = TestCase.Command(exec = "continuous_adjoint.py", param = "-f") + contadj_multi_py.timeout = 1600 + contadj_multi_py.reference_file = "of_grad_combo.dat.ref" + contadj_multi_py.test_file = "of_grad_combo.dat" + contadj_multi_py.enabled_with_asan = False + pass_list.append(contadj_multi_py.run_filediff(args.tsan, args.asan)) + test_list.append(contadj_multi_py) + + # Optimization with multiple objectives, with gradients evaluated individually + # the difference in gradient value relative to combined case + # is due to lack of solution file for the adjoint and small number of iterations +# opt_multiobj_py = TestCase('opt_multiobj_py') +# opt_multiobj_py.cfg_dir = "optimization_euler/multiobjective_wedge" +# opt_multiobj_py.cfg_file = "inv_wedge_ROE_multiobj.cfg" +# opt_multiobj_py.test_iter = 1 +# opt_multiobj_py.test_vals = [1, 1, 1.084701E+02, 3.799222E+00] #last 4 columns +# opt_multiobj_py.command = TestCase.Command(exec = "shape_optimization.py", param = "-g CONTINUOUS_ADJOINT -f") +# opt_multiobj_py.timeout = 1600 +# opt_multiobj_py.tol = 0.00001 +# pass_list.append(opt_multiobj_py.run_opt()) +# test_list.append(opt_multiobj_py) +# +# # test optimization, with multiple objectives and gradient evaluated as 'combo' +# opt_multiobjcombo_py = TestCase('opt_multiobjcombo_py') +# opt_multiobjcombo_py.cfg_dir = "optimization_euler/multiobjective_wedge" +# opt_multiobjcombo_py.cfg_file = "inv_wedge_ROE_multiobj_combo.cfg" +# opt_multiobjcombo_py.test_iter = 1 +# opt_multiobjcombo_py.test_vals = [1, 1, 1.084701E+02, 3.789322E+00] #last 4 columns +# opt_multiobjcombo_py.command = TestCase.Command(exec = "shape_optimization.py", param = "-g CONTINUOUS_ADJOINT -f") +# opt_multiobjcombo_py.timeout = 1600 +# opt_multiobjcombo_py.tol = 0.00001 +# pass_list.append(opt_multiobjcombo_py.run_opt()) +# test_list.append(opt_multiobjcombo_py) + + # test optimization, with multiple objectives evaluated on a single surface + opt_multiobj1surf_py = TestCase('opt_multiobj1surf_py') + opt_multiobj1surf_py.cfg_dir = "optimization_euler/multiobjective_wedge" + opt_multiobj1surf_py.cfg_file = "inv_wedge_ROE_multiobj_1surf.cfg" + opt_multiobj1surf_py.test_iter = 1 + opt_multiobj1surf_py.test_vals = [1.000000, 1.000000, 36.586730, 5.593636] + opt_multiobj1surf_py.command = TestCase.Command(exec = "shape_optimization.py", param = "-g CONTINUOUS_ADJOINT -f") + opt_multiobj1surf_py.timeout = 1600 + opt_multiobj1surf_py.tol = 0.00001 + opt_multiobj1surf_py.enabled_with_asan = False + pass_list.append(opt_multiobj1surf_py.run_opt(args.tsan, args.asan)) + test_list.append(opt_multiobj1surf_py) + + # test optimization, with a single objective evaluated on multiple surfaces + opt_2surf1obj_py = TestCase('opt_2surf1obj_py') + opt_2surf1obj_py.cfg_dir = "optimization_euler/multiobjective_wedge" + opt_2surf1obj_py.cfg_file = "inv_wedge_ROE_2surf_1obj.cfg" + opt_2surf1obj_py.test_iter = 1 + opt_2surf1obj_py.test_vals = [1.000000, 1.000000, 2.005039, 0.000462] + opt_2surf1obj_py.command = TestCase.Command(exec = "shape_optimization.py", param = "-g CONTINUOUS_ADJOINT -f") + opt_2surf1obj_py.timeout = 1600 + opt_2surf1obj_py.tol = 0.00001 + opt_2surf1obj_py.enabled_with_asan = False + pass_list.append(opt_2surf1obj_py.run_opt(args.tsan, args.asan)) + test_list.append(opt_2surf1obj_py) + + ########################## + ### Python wrapper ### + ########################## + + # NACA0012 + pywrapper_naca0012 = TestCase('pywrapper_naca0012') + pywrapper_naca0012.cfg_dir = "euler/naca0012" + pywrapper_naca0012.cfg_file = "inv_NACA0012_Roe.cfg" + pywrapper_naca0012.test_iter = 20 + pywrapper_naca0012.test_vals = [-4.031446, -3.524530, 0.273056, 0.009703] + pywrapper_naca0012.command = TestCase.Command(exec = "SU2_CFD.py", param = "-f") + pywrapper_naca0012.timeout = 1600 + pywrapper_naca0012.tol = 0.00001 + pywrapper_naca0012.enabled_with_asan = False + test_list.append(pywrapper_naca0012) + pass_list.append(pywrapper_naca0012.run_test(args.tsan, args.asan)) + + # NACA0012 (SST, FUN3D results for finest grid: CL=1.0840, CD=0.01253) + pywrapper_turb_naca0012_sst = TestCase('pywrapper_turb_naca0012_sst') + pywrapper_turb_naca0012_sst.cfg_dir = "rans/naca0012" + pywrapper_turb_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg" + pywrapper_turb_naca0012_sst.test_iter = 10 + pywrapper_turb_naca0012_sst.test_vals = [-12.094366, -15.251082, -5.906366, 1.070413, 0.015775, -3.178304, 0.000000] + pywrapper_turb_naca0012_sst.test_vals_aarch64 = [-12.076068, -15.246740, -5.861280, 1.070036, 0.015841, -3.297854, 0.000000] + pywrapper_turb_naca0012_sst.command = TestCase.Command(exec = "SU2_CFD.py", param = "-f") + pywrapper_turb_naca0012_sst.timeout = 3200 + pywrapper_turb_naca0012_sst.tol = 0.00001 + pywrapper_turb_naca0012_sst.enabled_with_asan = False + test_list.append(pywrapper_turb_naca0012_sst) + pass_list.append(pywrapper_turb_naca0012_sst.run_test(args.tsan, args.asan)) + + # Square cylinder + pywrapper_square_cylinder = TestCase('pywrapper_square_cylinder') + pywrapper_square_cylinder.cfg_dir = "unsteady/square_cylinder" + pywrapper_square_cylinder.cfg_file = "turb_square.cfg" + pywrapper_square_cylinder.test_iter = 3 + pywrapper_square_cylinder.test_vals = [-2.560678, -1.175979, 0.062202, 1.399351, 2.219234, 1.399297, 2.217479, 0.000000] + pywrapper_square_cylinder.command = TestCase.Command(exec = "SU2_CFD.py", param = "-f") + pywrapper_square_cylinder.timeout = 1600 + pywrapper_square_cylinder.tol = 0.00001 + pywrapper_square_cylinder.unsteady = True + pywrapper_square_cylinder.enabled_with_asan = False + test_list.append(pywrapper_square_cylinder) + pass_list.append(pywrapper_square_cylinder.run_test(args.tsan, args.asan)) + + # FSI, 2d + pywrapper_fsi2d = TestCase('pywrapper_fsi2d') + pywrapper_fsi2d.cfg_dir = "fea_fsi/WallChannel_2d" + pywrapper_fsi2d.cfg_file = "configFSI.cfg" + pywrapper_fsi2d.test_iter = 4 + pywrapper_fsi2d.test_vals = [4.000000, 0.000000, -3.725521, -4.278759] + pywrapper_fsi2d.command = TestCase.Command(exec = "SU2_CFD.py", param = "--nZone 2 --fsi True -f") + pywrapper_fsi2d.unsteady = True + pywrapper_fsi2d.multizone = True + pywrapper_fsi2d.timeout = 1600 + pywrapper_fsi2d.tol = 0.00001 + pywrapper_fsi2d.enabled_with_asan = False + test_list.append(pywrapper_fsi2d) + pass_list.append(pywrapper_fsi2d.run_test(args.tsan, args.asan)) + + # Unsteady CHT + pywrapper_unsteadyCHT = TestCase('pywrapper_unsteadyCHT') + pywrapper_unsteadyCHT.cfg_dir = "py_wrapper/flatPlate_unsteady_CHT" + pywrapper_unsteadyCHT.cfg_file = "unsteady_CHT_FlatPlate_Conf.cfg" + pywrapper_unsteadyCHT.test_iter = 5 + pywrapper_unsteadyCHT.test_vals = [-1.614168, 2.259817, -0.009951, 0.169563] + pywrapper_unsteadyCHT.command = TestCase.Command(exec = "python", param = "launch_unsteady_CHT_FlatPlate.py -f") + pywrapper_unsteadyCHT.timeout = 1600 + pywrapper_unsteadyCHT.tol = 0.00001 + pywrapper_unsteadyCHT.unsteady = True + pywrapper_unsteadyCHT.enabled_with_asan = False + test_list.append(pywrapper_unsteadyCHT) + pass_list.append(pywrapper_unsteadyCHT.run_test(args.tsan, args.asan)) + + # Rigid motion + pywrapper_rigidMotion = TestCase('pywrapper_rigidMotion') + pywrapper_rigidMotion.cfg_dir = "py_wrapper/flatPlate_rigidMotion" + pywrapper_rigidMotion.cfg_file = "flatPlate_rigidMotion_Conf.cfg" + pywrapper_rigidMotion.test_iter = 5 + pywrapper_rigidMotion.test_vals = [-1.607008, 2.260791, 0.350208, 0.089496] + pywrapper_rigidMotion.command = TestCase.Command(exec = "python", param = "launch_flatPlate_rigidMotion.py -f") + pywrapper_rigidMotion.timeout = 1600 + pywrapper_rigidMotion.tol = 0.00001 + pywrapper_rigidMotion.unsteady = True + pywrapper_rigidMotion.enabled_with_asan = False + test_list.append(pywrapper_rigidMotion) + pass_list.append(pywrapper_rigidMotion.run_test(args.tsan, args.asan)) + + # Custom inlet + pywrapper_custom_inlet = TestCase('pywrapper_custom_inlet') + pywrapper_custom_inlet.cfg_dir = "py_wrapper/custom_inlet" + pywrapper_custom_inlet.cfg_file = "lam_flatplate.cfg" + pywrapper_custom_inlet.test_iter = 20 + pywrapper_custom_inlet.test_vals = [-4.123921, -1.544230, -3.886906, 1.338713, -0.688132, 0.160844, -0.009845, 0.520880, -0.530730] + pywrapper_custom_inlet.command = TestCase.Command(exec = "python", param = "run.py") + pywrapper_custom_inlet.timeout = 1600 + pywrapper_custom_inlet.tol = 0.0001 + pywrapper_custom_inlet.unsteady = True + pywrapper_custom_inlet.enabled_with_asan = False + test_list.append(pywrapper_custom_inlet) + pass_list.append(pywrapper_custom_inlet.run_test(args.tsan, args.asan)) + + # Tests summary + print('==================================================================') + print('Summary of the serial tests') + print('python version:', sys.version) + for i, test in enumerate(test_list): + if (pass_list[i]): + print(' passed - %s'%test.tag) + else: + print('* FAILED - %s'%test.tag) + + if all(pass_list): + sys.exit(0) + else: + sys.exit(1) + # done + +if __name__ == '__main__': + main()