Skip to content

Commit

Permalink
Update reg tests after meandering bug. rtol on small_grid_rotation te…
Browse files Browse the repository at this point in the history
…sts needed to be bumped up.
  • Loading branch information
misi9170 committed Jul 16, 2024
1 parent 44e0e03 commit 07481ed
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions tests/reg_tests/eddy_viscosity_regression_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
# 8 m/s
[
[7.9736858, 0.7871515, 1753954.4591792, 0.2693224],
[6.5263804, 0.8369106, 974243.5177269, 0.2980784],
[6.1970319, 0.8518888, 826172.2065990, 0.3075739],
[6.6666422, 0.8305317, 1037303.6026684, 0.2941674],
[6.3776334, 0.8436754, 907368.5661344, 0.3023105],
],
# 9 m/s
[
[8.9703965, 0.7858774, 2496427.8618358, 0.2686331],
[7.3440921, 0.8029169, 1371984.6866519, 0.2780298],
[6.9862507, 0.8159965, 1180995.8640330, 0.2855219],
[7.5017741, 0.7976252, 1461746.8459320, 0.2750696],
[7.1929915, 0.8081969, 1288784.8178808, 0.2810234],
],
# 10 m/s
[
[9.9671073, 0.7838789, 3417797.0050916, 0.2675559],
[8.1634419, 0.7869173, 1893320.3620277, 0.2691956],
[7.7721073, 0.7893792, 1624834.7338246, 0.2705328],
[8.3384475, 0.7866918, 2024117.2497181, 0.2690735],
[8.0002374, 0.7871277, 1771343.4133243, 0.2693096],
],
# 11 m/s
[
[10.9638180, 0.7565157, 4519404.3072862, 0.2532794],
[9.0305778, 0.7857773, 2546985.2171774, 0.2685790],
[8.5627227, 0.7864028, 2191737.6560053, 0.2689171],
[9.2200413, 0.7853932, 2723153.7974906, 0.2683716],
[8.8125257, 0.7860809, 2378437.2315890, 0.2687430],
],
]
)
Expand Down Expand Up @@ -85,39 +85,39 @@
[
[
[
[7.88772361, 8. , 8.10178821],
[7.88772361, 8. , 8.10178821],
[7.88772361, 8. , 8.10178821],
[7.88772361, 8. , 8.10178821],
[7.88772361, 8. , 8.10178821],
[7.88772361, 8.0, 8.10178821],
[7.88772361, 8.0, 8.10178821],
[7.88772361, 8.0, 8.10178821],
[7.88772361, 8.0, 8.10178821],
[7.88772361, 8.0, 8.10178821],
],
[
[7.88764821, 7.99992227, 8.10171076],
[7.71260109, 7.81946517, 7.92191304],
[5.56854792, 5.60914823, 5.71967251],
[7.71260109, 7.81946517, 7.92191304],
[7.88764821, 7.99992227, 8.10171076],
[7.88758793, 7.99986028, 8.10164885],
[7.69657254, 7.80314836, 7.9054495 ],
[5.74483323, 5.79320367, 5.90074201],
[7.69657254, 7.80314836, 7.9054495 ],
[7.88758793, 7.99986028, 8.10164885],
],
[
[7.81584875, 7.92696725, 8.02796273],
[7.49107559, 7.59407342, 7.69437557],
[5.45319201, 5.49761286, 5.60118595],
[7.49107559, 7.59407342, 7.69437557],
[7.81584875, 7.92696725, 8.02796273],
[7.8151773 , 7.92629295, 8.02727307],
[7.48541427, 7.58840385, 7.68856061],
[5.67767815, 5.73066043, 5.83176442],
[7.48541427, 7.58840385, 7.68856061],
[7.8151773 , 7.92629295, 8.02727307],
],
[
[7.75605369, 7.86628279, 7.9665449 ],
[7.38455927, 7.48591781, 7.58496852],
[5.55919358, 5.61071229, 5.7100643 ],
[7.38455927, 7.48591781, 7.58496852],
[7.75605369, 7.86628279, 7.9665449 ],
[7.75903294, 7.86931452, 7.969605 ],
[7.38563303, 7.48715077, 7.58607141],
[5.79942256, 5.85940559, 5.95681284],
[7.38563303, 7.48715077, 7.58607141],
[7.75903294, 7.86931452, 7.969605 ],
],
[
[7.74764303, 7.85769786, 7.95790599],
[7.33860263, 7.44048391, 7.53776465],
[6.63815123, 6.72538708, 6.81830373],
[7.33860263, 7.44048391, 7.53776465],
[7.74764303, 7.85769786, 7.95790599],
[7.74436376, 7.85435448, 7.95453772],
[7.37530096, 7.47827906, 7.57545893],
[6.89021982, 6.98370227, 7.07721321],
[7.37530096, 7.47827906, 7.57545893],
[7.74436376, 7.85435448, 7.95453772],
]
]
]
Expand Down Expand Up @@ -440,7 +440,7 @@ def test_regression_small_grid_rotation(sample_inputs_fixture):
# Columns 1 - 4 should have the same power profile
# Column 5 leading turbine is completely unwaked
# and the rest of the turbines have a partial wake from their immediate upstream turbine
rtol = 1e-3 # Fails for default rtol=1e-5
rtol = 1e-2 # Fails for default rtol=1e-5
assert np.allclose(farm_powers[8,0:5], farm_powers[8,5:10], rtol=rtol)
assert np.allclose(farm_powers[8,0:5], farm_powers[8,10:15], rtol=rtol)
# The following fails, but it's not clear that it should pass. Setting rtol=1e-2 makes it pass.
Expand Down

0 comments on commit 07481ed

Please sign in to comment.