Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Feb 15, 2024
1 parent ac0e857 commit 2f45f00
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 35 deletions.
20 changes: 10 additions & 10 deletions tests/refs/DAFoam_Test_DARhoSimpleCFoamRef.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions tests/refs/DAFoam_Test_DASimpleFoamkOmegaSSTFIMLRef.txt
Original file line number Diff line number Diff line change
@@ -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
38 changes: 19 additions & 19 deletions tests/refs/DAFoam_Test_DATurboFoamSubsonicRef.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/runTests_DARhoSimpleCFoam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]},
Expand Down
2 changes: 1 addition & 1 deletion tests/runTests_DARhoSimpleCFoamAD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]},
Expand Down
1 change: 1 addition & 0 deletions tests/runTests_DARhoSimpleFoamUBend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]},
Expand Down

0 comments on commit 2f45f00

Please sign in to comment.