Skip to content
Snippets Groups Projects
Verified Commit 4cdab170 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(tests) Updated validation cases wrt to span bug fix

Results are very close on Mac and ubuntu. Agard test number of iterations is 9 if linear solver is GMRES and 4 if PARDISO. Lift and drag do not change significantly.
parent ddfe3c95
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #50948 passed
......@@ -186,8 +186,9 @@ def main():
print(ccolors.ANSI_BLUE + 'PyTesting...' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('Cl', isol.getCl(), 0.0, 1e-3))
tests.add(CTest('Cd', isol.getCd()+vsol.Cdf, 0.0057, 1e-3, forceabs=True))
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 4, 1, forceabs=True))
tests.add(CTest('Cd', isol.getCd()+vsol.Cdf, 0.0046, 1e-3, forceabs=True))
if icfg['LSolver'] == 'PARDISO':
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 4, 1, forceabs=True))
tests.run()
# eof
......
......@@ -143,9 +143,9 @@ def main():
# Test solution
print(ccolors.ANSI_BLUE + 'PyTesting...' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('Cl', isol.getCl(), 0.6007, 5e-2))
tests.add(CTest('Cd wake', vsol.Cdt, 0.00348, 1e-3, forceabs=True))
tests.add(CTest('Cd int', isol.getCd() + vsol.Cdf, 0.0279, 1e-3, forceabs=True))
tests.add(CTest('Cl', isol.getCl(), 0.608, 5e-2))
tests.add(CTest('Cd wake', vsol.Cdt, 0.0029, 1e-3, forceabs=True))
tests.add(CTest('Cd int', isol.getCd() + vsol.Cdf, 0.0270, 1e-3, forceabs=True))
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 4, 0, forceabs=True))
tests.run()
......
......@@ -142,8 +142,8 @@ def main():
print(ccolors.ANSI_BLUE + 'PyTesting...' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('Cl', isol.getCl(), 0.283, 5e-2))
tests.add(CTest('Cd wake', vsol.Cdt, 0.00640, 1e-3, forceabs=True))
tests.add(CTest('Cd int', isol.getCd() + vsol.Cdf, 0.0167, 1e-3, forceabs=True))
tests.add(CTest('Cd wake', vsol.Cdt, 0.0062, 1e-3, forceabs=True))
tests.add(CTest('Cd int', isol.getCd() + vsol.Cdf, 0.0156, 1e-3, forceabs=True))
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 14, 0, forceabs=True))
tests.run()
......
......@@ -132,7 +132,7 @@ def main():
# Test solution
print(ccolors.ANSI_BLUE + 'PyTesting...' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('Cl', isol.getCl(), 0.730, 5e-2))
tests.add(CTest('Cl', isol.getCl(), 0.728, 5e-2))
tests.add(CTest('Cd wake', vsol.Cdt, 0.0098, 1e-3, forceabs=True))
tests.add(CTest('Cd integral', isol.getCd() + vsol.Cdf, 0.0126, 1e-3, forceabs=True))
tests.add(CTest('Cdf', vsol.Cdf, 0.0067, 1e-3, forceabs=True))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment