From 2f45f00caf6f4c153189b829f0510ba65efb891f Mon Sep 17 00:00:00 2001 From: Ping He Date: Wed, 14 Feb 2024 21:12:22 -0600 Subject: [PATCH] Fixed tests. --- .../refs/DAFoam_Test_DARhoSimpleCFoamRef.txt | 20 +++++----- ...Foam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt | 8 ++-- .../DAFoam_Test_DATurboFoamSubsonicRef.txt | 38 +++++++++---------- tests/runTests_DARhoSimpleCFoam.py | 2 +- tests/runTests_DARhoSimpleCFoamAD.py | 2 +- tests/runTests_DARhoSimpleFoamUBend.py | 1 + 6 files changed, 36 insertions(+), 35 deletions(-) diff --git a/tests/refs/DAFoam_Test_DARhoSimpleCFoamRef.txt b/tests/refs/DAFoam_Test_DARhoSimpleCFoamRef.txt index 64e237ed..dd4a61a8 100755 --- a/tests/refs/DAFoam_Test_DARhoSimpleCFoamRef.txt +++ b/tests/refs/DAFoam_Test_DARhoSimpleCFoamRef.txt @@ -1,22 +1,22 @@ Dictionary Key: CD -@value 0.01016659179082796 1e-08 1e-10 +@value 0.01016659179618512 1e-08 1e-10 Dictionary Key: CL -@value 0.4536846351797039 1e-08 1e-10 +@value 0.4536846350009314 1e-08 1e-10 Dictionary Key: fail @value 0 1e-08 1e-10 Dictionary Key: CD Dictionary Key: alpha -@value 0.004336901757235039 0.0001 1e-06 +@value 0.004419288619714606 0.0001 1e-06 Dictionary Key: shapey -@value 0.0267621536016065 0.0001 1e-06 -@value 0.04958022286719843 0.0001 1e-06 -@value 0.1319330548362239 0.0001 1e-06 +@value 0.02619137460608506 0.0001 1e-06 +@value 0.05002489637978214 0.0001 1e-06 +@value 0.1314687490333257 0.0001 1e-06 Dictionary Key: CL Dictionary Key: alpha -@value 0.1540391990713826 0.0001 1e-06 +@value 0.1586052418041611 0.0001 1e-06 Dictionary Key: shapey -@value 3.621966829337841 0.0001 1e-06 -@value 2.44543902410904 0.0001 1e-06 -@value 3.016228732003395 0.0001 1e-06 +@value 3.58362402336514 0.0001 1e-06 +@value 2.456281547160383 0.0001 1e-06 +@value 2.99368621643047 0.0001 1e-06 Dictionary Key: fail @value 0 0.0001 1e-06 \ No newline at end of file diff --git a/tests/refs/DAFoam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt b/tests/refs/DAFoam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt index eec87ccf..23c9553f 100755 --- a/tests/refs/DAFoam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt +++ b/tests/refs/DAFoam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt @@ -1,14 +1,14 @@ Dictionary Key: CD -@value 0.006024441240321594 1e-06 1e-10 +@value 0.006026347733544404 1e-06 1e-10 Dictionary Key: CL -@value 0.0879110908067339 1e-06 1e-10 +@value 0.08789446345115981 1e-06 1e-10 Dictionary Key: fail @value 0 1e-06 1e-10 Dictionary Key: CD Dictionary Key: alpha -@value 0.000427152282947212 0.001 1e-06 +@value 0.0004276629226289779 0.001 1e-06 Dictionary Key: CL Dictionary Key: alpha -@value 0.102641313442945 0.001 1e-06 +@value 0.1026067641371463 0.001 1e-06 Dictionary Key: fail @value 0 0.001 1e-06 \ No newline at end of file diff --git a/tests/refs/DAFoam_Test_DATurboFoamSubsonicRef.txt b/tests/refs/DAFoam_Test_DATurboFoamSubsonicRef.txt index cbbaad4e..d81218bb 100755 --- a/tests/refs/DAFoam_Test_DATurboFoamSubsonicRef.txt +++ b/tests/refs/DAFoam_Test_DATurboFoamSubsonicRef.txt @@ -1,30 +1,30 @@ Dictionary Key: CMZ -@value 0.1430241062895427 1e-08 1e-10 +@value 0.1430241062697062 1e-08 1e-10 Dictionary Key: TPR -@value 1.027591736890468 1e-08 1e-10 +@value 1.027591736884627 1e-08 1e-10 Dictionary Key: fail @value 0 1e-08 1e-10 Dictionary Key: CMZ Dictionary Key: shapey -@value 0.2847715919611993 1e-04 1e-06 -@value 0.5020122841985006 1e-04 1e-06 -@value 0.339989430432045 1e-04 1e-06 -@value 0.4471545417329905 1e-04 1e-06 +@value 0.284774235720788 0.0001 1e-06 +@value 0.5019992820686592 0.0001 1e-06 +@value 0.3399894733398309 0.0001 1e-06 +@value 0.4471495481357648 0.0001 1e-06 Dictionary Key: shapez -@value -0.03754549250758193 1e-04 1e-06 -@value -0.1668372689661463 1e-04 1e-06 -@value -0.1865409331445353 1e-04 1e-06 -@value -0.2092364378494078 1e-04 1e-06 +@value -0.03754471534814914 0.0001 1e-06 +@value -0.1668261693510449 0.0001 1e-06 +@value -0.1865385648670614 0.0001 1e-06 +@value -0.2092321326526177 0.0001 1e-06 Dictionary Key: TPR Dictionary Key: shapey -@value 0.08984549038801276 0.0001 1e-06 -@value -0.1026120377600116 0.0001 1e-06 -@value 0.07889370056517067 0.0001 1e-06 -@value -0.0846173656569997 0.0001 1e-06 +@value 0.08984231476276661 0.0001 1e-06 +@value -0.1026282832287896 0.0001 1e-06 +@value 0.07889381125344438 0.0001 1e-06 +@value -0.08462041661143266 0.0001 1e-06 Dictionary Key: shapez -@value -0.03253030126355309 0.0001 1e-06 -@value 0.09548883025920442 0.0001 1e-06 -@value -0.0452150125277994 0.0001 1e-06 -@value 0.1037784570108749 0.0001 1e-06 +@value -0.03252865833279311 0.0001 1e-06 +@value 0.09550057053737057 0.0001 1e-06 +@value -0.04521482413177378 0.0001 1e-06 +@value 0.103781649612844 0.0001 1e-06 Dictionary Key: fail -@value 0 1e-04 1e-06 +@value 0 0.0001 1e-06 diff --git a/tests/runTests_DARhoSimpleCFoam.py b/tests/runTests_DARhoSimpleCFoam.py index f81dd960..af569702 100755 --- a/tests/runTests_DARhoSimpleCFoam.py +++ b/tests/runTests_DARhoSimpleCFoam.py @@ -43,7 +43,7 @@ "solverName": "DARhoSimpleCFoam", "useAD": {"mode": "fd"}, "designSurfaces": ["wing"], - "primalMinResTol": 1e-12, + "primalMinResTol": 1e-11, "writeJacobians": ["all"], "primalBC": { "UIn": {"variable": "U", "patches": ["inout"], "value": [U0, 0.0, 0.0]}, diff --git a/tests/runTests_DARhoSimpleCFoamAD.py b/tests/runTests_DARhoSimpleCFoamAD.py index a5732734..9b5cae03 100755 --- a/tests/runTests_DARhoSimpleCFoamAD.py +++ b/tests/runTests_DARhoSimpleCFoamAD.py @@ -44,7 +44,7 @@ "designSurfaces": ["wing"], "useAD": {"mode": "reverse"}, "writeJacobians": ["all"], - "primalMinResTol": 1e-12, + "primalMinResTol": 3e-12, "primalBC": { "UIn": {"variable": "U", "patches": ["inout"], "value": [U0, 0.0, 0.0]}, "p0": {"variable": "p", "patches": ["inout"], "value": [p0]}, diff --git a/tests/runTests_DARhoSimpleFoamUBend.py b/tests/runTests_DARhoSimpleFoamUBend.py index 197725c6..a9047782 100755 --- a/tests/runTests_DARhoSimpleFoamUBend.py +++ b/tests/runTests_DARhoSimpleFoamUBend.py @@ -37,6 +37,7 @@ "useAD": {"mode": "fd"}, "designSurfaces": ["ubend"], "primalMinResTol": 1e-5, + "primalMinResTolDiff": 1e5, "primalBC": { "U0": {"variable": "U", "patches": ["inlet"], "value": [U0, 0.0, 0.0]}, "p0": {"variable": "p", "patches": ["outlet"], "value": [p0]},