Skip to content
Snippets Groups Projects
Commit cf076f80 authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Adap test/tol to acount for msh diff on different OS.

parent 685c578c
No related branches found
No related tags found
No related merge requests found
Pipeline #4590 passed
......@@ -42,7 +42,7 @@ def main():
dim = 3
# define dimension and mesh size
spn = 0.1 # wing span
spn = 0.2 # wing span
lgt = 6.0 # channel length
hgt = 6.0 # channel height
wdt = 3.0 # channel width
......@@ -117,16 +117,16 @@ def main():
raise Exception(ccolors.ANSI_RED + 'Flow solver failed to converge!' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('iteration count', solver.nIt, 6, 1, forceabs=True))
tests.add(CTest('CL', solver.Cl, 0.61, 5e-2)) # 2D, 0.62
tests.add(CTest('CD', solver.Cd, 0.0016, 1e-2)) # 2D 0.0009 (3D refined 0.0006)
tests.add(CTest('CL', solver.Cl, 0.60, 5e-2)) # 2D, 0.62
tests.add(CTest('CD', solver.Cd, 0.0015, 1e-2)) # 2D 0.0009 (3D refined 0.0006)
tests.add(CTest('CS', solver.Cs, 0.0000, 1e-3, forceabs=True))
tests.add(CTest('CM', solver.Cm, -0.116, 5e-2)) # 2D -0.117
tests.add(CTest('dCl/dAoA', adjoint.dClAoa, 12.7, 5e-2)) # 2D 12.7, FD 12.65 (1e-6)
tests.add(CTest('dCd/dAoA', adjoint.dCdAoa, 0.073, 5e-2)) # 2D 0.051, FD, 0.073 (1e-6)
tests.add(CTest('dCl_dMsh', dClX, 38.0, 5e-2))
tests.add(CTest('dCd_dMsh', dCdX, 2.0, 5e-2))
tests.add(CTest('dCl/dAoA (msh)', dClAoA, 12.8, 5e-2)) # 2D 12.9
tests.add(CTest('dCd/dAoA (msh)', dCdAoA, 0.073, 5e-2)) # 2D 0.051
tests.add(CTest('CM', solver.Cm, -0.113, 5e-2)) # 2D -0.117
tests.add(CTest('dCl/dAoA', adjoint.dClAoa, 12.7, 5e-2)) # 2D 12.7, FD 12.73 (1e-6)
tests.add(CTest('dCd/dAoA', adjoint.dCdAoa, 0.059, 5e-3, forceabs=True)) # 2D 0.051, FD 0.0557 (1e-6)
tests.add(CTest('dCl_dMsh', dClX, 22.0, 5e-2))
tests.add(CTest('dCd_dMsh', dCdX, 1.0, 5e-2))
tests.add(CTest('dCl/dAoA (msh)', dClAoA, 12.9, 5e-2)) # 2D 12.9
tests.add(CTest('dCd/dAoA (msh)', dCdAoA, 0.058, 5e-3, forceabs=True)) # 2D 0.051
tests.run()
# eof
......
......@@ -145,7 +145,7 @@ def main():
tests.add(CTest('CL', solver.Cl, 0.21, 5e-2))
tests.add(CTest('CD', solver.Cd, 0.008, 1e-2))
tests.add(CTest('CS', solver.Cs, -0.020, 5e-2))
tests.add(CTest('CM', solver.Cm, -0.080, 1e-2))
tests.add(CTest('CM', solver.Cm, -0.080, 5e-2))
tests.add(CTest('dCl/dAoA', adjoint.dClAoa, 3.0, 5e-2)) # FD 3.0144 (1e-6)
tests.add(CTest('dCd/dAoA', adjoint.dCdAoa, 0.2, 5e-2)) # FD 0.2007 (1e-6)
tests.add(CTest('dCl_dMsh', dClX, 2.3, 5e-2))
......
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