Skip to content

Commit ec118bc

Browse files
committed
Adding grid vel term to Euler wall/symmetry BC.
1 parent 34d48d6 commit ec118bc

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

SU2_CFD/src/solvers/CEulerSolver.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6874,6 +6874,12 @@ void CEulerSolver::BC_Sym_Plane(CGeometry *geometry,
68746874
velocity in normal direction: v_r = v - 2 (v*n)n ---*/
68756875
ProjVelocity_i = nodes->GetProjVel(iPoint,UnitNormal);
68766876

6877+
/*--- Adjustment to v.n due to grid movement. ---*/
6878+
if (dynamic_grid) {
6879+
for (iDim = 0; iDim < nDim; iDim++)
6880+
ProjVelocity_i -= geometry->nodes->GetGridVel(iPoint)[iDim]*UnitNormal[iDim];
6881+
}
6882+
68776883
for (iDim = 0; iDim < nDim; iDim++)
68786884
V_reflected[iDim+1] = nodes->GetVelocity(iPoint,iDim) - 2.0 * ProjVelocity_i*UnitNormal[iDim];
68796885

TestCases/rotating/caradonna_tung/rot_caradonna_tung.cfg

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
% Case description: Caradonna & Tung rotor in hover (still air) %
55
% Author: Thomas D. Economon %
66
% Institution: Stanford University %
7-
% Date: 2013.09.29 %
7+
% Date: 2020.05.24 %
88
% File Version 7.0.4 "Blackbird" %
99
% %
1010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -91,39 +91,39 @@ MARKER_MONITORING= ( blade_1, blade_2 )
9191
NUM_METHOD_GRAD= GREEN_GAUSS
9292
%
9393
% Courant-Friedrichs-Lewy condition of the finest grid
94-
CFL_NUMBER= 6.0
94+
CFL_NUMBER= 1e3
9595
%
9696
% Adaptive CFL number (NO, YES)
9797
CFL_ADAPT= NO
9898
%
9999
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
100100
% CFL max value )
101-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
101+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 15, 1e6 )
102102
%
103103
% Runge-Kutta alpha coefficients
104104
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
105105
%
106106
% Number of total iterations
107-
EXT_ITER= 99999
107+
ITER= 99999
108108

109109
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
110110
%
111111
% Linear solver for implicit formulations (BCGSTAB, FGMRES)
112112
LINEAR_SOLVER= FGMRES
113113
%
114114
% Preconditioner of the Krylov linear solver (JACOBI, LINELET, LU_SGS)
115-
LINEAR_SOLVER_PREC= LU_SGS
115+
LINEAR_SOLVER_PREC= ILU
116116
%
117117
% Minimum error of the linear solver for implicit formulations
118-
LINEAR_SOLVER_ERROR= 1E-4
118+
LINEAR_SOLVER_ERROR= 1E-10
119119
%
120120
% Max number of iterations of the linear solver for the implicit formulation
121-
LINEAR_SOLVER_ITER= 4
121+
LINEAR_SOLVER_ITER= 10
122122

123123
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
124124
%
125125
% Multi-Grid Levels (0 = no multi-grid)
126-
MGLEVEL= 2
126+
MGLEVEL= 3
127127
%
128128
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
129129
MGCYCLE= W_CYCLE
@@ -168,7 +168,6 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
168168
%
169169
CONV_CRITERIA= RESIDUAL
170170
%
171-
%
172171
% Min value of the residual (log10 of the residual)
173172
CONV_RESIDUAL_MINVAL= -12
174173
%
@@ -231,3 +230,5 @@ WRT_SOL_FREQ= 100
231230
%
232231
% Writing convergence history frequency
233232
WRT_CON_FREQ= 1
233+
234+
SCREEN_OUTPUT=(INNER_ITER, WALL_TIME, RMS_DENSITY, LIFT, DRAG, AVG_CFL)

0 commit comments

Comments
 (0)