Skip to content

Commit d476c8b

Browse files
committed
update file regression
1 parent 82ac791 commit d476c8b

File tree

3 files changed

+59
-61
lines changed

3 files changed

+59
-61
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,8 +2357,6 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
23572357
const su2double *Coord = nullptr, *Coord_Normal = nullptr, *Normal = nullptr;
23582358
const su2double minYPlus = config->GetwallModel_MinYPlus();
23592359

2360-
string Marker_Tag, Monitoring_Tag;
2361-
23622360
const su2double Alpha = config->GetAoA() * PI_NUMBER / 180.0;
23632361
const su2double Beta = config->GetAoS() * PI_NUMBER / 180.0;
23642362
const su2double RefLength = config->GetRefLength();
@@ -2394,8 +2392,8 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
23942392

23952393
for (iMarker = 0; iMarker < nMarker; iMarker++) {
23962394

2397-
Marker_Tag = config->GetMarker_All_TagBound(iMarker);
23982395
if (!config->GetViscous_Wall(iMarker)) continue;
2396+
const auto Marker_Tag = config->GetMarker_All_TagBound(iMarker);
23992397

24002398
const bool py_custom = config->GetMarker_All_PyCustom(iMarker);
24012399

@@ -2404,7 +2402,7 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
24042402
const auto Monitoring = config->GetMarker_All_Monitoring(iMarker);
24052403
if (Monitoring == YES) {
24062404
for (iMarker_Monitoring = 0; iMarker_Monitoring < config->GetnMarker_Monitoring(); iMarker_Monitoring++) {
2407-
Monitoring_Tag = config->GetMarker_Monitoring_TagBound(iMarker_Monitoring);
2405+
const auto Monitoring_Tag = config->GetMarker_Monitoring_TagBound(iMarker_Monitoring);
24082406
if (Marker_Tag == Monitoring_Tag) Origin = config->GetRefOriginMoment(iMarker_Monitoring);
24092407
}
24102408
}
@@ -2677,8 +2675,7 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
26772675
/*--- Compute the coefficients per surface ---*/
26782676

26792677
for (iMarker_Monitoring = 0; iMarker_Monitoring < config->GetnMarker_Monitoring(); iMarker_Monitoring++) {
2680-
Monitoring_Tag = config->GetMarker_Monitoring_TagBound(iMarker_Monitoring);
2681-
Marker_Tag = config->GetMarker_All_TagBound(iMarker);
2678+
const auto Monitoring_Tag = config->GetMarker_Monitoring_TagBound(iMarker_Monitoring);
26822679
if (Marker_Tag == Monitoring_Tag) {
26832680
SurfaceViscCoeff.CL[iMarker_Monitoring] += ViscCoeff.CL[iMarker];
26842681
SurfaceViscCoeff.CD[iMarker_Monitoring] += ViscCoeff.CD[iMarker];

SU2_CFD/src/solvers/CIncNSSolver.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ void CIncNSSolver::BC_Wall_Generic(const CGeometry *geometry, const CConfig *con
341341
/*--- Variables for streamwise periodicity ---*/
342342
const bool streamwise_periodic = (config->GetKind_Streamwise_Periodic() != ENUM_STREAMWISE_PERIODIC::NONE);
343343
const bool streamwise_periodic_temperature = config->GetStreamwise_Periodic_Temperature();
344-
su2double Cp, thermal_conductivity, dot_product, scalar_factor;
345344

346345
/*--- Identify the boundary by string name ---*/
347346

@@ -434,15 +433,17 @@ void CIncNSSolver::BC_Wall_Generic(const CGeometry *geometry, const CConfig *con
434433
/*--- With streamwise periodic flow and heatflux walls an additional term is introduced in the boundary formulation ---*/
435434
if (streamwise_periodic && streamwise_periodic_temperature) {
436435

437-
Cp = nodes->GetSpecificHeatCp(iPoint);
438-
thermal_conductivity = nodes->GetThermalConductivity(iPoint);
436+
const su2double Cp = nodes->GetSpecificHeatCp(iPoint);
437+
const su2double thermal_conductivity = nodes->GetThermalConductivity(iPoint);
439438

440439
/*--- Scalar factor of the residual contribution ---*/
441440
const su2double norm2_translation = GeometryToolbox::SquaredNorm(nDim, config->GetPeriodic_Translation(0));
442-
scalar_factor = SPvals.Streamwise_Periodic_IntegratedHeatFlow*thermal_conductivity / (SPvals.Streamwise_Periodic_MassFlow * Cp * norm2_translation);
441+
const su2double scalar_factor =
442+
SPvals.Streamwise_Periodic_IntegratedHeatFlow*thermal_conductivity /
443+
(SPvals.Streamwise_Periodic_MassFlow * Cp * norm2_translation);
443444

444445
/*--- Dot product ---*/
445-
dot_product = GeometryToolbox::DotProduct(nDim, config->GetPeriodic_Translation(0), Normal);
446+
const su2double dot_product = GeometryToolbox::DotProduct(nDim, config->GetPeriodic_Translation(0), Normal);
446447

447448
LinSysRes(iPoint, nDim+1) += scalar_factor*dot_product;
448449
} // if streamwise_periodic
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
"VARIABLE" , "GRADIENT" , "FINDIFF_STEP"
2-
0 , -0.000954218 , 0.001
3-
1 , -0.00432384 , 0.001
4-
2 , -0.0111485 , 0.001
5-
3 , -0.0214656 , 0.001
6-
4 , -0.0344212 , 0.001
7-
5 , -0.0490221 , 0.001
8-
6 , -0.0643278 , 0.001
9-
7 , -0.0792041 , 0.001
10-
8 , -0.0924318 , 0.001
11-
9 , -0.103025 , 0.001
12-
10 , -0.110239 , 0.001
13-
11 , -0.113383 , 0.001
14-
12 , -0.111898 , 0.001
15-
13 , -0.105745 , 0.001
16-
14 , -0.0956773 , 0.001
17-
15 , -0.0830288 , 0.001
18-
16 , -0.069201 , 0.001
19-
17 , -0.0553022 , 0.001
20-
18 , -0.0421316 , 0.001
21-
19 , -0.0303252 , 0.001
22-
20 , -0.0203976 , 0.001
23-
21 , -0.0126387 , 0.001
24-
22 , -0.00701749 , 0.001
25-
23 , -0.0032361 , 0.001
26-
24 , -0.000955756 , 0.001
27-
25 , 0.00128953 , 0.001
28-
26 , 0.00518424 , 0.001
29-
27 , 0.0125712 , 0.001
30-
28 , 0.0234942 , 0.001
31-
29 , 0.0370801 , 0.001
32-
30 , 0.052231 , 0.001
33-
31 , 0.06787 , 0.001
34-
32 , 0.0827503 , 0.001
35-
33 , 0.0955927 , 0.001
36-
34 , 0.105415 , 0.001
37-
35 , 0.11154 , 0.001
38-
36 , 0.113399 , 0.001
39-
37 , 0.110583 , 0.001
40-
38 , 0.103215 , 0.001
41-
39 , 0.0921957 , 0.001
42-
40 , 0.0789703 , 0.001
43-
41 , 0.0650043 , 0.001
44-
42 , 0.0514107 , 0.001
45-
43 , 0.0389322 , 0.001
46-
44 , 0.0280921 , 0.001
47-
45 , 0.0192441 , 0.001
48-
46 , 0.0124768 , 0.001
49-
47 , 0.00752972 , 0.001
50-
48 , 0.00391057 , 0.001
51-
49 , 0.00131276 , 0.001
2+
0 , -0.000958205 , 0.001
3+
1 , -0.00432733 , 0.001
4+
2 , -0.0111443 , 0.001
5+
3 , -0.0214515 , 0.001
6+
4 , -0.0343997 , 0.001
7+
5 , -0.0489968 , 0.001
8+
6 , -0.0643023 , 0.001
9+
7 , -0.0791818 , 0.001
10+
8 , -0.092416 , 0.001
11+
9 , -0.103017 , 0.001
12+
10 , -0.11024 , 0.001
13+
11 , -0.113392 , 0.001
14+
12 , -0.111913 , 0.001
15+
13 , -0.105766 , 0.001
16+
14 , -0.0957015 , 0.001
17+
15 , -0.0830517 , 0.001
18+
16 , -0.0692182 , 0.001
19+
17 , -0.0553101 , 0.001
20+
18 , -0.042129 , 0.001
21+
19 , -0.0303137 , 0.001
22+
20 , -0.0203813 , 0.001
23+
21 , -0.0126226 , 0.001
24+
22 , -0.00700441 , 0.001
25+
23 , -0.00322726 , 0.001
26+
24 , -0.000951904 , 0.001
27+
25 , 0.00128803 , 0.001
28+
26 , 0.0051774 , 0.001
29+
27 , 0.0125547 , 0.001
30+
28 , 0.0234674 , 0.001
31+
29 , 0.0370465 , 0.001
32+
30 , 0.0521956 , 0.001
33+
31 , 0.0678379 , 0.001
34+
32 , 0.0827257 , 0.001
35+
33 , 0.0955787 , 0.001
36+
34 , 0.105412 , 0.001
37+
35 , 0.111548 , 0.001
38+
36 , 0.113415 , 0.001
39+
37 , 0.110605 , 0.001
40+
38 , 0.103242 , 0.001
41+
39 , 0.0922244 , 0.001
42+
40 , 0.0789963 , 0.001
43+
41 , 0.0650234 , 0.001
44+
42 , 0.0514199 , 0.001
45+
43 , 0.0389312 , 0.001
46+
44 , 0.0280831 , 0.001
47+
45 , 0.0192316 , 0.001
48+
46 , 0.0124655 , 0.001
49+
47 , 0.00752232 , 0.001
50+
48 , 0.0039072 , 0.001
51+
49 , 0.00131195 , 0.001

0 commit comments

Comments
 (0)