-
Notifications
You must be signed in to change notification settings - Fork 1
Automated testing
Richard Measures edited this page Jun 22, 2019
·
3 revisions
The tests folder contains various scripts for testing different aspects of hapuamod:
TestHydraulics.py runs a series of tests on the steady and unsteady 1D hydrodynamics solvers in the riv module. Results from the tests, including statistics on speed and accuracy, as well as plots of results, are output to an html file. The tests are:
| Test | Name | Checks |
|---|---|---|
| 1 | Steady flow | Check unsteady solution closely matches steady |
| 2 | Unsteady inflow | Check final solution matches steady |
| 3 | Unsteady DSbdy | Check stability and mass balance error |
| 4 | Lagoon storage | Check storage influences result and mass balance error |
| 5 | Reverse flow | Check model stability under reverse flow andmass balance |
| 6 | Constriction | Check unsteady vs steady solution and mass balance |
| 7 | Trans-critical flow | Check stability, unsteady vs steady solution and mass balance |
| 8 | Supercritical flow | Check stability and mass-balance |