From 868a7247cca057708aa4bf6170802d32fac8763b Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Fri, 10 May 2024 10:12:57 +0300 Subject: [PATCH 01/17] fix for MARKER_ENGINE_INFLOW with FAN_FACE_MACH option Added mach number evaluation for the engine boundaries. Decoupled the engine marker evaluation frequency from screen write frequency --- SU2_CFD/src/solvers/CEulerSolver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SU2_CFD/src/solvers/CEulerSolver.cpp b/SU2_CFD/src/solvers/CEulerSolver.cpp index 16cdfe59a4b..1dc51a3391d 100644 --- a/SU2_CFD/src/solvers/CEulerSolver.cpp +++ b/SU2_CFD/src/solvers/CEulerSolver.cpp @@ -2541,7 +2541,7 @@ void CEulerSolver::GetPower_Properties(CGeometry *geometry, CConfig *config, uns su2double Alpha = config->GetAoA()*PI_NUMBER/180.0; su2double Beta = config->GetAoS()*PI_NUMBER/180.0; bool write_heads = ((((config->GetInnerIter() % (config->GetScreen_Wrt_Freq(2)*40)) == 0) && (config->GetInnerIter()!= 0)) || (config->GetInnerIter() == 1)); - bool Evaluate_BC = ((((config->GetInnerIter() % (config->GetScreen_Wrt_Freq(2)*40)) == 0)) || (config->GetInnerIter() == 1) || (config->GetDiscrete_Adjoint())); + bool Evaluate_BC = ((((config->GetInnerIter() % (config->GetBc_Eval_Freq())) == 0)) || (config->GetInnerIter() == 1) || (config->GetDiscrete_Adjoint())); if ((config->GetnMarker_EngineInflow() != 0) || (config->GetnMarker_EngineExhaust() != 0)) Engine = true; if ((config->GetnMarker_ActDiskInlet() != 0) || (config->GetnMarker_ActDiskOutlet() != 0)) Engine = false; @@ -2930,6 +2930,7 @@ void CEulerSolver::GetPower_Properties(CGeometry *geometry, CConfig *config, uns config->SetInflow_RamDrag(iMarker_Inlet, Inlet_RamDrag_Total[iMarker_Inlet]); config->SetInflow_Force(iMarker_Inlet, Inlet_Force_Total[iMarker_Inlet]); config->SetInflow_Power(iMarker_Inlet, Inlet_Power_Total[iMarker_Inlet]); + config->SetInflow_Mach(iMarker_Inlet, Inlet_Mach_Total[iMarker_Inlet]); } else { config->SetActDiskInlet_MassFlow(iMarker_Inlet, Inlet_MassFlow_Total[iMarker_Inlet]); From 258b89a1c4f83b9cb93105708eee9ecef96801de Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Fri, 10 May 2024 15:41:10 +0300 Subject: [PATCH 02/17] Defining the option BC_EVAL_FREQ Defining the option BC_EVAL_FREQ, for setting the evaluation frequency for the Engine and Actuator markers --- Common/include/CConfig.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index bc32b5407b1..6c32f18a2d7 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -138,6 +138,7 @@ class CConfig { su2double Buffet_lambda; /*!< \brief Offset parameter for buffet sensor.*/ su2double Damp_Engine_Inflow; /*!< \brief Damping factor for the engine inlet. */ su2double Damp_Engine_Exhaust; /*!< \brief Damping factor for the engine exhaust. */ + unsigned long Bc_Eval_Freq; /*!< \brief Evaluation frequency for Engine and Actuator disk markers*/ su2double Damp_Res_Restric, /*!< \brief Damping factor for the residual restriction. */ Damp_Correc_Prolong; /*!< \brief Damping factor for the correction prolongation. */ su2double Position_Plane; /*!< \brief Position of the Near-Field (y coordinate 2D, and z coordinate 3D). */ @@ -6492,6 +6493,11 @@ class CConfig { */ su2double GetMinLogResidual(void) const { return MinLogResidual; } + /*! + * \brief Evaluation frequency for Engine and Actuator disk markers. + * \return Value Evaluation frequency . + */ + unsigned long GetBc_Eval_Freq(void) const { return Bc_Eval_Freq; } /*! * \brief Value of the damping factor for the engine inlet bc. * \return Value of the damping factor. From 01d6832233b294aa89ed973681530cff7a860467 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Fri, 10 May 2024 15:44:59 +0300 Subject: [PATCH 03/17] Defining option BC_EVAL_FREQ Defining option BC_EVAL_FREQ, to set the evaluation frequency for Engine and Actuator Disk Markers --- Common/src/CConfig.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index 63810ab3e03..dc52cd13135 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -1729,7 +1729,9 @@ void CConfig::SetConfig_Options() { addDoubleArrayOption("SINE_LOAD_COEFF", 3, sineload_coeff); /*!\brief RAMP_AND_RELEASE\n DESCRIPTION: release the load after applying the ramp*/ addBoolOption("RAMP_AND_RELEASE_LOAD", RampAndRelease, false); - + + /*DESCRIPTION: Evaluation frequency for Engine and Actuator disk markers*/ + addUnsignedLongOption("BC_EVAL_FREQ",Bc_Eval_Freq,40); /* DESCRIPTION: Damping factor for engine inlet condition */ addDoubleOption("DAMP_ENGINE_INFLOW", Damp_Engine_Inflow, 0.95); /* DESCRIPTION: Damping factor for engine exhaust condition */ From 51b33e22dc63402d43d59cacd60de742c19e80c3 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Sat, 11 May 2024 11:13:17 +0300 Subject: [PATCH 04/17] Create inv_channel_engine_inflow.cfg Test case for marker_engine_inflow --- .../engine/inv_channel_engine_inflow.cfg | 219 ++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 TestCases/engine/inv_channel_engine_inflow.cfg diff --git a/TestCases/engine/inv_channel_engine_inflow.cfg b/TestCases/engine/inv_channel_engine_inflow.cfg new file mode 100644 index 00000000000..41ad1cbd6f2 --- /dev/null +++ b/TestCases/engine/inv_channel_engine_inflow.cfg @@ -0,0 +1,219 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% SU2 configuration file % +% Case description: Inviscid, internal flow over a bump in a channel % +% Author: Thomas D. Economon % +% Institution: Stanford University % +% Date: 2012.09.29 % +% File Version 4.0.2 "Cardinal" % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------% +% +% Physical governing equations (EULER, NAVIER_STOKES, NS_PLASMA) +% +SOLVER= EULER +% +% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT) +MATH_PROBLEM= DIRECT +% +% Restart solution (NO, YES) +RESTART_SOL= NO + +% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------% +% +% Mach number (non-dimensional, based on the free-stream values) +MACH_NUMBER= 0.1 +% +% Angle of attack (degrees, only for compressible flows) +AOA= 0.0 +% +% Side-slip angle (degrees, only for compressible flows) +SIDESLIP_ANGLE= 0.0 +% +% Free-stream pressure (101325.0 N/m^2 by default) +FREESTREAM_PRESSURE= 101300.0 +% +% Free-stream temperature (288.15 K by default) +FREESTREAM_TEMPERATURE= 288.0 + +% ---------------------- REFERENCE VALUE DEFINITION ---------------------------% +% +% Reference origin for moment computation +REF_ORIGIN_MOMENT_X = 0.25 +REF_ORIGIN_MOMENT_Y = 0.00 +REF_ORIGIN_MOMENT_Z = 0.00 +% +% Reference length for pitching, rolling, and yawing non-dimensional moment +REF_LENGTH= 1.0 +% +% Reference area for force coefficients (0 implies automatic calculation) +REF_AREA= 1.0 + +% -------------------- BOUNDARY CONDITION DEFINITION --------------------------% +% +% Euler wall boundary marker(s) (NONE = no marker) +MARKER_EULER= ( upper_wall, lower_wall ) +% +% Inlet boundary type (TOTAL_CONDITIONS, MASS_FLOW) +INLET_TYPE= TOTAL_CONDITIONS +% +% Inlet boundary marker(s) (NONE = no marker) +% Format: ( inlet marker, total temperature, total pressure, flow_direction_x, +% flow_direction_y, flow_direction_z, ... ) where flow_direction is +% a unit vector. +% Default: Mach ~ 0.1 +MARKER_INLET= ( inlet, 288.6, 102010.0, 1.0, 0.0, 0.0 ) +% Comment above line and uncomment next for Mach ~ 0.7 (transonic) +%MARKER_INLET= ( inlet, 316.224, 140513.23, 1.0, 0.0, 0.0 ) +% +% Outlet boundary marker(s) (NONE = no marker) +% Format: ( outlet marker, back pressure (static), ... ) +MARKER_ENGINE_INFLOW= ( outlet, 0.1) +ENGINE_INFLOW_TYPE= FAN_FACE_MACH +DAMP_ENGINE_INFLOW= 0.9 +BC_EVAL_FREQ = 5 + +% ------------------------ SURFACES IDENTIFICATION ----------------------------% +% +% Marker(s) of the surface to be plotted or designed +MARKER_PLOTTING= ( lower_wall ) +% +% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated +MARKER_MONITORING= ( upper_wall, lower_wall ) + +% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------% +% +% Numerical method for spatial gradients (GREEN_GAUSS, WEIGHTED_LEAST_SQUARES) +NUM_METHOD_GRAD= GREEN_GAUSS +% +% Courant-Friedrichs-Lewy condition of the finest grid +CFL_NUMBER= 50.0 +% +% Adaptive CFL number (NO, YES) +CFL_ADAPT= YES +% +% Parameters of the adaptive CFL number (factor down, factor up, CFL min value, +% CFL max value ) +CFL_ADAPT_PARAM= ( 0.1, 2.0, 50.0, 1e10 ) +% +% Runge-Kutta alpha coefficients +RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 ) +% +% Number of total iterations +ITER= 999999 + +% ------------------------ LINEAR SOLVER DEFINITION ---------------------------% +% +% Linear solver for implicit formulations (BCGSTAB, FGMRES) +LINEAR_SOLVER= FGMRES +% +% Preconditioner of the Krylov linear solver (ILU, JACOBI, LINELET, LU_SGS) +LINEAR_SOLVER_PREC= ILU +% +% Minimum error of the linear solver for implicit formulations +LINEAR_SOLVER_ERROR= 1E-10 +% +% Max number of iterations of the linear solver for the implicit formulation +LINEAR_SOLVER_ITER= 20 + +% -------------------------- MULTIGRID PARAMETERS -----------------------------% +% +% Multi-Grid Levels (0 = no multi-grid) +MGLEVEL= 3 +% +% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE) +MGCYCLE= W_CYCLE +% +% Multi-grid pre-smoothing level +MG_PRE_SMOOTH= ( 1, 2, 3, 3 ) +% +% Multi-grid post-smoothing level +MG_POST_SMOOTH= ( 0, 0, 0, 0 ) +% +% Jacobi implicit smoothing of the correction +MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 ) +% +% Damping factor for the residual restriction +MG_DAMP_RESTRICTION= 1.0 +% +% Damping factor for the correction prolongation +MG_DAMP_PROLONGATION= 1.0 + +% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------% +% +% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC, +% TURKEL_PREC, MSW) +CONV_NUM_METHOD_FLOW= JST +% +% 2nd and 4th order artificial dissipation coefficients +JST_SENSOR_COEFF= ( 0.5, 0.02 ) +% +% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT) +TIME_DISCRE_FLOW= EULER_IMPLICIT + +% --------------------------- CONVERGENCE PARAMETERS --------------------------% +% +% Convergence criteria (CAUCHY, RESIDUAL) +CONV_FIELD= RMS_DENSITY +% +% Min value of the residual (log10 of the residual) +CONV_RESIDUAL_MINVAL= -10 +% +% Start convergence criteria at iteration number +CONV_STARTITER= 10 +% +% Number of elements to apply the criteria +CONV_CAUCHY_ELEMS= 100 +% +% Epsilon to control the series convergence +CONV_CAUCHY_EPS= 1E-10 + +% ------------------------- INPUT/OUTPUT INFORMATION --------------------------% +% +% Mesh input file +MESH_FILENAME= mesh_channel_256x128.su2 +% +% Mesh input file format (SU2, CGNS, NETCDF_ASCII) +MESH_FORMAT= SU2 +% +% Mesh output file +MESH_OUT_FILENAME= mesh_out.su2 +% +% Restart flow input file +SOLUTION_FILENAME= solution_flow.dat +% +% Restart adjoint input file +SOLUTION_ADJ_FILENAME= solution_adj.dat +% +% Output file format (PARAVIEW, TECPLOT, STL) +TABULAR_FORMAT= CSV +% +% Output file convergence history (w/o extension) +CONV_FILENAME= history +% +% Output file restart flow +RESTART_FILENAME= restart_flow.dat +% +% Output file restart adjoint +RESTART_ADJ_FILENAME= restart_adj.dat +% +% Output file flow (w/o extension) variables +VOLUME_FILENAME= flow +% +% Output file adjoint (w/o extension) variables +VOLUME_ADJ_FILENAME= adjoint +% +% Output objective function gradient (using continuous adjoint) +GRAD_OBJFUNC_FILENAME= of_grad.dat +% +% Output file surface flow coefficient (w/o extension) +SURFACE_FILENAME= surface_flow +% +% Output file surface adjoint coefficient (w/o extension) +SURFACE_ADJ_FILENAME= surface_adjoint +% +% +% Screen output +SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG) From 0690c04a97b9a67c245e2489927b1061f9bf23e8 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Sat, 11 May 2024 12:19:46 +0300 Subject: [PATCH 05/17] Update and rename TestCases/engine/inv_channel_engine_inflow.cfg to TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg --- .../inv_channel_engine_inflow.cfg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) rename TestCases/engine/{ => marker_engine_inflow}/inv_channel_engine_inflow.cfg (96%) diff --git a/TestCases/engine/inv_channel_engine_inflow.cfg b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg similarity index 96% rename from TestCases/engine/inv_channel_engine_inflow.cfg rename to TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg index 41ad1cbd6f2..a93fdfbf863 100644 --- a/TestCases/engine/inv_channel_engine_inflow.cfg +++ b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg @@ -68,12 +68,14 @@ MARKER_INLET= ( inlet, 288.6, 102010.0, 1.0, 0.0, 0.0 ) % Comment above line and uncomment next for Mach ~ 0.7 (transonic) %MARKER_INLET= ( inlet, 316.224, 140513.23, 1.0, 0.0, 0.0 ) % -% Outlet boundary marker(s) (NONE = no marker) -% Format: ( outlet marker, back pressure (static), ... ) +% Engine inflow boundary marker(s) (NONE = no marker) +% Format: (engine inflow marker, fan face Mach, ... ) MARKER_ENGINE_INFLOW= ( outlet, 0.1) ENGINE_INFLOW_TYPE= FAN_FACE_MACH -DAMP_ENGINE_INFLOW= 0.9 -BC_EVAL_FREQ = 5 +% Damping factor for the engine inflow. +DAMP_ENGINE_INFLOW= 0.2 +% Evaluation frequency for engine marker values +BC_EVAL_FREQ = 1 % ------------------------ SURFACES IDENTIFICATION ----------------------------% % From 0e24b040f057de1552ff0232ed65c2f30445d117 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Sat, 11 May 2024 13:42:23 +0300 Subject: [PATCH 06/17] Update config_template.cfg --- config_template.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config_template.cfg b/config_template.cfg index 74832ef98db..082bffc7b13 100644 --- a/config_template.cfg +++ b/config_template.cfg @@ -672,6 +672,9 @@ FAN_POLY_EFF= 1.0 % Only half engine is in the computational grid (NO, YES) ENGINE_HALF_MODEL= NO % +%Evalutation Frequency for Engine and Actuator Disk Markers +BC_EVAL_FREQ = 40 +% % Damping factor for the engine inflow. DAMP_ENGINE_INFLOW= 0.95 % From a17c9dff9d5c161b1416e450bc9c4356f8be07b5 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 13 May 2024 08:51:00 +0300 Subject: [PATCH 07/17] Update config_template.cfg Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com> --- config_template.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_template.cfg b/config_template.cfg index 082bffc7b13..78281e2702d 100644 --- a/config_template.cfg +++ b/config_template.cfg @@ -672,7 +672,7 @@ FAN_POLY_EFF= 1.0 % Only half engine is in the computational grid (NO, YES) ENGINE_HALF_MODEL= NO % -%Evalutation Frequency for Engine and Actuator Disk Markers +% Evalutation Frequency for Engine and Actuator Disk Markers BC_EVAL_FREQ = 40 % % Damping factor for the engine inflow. From 1af50ba94c49daec8029c870733f7bdbb2799386 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 13 May 2024 08:52:19 +0300 Subject: [PATCH 08/17] Update Common/include/CConfig.hpp Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com> --- Common/include/CConfig.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index 6c32f18a2d7..d88e86b250d 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -6493,11 +6493,12 @@ class CConfig { */ su2double GetMinLogResidual(void) const { return MinLogResidual; } - /*! + /*! * \brief Evaluation frequency for Engine and Actuator disk markers. * \return Value Evaluation frequency . */ unsigned long GetBc_Eval_Freq(void) const { return Bc_Eval_Freq; } + /*! * \brief Value of the damping factor for the engine inlet bc. * \return Value of the damping factor. From c4e240a4137d0fbfea118b3bb1a94fbca23fe1cc Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 13 May 2024 08:52:33 +0300 Subject: [PATCH 09/17] Update Common/include/CConfig.hpp Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com> --- Common/include/CConfig.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index d88e86b250d..f2ef25fbec2 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -138,7 +138,7 @@ class CConfig { su2double Buffet_lambda; /*!< \brief Offset parameter for buffet sensor.*/ su2double Damp_Engine_Inflow; /*!< \brief Damping factor for the engine inlet. */ su2double Damp_Engine_Exhaust; /*!< \brief Damping factor for the engine exhaust. */ - unsigned long Bc_Eval_Freq; /*!< \brief Evaluation frequency for Engine and Actuator disk markers*/ + unsigned long Bc_Eval_Freq; /*!< \brief Evaluation frequency for Engine and Actuator disk markers*/ su2double Damp_Res_Restric, /*!< \brief Damping factor for the residual restriction. */ Damp_Correc_Prolong; /*!< \brief Damping factor for the correction prolongation. */ su2double Position_Plane; /*!< \brief Position of the Near-Field (y coordinate 2D, and z coordinate 3D). */ From 851f7a74178c7baf1dfd264b8a845f44e707328d Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 13 May 2024 08:56:26 +0300 Subject: [PATCH 10/17] Update inv_channel_engine_inflow.cfg Changed the mesh to an existing mesh in the repository --- .../engine/marker_engine_inflow/inv_channel_engine_inflow.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg index a93fdfbf863..4258cfab755 100644 --- a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg +++ b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg @@ -175,7 +175,7 @@ CONV_CAUCHY_EPS= 1E-10 % ------------------------- INPUT/OUTPUT INFORMATION --------------------------% % % Mesh input file -MESH_FILENAME= mesh_channel_256x128.su2 +MESH_FILENAME= /TestCases/euler/channel/mesh_channel_256x128.su2 % % Mesh input file format (SU2, CGNS, NETCDF_ASCII) MESH_FORMAT= SU2 From 44da0b5fd5d8a1ec791fda85d19650962e955045 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 13 May 2024 09:08:33 +0300 Subject: [PATCH 11/17] Update inv_channel_engine_inflow.cfg Changing the mesh file to an existing mesh --- .../engine/marker_engine_inflow/inv_channel_engine_inflow.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg index 4258cfab755..8952d118293 100644 --- a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg +++ b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg @@ -175,7 +175,7 @@ CONV_CAUCHY_EPS= 1E-10 % ------------------------- INPUT/OUTPUT INFORMATION --------------------------% % % Mesh input file -MESH_FILENAME= /TestCases/euler/channel/mesh_channel_256x128.su2 +MESH_FILENAME= ../../euler/channel/mesh_channel_256x128.su2 % % Mesh input file format (SU2, CGNS, NETCDF_ASCII) MESH_FORMAT= SU2 From 8c62546480072e5644a4344d6894f8dc8dd1a31a Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Tue, 14 May 2024 15:25:43 +0300 Subject: [PATCH 12/17] Update config_template.cfg Co-authored-by: Nijso --- config_template.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_template.cfg b/config_template.cfg index 78281e2702d..dc288ca3586 100644 --- a/config_template.cfg +++ b/config_template.cfg @@ -672,7 +672,7 @@ FAN_POLY_EFF= 1.0 % Only half engine is in the computational grid (NO, YES) ENGINE_HALF_MODEL= NO % -% Evalutation Frequency for Engine and Actuator Disk Markers +% Evaluation Frequency for Engine and Actuator Disk Markers BC_EVAL_FREQ = 40 % % Damping factor for the engine inflow. From ff22bc9261e5dd6a05cb44fa3bcc92b5a034d2e6 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Tue, 14 May 2024 15:26:04 +0300 Subject: [PATCH 13/17] Update Common/src/CConfig.cpp Co-authored-by: Nijso --- Common/src/CConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index 35f6bb977d2..af4e8169a3b 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -1730,7 +1730,7 @@ void CConfig::SetConfig_Options() { /*!\brief RAMP_AND_RELEASE\n DESCRIPTION: release the load after applying the ramp*/ addBoolOption("RAMP_AND_RELEASE_LOAD", RampAndRelease, false); - /*DESCRIPTION: Evaluation frequency for Engine and Actuator disk markers*/ + /* DESCRIPTION: Evaluation frequency for Engine and Actuator disk markers. */ addUnsignedLongOption("BC_EVAL_FREQ",Bc_Eval_Freq,40); /* DESCRIPTION: Damping factor for engine inlet condition */ addDoubleOption("DAMP_ENGINE_INFLOW", Damp_Engine_Inflow, 0.95); From 1d9845255040fec4298c57cd7a53a7a37395ee5a Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Tue, 14 May 2024 15:26:23 +0300 Subject: [PATCH 14/17] Update Common/include/CConfig.hpp Co-authored-by: Nijso --- Common/include/CConfig.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/include/CConfig.hpp b/Common/include/CConfig.hpp index f2ef25fbec2..2791601174b 100644 --- a/Common/include/CConfig.hpp +++ b/Common/include/CConfig.hpp @@ -138,7 +138,7 @@ class CConfig { su2double Buffet_lambda; /*!< \brief Offset parameter for buffet sensor.*/ su2double Damp_Engine_Inflow; /*!< \brief Damping factor for the engine inlet. */ su2double Damp_Engine_Exhaust; /*!< \brief Damping factor for the engine exhaust. */ - unsigned long Bc_Eval_Freq; /*!< \brief Evaluation frequency for Engine and Actuator disk markers*/ + unsigned long Bc_Eval_Freq; /*!< \brief Evaluation frequency for Engine and Actuator disk markers. */ su2double Damp_Res_Restric, /*!< \brief Damping factor for the residual restriction. */ Damp_Correc_Prolong; /*!< \brief Damping factor for the correction prolongation. */ su2double Position_Plane; /*!< \brief Position of the Near-Field (y coordinate 2D, and z coordinate 3D). */ From ca0278f26687d93eddd4a858554c1f73c3f099db Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Tue, 28 May 2024 13:10:43 +0300 Subject: [PATCH 15/17] Updated header of the config file Changed Case Description, Author, Date and File Version --- .../marker_engine_inflow/inv_channel_engine_inflow.cfg | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg index 8952d118293..d0bb330728d 100644 --- a/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg +++ b/TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg @@ -1,11 +1,12 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % SU2 configuration file % -% Case description: Inviscid, internal flow over a bump in a channel % -% Author: Thomas D. Economon % +% Case description: Inviscid, internal flow over a bump in a channel with % +% prescribed Mach number for outlet BC % +% Author: Thomas D. Economon , Berke C. Deveci % % Institution: Stanford University % -% Date: 2012.09.29 % -% File Version 4.0.2 "Cardinal" % +% Date: 2024.05.28 % +% File Version 8.0.1 "Harrier" % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From df7cfce592033b2c84ddb1a4fb78b7198ee28497 Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Mon, 12 Aug 2024 08:55:56 +0300 Subject: [PATCH 16/17] pre-commit fixes --- Common/src/CConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index 90c8a15d162..7c550f2a50c 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -1733,7 +1733,7 @@ void CConfig::SetConfig_Options() { addDoubleArrayOption("SINE_LOAD_COEFF", 3, sineload_coeff); /*!\brief RAMP_AND_RELEASE\n DESCRIPTION: release the load after applying the ramp*/ addBoolOption("RAMP_AND_RELEASE_LOAD", RampAndRelease, false); - + /* DESCRIPTION: Evaluation frequency for Engine and Actuator disk markers. */ addUnsignedLongOption("BC_EVAL_FREQ",Bc_Eval_Freq,40); /* DESCRIPTION: Damping factor for engine inlet condition */ From da83afd707a6ab34396a5704eea75bcadf57c15f Mon Sep 17 00:00:00 2001 From: BerkeCan97 <97515807+BerkeCan97@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:08:01 +0300 Subject: [PATCH 17/17] Update Common/src/CConfig.cpp Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com> --- Common/src/CConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/CConfig.cpp b/Common/src/CConfig.cpp index b29ee63f910..9bc1613edeb 100644 --- a/Common/src/CConfig.cpp +++ b/Common/src/CConfig.cpp @@ -1735,7 +1735,7 @@ void CConfig::SetConfig_Options() { addBoolOption("RAMP_AND_RELEASE_LOAD", RampAndRelease, false); /* DESCRIPTION: Evaluation frequency for Engine and Actuator disk markers. */ - addUnsignedLongOption("BC_EVAL_FREQ",Bc_Eval_Freq,40); + addUnsignedLongOption("BC_EVAL_FREQ", Bc_Eval_Freq, 40); /* DESCRIPTION: Damping factor for engine inlet condition */ addDoubleOption("DAMP_ENGINE_INFLOW", Damp_Engine_Inflow, 0.95); /* DESCRIPTION: Damping factor for engine exhaust condition */