You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current tests which have pulsatile boundary conditions only compare the first time step with an expected/analytical solution. We should be testing them against analytical/semi-analytical solution at multiple time steps to make sure the integration is being tested.
In both the tests above, only timestep 0 is compared with the reference solution.
Expected behavior
For simple test cases, such as the RCR and coronary BC blocks, we should compare with semi-analytical solutions. We can write out the governing equations for specific quantities (inlet pressure, for example) and integrate them in time using simple Euler/RK schemes to compute a reference solution to compare against.
Description
The current tests which have pulsatile boundary conditions only compare the first time step with an expected/analytical solution. We should be testing them against analytical/semi-analytical solution at multiple time steps to make sure the integration is being tested.
Reproduction
Example for RCR BC test case:
svZeroDSolver/tests/test_solver.py
Lines 294 to 298 in 06d2f24
Example for coronary BC test case:
svZeroDSolver/tests/test_solver.py
Lines 310 to 314 in 06d2f24
In both the tests above, only timestep 0 is compared with the reference solution.
Expected behavior
For simple test cases, such as the RCR and coronary BC blocks, we should compare with semi-analytical solutions. We can write out the governing equations for specific quantities (inlet pressure, for example) and integrate them in time using simple Euler/RK schemes to compute a reference solution to compare against.
Additional context
This is related to #95
Code of Conduct
The text was updated successfully, but these errors were encountered: