-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix marker engine inflow #2278
Merged
pcarruscag
merged 23 commits into
su2code:develop
from
BerkeCan97:fix_marker_engine_inflow
Sep 5, 2024
Merged
Fix marker engine inflow #2278
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
868a724
fix for MARKER_ENGINE_INFLOW with FAN_FACE_MACH option
BerkeCan97 258b89a
Defining the option BC_EVAL_FREQ
BerkeCan97 01d6832
Defining option BC_EVAL_FREQ
BerkeCan97 51b33e2
Create inv_channel_engine_inflow.cfg
BerkeCan97 0690c04
Update and rename TestCases/engine/inv_channel_engine_inflow.cfg to T…
BerkeCan97 0e24b04
Update config_template.cfg
BerkeCan97 a17c9df
Update config_template.cfg
BerkeCan97 1af50ba
Update Common/include/CConfig.hpp
BerkeCan97 c4e240a
Update Common/include/CConfig.hpp
BerkeCan97 851f7a7
Update inv_channel_engine_inflow.cfg
BerkeCan97 44da0b5
Update inv_channel_engine_inflow.cfg
BerkeCan97 1826a6a
Merge branch 'develop' into fix_marker_engine_inflow
bigfooted 8c62546
Update config_template.cfg
BerkeCan97 ff22bc9
Update Common/src/CConfig.cpp
BerkeCan97 1d98452
Update Common/include/CConfig.hpp
BerkeCan97 a3d87ed
Merge branch 'develop' into fix_marker_engine_inflow
BerkeCan97 8f487e7
Merge branch 'develop' into fix_marker_engine_inflow
BerkeCan97 ca0278f
Updated header of the config file
BerkeCan97 7c05703
Merge branch 'develop' into fix_marker_engine_inflow
bigfooted a68160c
Merge branch 'develop' into fix_marker_engine_inflow
bigfooted df7cfce
pre-commit fixes
BerkeCan97 0ef7a50
Merge branch 'develop' into fix_marker_engine_inflow
BerkeCan97 da83afd
Update Common/src/CConfig.cpp
BerkeCan97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
222 changes: 222 additions & 0 deletions
222
TestCases/engine/marker_engine_inflow/inv_channel_engine_inflow.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % | ||
% SU2 configuration file % | ||
% 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: 2024.05.28 % | ||
% File Version 8.0.1 "Harrier" % | ||
% % | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
% ------------- 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 ) | ||
% | ||
% 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 | ||
% Damping factor for the engine inflow. | ||
DAMP_ENGINE_INFLOW= 0.2 | ||
% Evaluation frequency for engine marker values | ||
BC_EVAL_FREQ = 1 | ||
|
||
% ------------------------ 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= ../../euler/channel/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this file is not used in one of the *_regression.py files we should remove it.