Skip to content

Commit c0bf007

Browse files
dunapktbigfooted
andauthored
Fix sign error in incompressible Spalding wall function (#2541)
* Fix sign error in Spalding composite term * Update SU2_CFD/src/solvers/CIncNSSolver.cpp Co-authored-by: Nijso <nijso@hotmail.com> * Update inc_turb_wallfunction_flatpate_xxx.test_vals * Update sudo_tutorial.test_vals --------- Co-authored-by: Nijso <bigfootedrockmidget@hotmail.com> Co-authored-by: Nijso <nijso@hotmail.com>
1 parent 764b3be commit c0bf007

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

SU2_CFD/src/solvers/CIncNSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ void CIncNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_containe
739739

740740
/*--- Spalding's universal form for the BL velocity with the
741741
* outer velocity form of White & Christoph above. ---*/
742-
Y_Plus = U_Plus + Y_Plus_White + (exp(-kappa * B)* (1.0 - kUp - 0.5 * kUp * kUp - kUp * kUp * kUp / 6.0));
742+
Y_Plus = U_Plus + Y_Plus_White - (exp(-kappa * B)* (1.0 + kUp + 0.5 * kUp * kUp + kUp * kUp * kUp / 6.0));
743743

744744
/*--- incompressible formulation ---*/
745745
Eddy_Visc_Wall = Lam_Visc_Wall * kappa*exp(-kappa*B) * (exp(kUp) -1.0 - kUp - kUp * kUp / 2.0);

TestCases/serial_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,15 @@ def main():
457457
inc_turb_wallfunction_flatplate_sst.cfg_dir = "wallfunctions/flatplate/incompressible_SST"
458458
inc_turb_wallfunction_flatplate_sst.cfg_file = "turb_SST_flatplate.cfg"
459459
inc_turb_wallfunction_flatplate_sst.test_iter = 10
460-
inc_turb_wallfunction_flatplate_sst.test_vals = [-6.881306, -5.729111, -6.724803, -4.242636, -7.162846, -2.044959, 10.000000, -2.877924, 0.001151, 0.003161, 0.000000]
460+
inc_turb_wallfunction_flatplate_sst.test_vals = [ -6.881321, -5.729177, -6.724837, -4.242636, -7.162893, -2.044945, 10.000000, -2.877955, 0.001151, 0.003161, 0.000000]
461461
test_list.append(inc_turb_wallfunction_flatplate_sst)
462462

463463
# FLAT PLATE, WALL FUNCTIONS, INCOMPRESSIBLE SA
464464
inc_turb_wallfunction_flatplate_sa = TestCase('inc_turb_sa_wallfunction_flatplate')
465465
inc_turb_wallfunction_flatplate_sa.cfg_dir = "wallfunctions/flatplate/incompressible_SA"
466466
inc_turb_wallfunction_flatplate_sa.cfg_file = "turb_SA_flatplate.cfg"
467467
inc_turb_wallfunction_flatplate_sa.test_iter = 10
468-
inc_turb_wallfunction_flatplate_sa.test_vals = [-6.894206, -5.715970, -6.743740, -4.242551, -9.550272, 10.000000, -2.879370, 0.001021, 0.003759]
468+
inc_turb_wallfunction_flatplate_sa.test_vals = [-6.894226, -5.716031, -6.743814, -4.242551, -9.550079, 10.000000, -2.879412, 0.001021, 0.003759]
469469
test_list.append(inc_turb_wallfunction_flatplate_sa)
470470

471471
####################

TestCases/tutorials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def main():
9696
sudo_tutorial.cfg_dir = "../Tutorials/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions"
9797
sudo_tutorial.cfg_file = "sudo.cfg"
9898
sudo_tutorial.test_iter = 10
99-
sudo_tutorial.test_vals = [-14.664419, -12.789769, -13.280336, -13.016392, -13.018817, -9.510066, 15.000000, -1.994192]
99+
sudo_tutorial.test_vals = [-10.243992, -8.397140, -8.812974, -8.525505, -8.731439, -5.183918, 15.000000, -1.941343]
100100
sudo_tutorial.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
101101
test_list.append(sudo_tutorial)
102102

0 commit comments

Comments
 (0)