This paper introduces BACOLIKR, a new software package for the error-controlled numerical solution of systems of one-dimensional time-dependent partial differential equations (PDEs). A novel feature of this package is that it allows the user to specify a solution dependent condition, called an event, and then the software will determine the point in time at which the specified event occurs. This event detection capability can be used to provide an efficient and accurate means for dealing with time-dependent discontinuities in the PDEs or the boundary conditions.
BACOLIKR employs adaptive B-spline Gaussian collocation for the spatial discretization of the PDE system within a spatial error control algorithm. The event detection capability in BACOLIKR is based on its use of a modified version of the time integrator, DASKR, which implements event detection for time-dependent differential-algebraic equations. BACOLIKR was developed through modifications of an earlier error control PDE solver, BACOLI.
In this paper, we provide an overview of the BACOLI and DASKR packages and then describe the modifications that were made in order to develop BACOLIKR. We then show how BACOLIKR can be used for the effective solution of a number of PDE-based event detection problems including solution layer-boundary intersection detection and solution layer merge detection in a fluid mechanics model, critical tumor mass detection in a brain tumor model, steady state detection in the Gierer-Meinhardt model, and boundary condition event detection in a discontinuous heat flow model.
Citation: Jack Pew, Connor Tannahill, Paul Muir. Error-control B-spline Gaussian collocation PDE software with event detection[J]. AIMS Mathematics, 2026, 11(2): 3243-3268. doi: 10.3934/math.2026131
This paper introduces BACOLIKR, a new software package for the error-controlled numerical solution of systems of one-dimensional time-dependent partial differential equations (PDEs). A novel feature of this package is that it allows the user to specify a solution dependent condition, called an event, and then the software will determine the point in time at which the specified event occurs. This event detection capability can be used to provide an efficient and accurate means for dealing with time-dependent discontinuities in the PDEs or the boundary conditions.
BACOLIKR employs adaptive B-spline Gaussian collocation for the spatial discretization of the PDE system within a spatial error control algorithm. The event detection capability in BACOLIKR is based on its use of a modified version of the time integrator, DASKR, which implements event detection for time-dependent differential-algebraic equations. BACOLIKR was developed through modifications of an earlier error control PDE solver, BACOLI.
In this paper, we provide an overview of the BACOLI and DASKR packages and then describe the modifications that were made in order to develop BACOLIKR. We then show how BACOLIKR can be used for the effective solution of a number of PDE-based event detection problems including solution layer-boundary intersection detection and solution layer merge detection in a fluid mechanics model, critical tumor mass detection in a brain tumor model, steady state detection in the Gierer-Meinhardt model, and boundary condition event detection in a discontinuous heat flow model.
| [1] | T. Arsenault, T. Smith, P. H. Muir, Superconvergent interpolants for efficient spatial error estimation in 1D PDE collocation solvers, Can. Appl. Math. Q., 17 (2009), 409–431. |
| [2] | T. Arsenault, T. Smith, P. H. Muir, J. Pew, Asymptotically correct interpolation-based spatial error estimation for 1D PDE solvers, Can. Appl. Math. Q., 20:307–328, 2012. |
| [3] | I. E. Athanasakis, M. G. Papadomanolaki, E. P. Papadopoulou, Y. G. Saridakis, Discontinuous Hermite collocation and diagonally implicit RK3 for a brain tumour invasion model, Proceedings of the World Congress on Engineering, 1 (2013). |
| [4] |
T. R. Boehme, C. H. Onder, L. Guzzella, Code-generator-based software package for defining and solving one-dimensional, dynamic, catalytic reactor models, Comput. Chem. Eng., 32 (2008), 2445–2454. https://doi.org/10.1016/j.compchemeng.2008.01.003 doi: 10.1016/j.compchemeng.2008.01.003
|
| [5] |
Z. Bonaventura, D. Trunec, M. Meško, P. Vašina, V. Kudrle, Theoretical study of pulsed microwave discharge in nitrogen, Plasma Sci. Technol., 14 (2005), 751. https://doi.org/10.1088/0963-0252/14/4/014 doi: 10.1088/0963-0252/14/4/014
|
| [6] |
P. N. Brown, A. C. Hindmarsh, L. R. Petzold, Using Krylov methods in the solution of large-scale differential-algebraic systems, SIAM J. Sci. Comp., 15 (1994), 1467–1488. https://doi.org/10.1137/0915088 doi: 10.1137/0915088
|
| [7] |
P. N. Brown, A. C. Hindmarsh, L. R. Petzold, Consistent initial condition calculation for differential-algebraic systems, SIAM J. Sci. Comp., 19 (1998), 1495–1512. https://doi.org/10.1137/S1064827595289996 doi: 10.1137/S1064827595289996
|
| [8] |
J. H. Cerutti, S. V. Parter, Collocation methods for parabolic partial differential equations in one space dimension, Numer. Math., 26 (1976), 227–254. https://doi.org/10.1007/BF01395944 doi: 10.1007/BF01395944
|
| [9] | C. de Boor, A Practical Guide to Splines, volume 27 of Applied Mathematical Sciences, Springer-Verlag, New York, revised edition, 2001. |
| [10] |
J. C. Díaz, G. Fairweather, P. Keast, Algorithm 603. COLROW and ARCECO: FORTRAN packages for solving certain almost block diagonal linear systems by modified alternate row and column elimination, ACM Trans. Math. Software, 9 (1983), 376–380. https://doi.org/10.1145/356044.356054 doi: 10.1145/356044.356054
|
| [11] | J. Douglas Jr., T. Dupont, Collocation Methods for Parabolic Equations in a Single Space Variable, Lecture Notes in Mathematics, Vol. 385, Springer-Verlag, Berlin, 1974. https://doi.org/10.1007/BFb0057337 |
| [12] |
W. H. Enright, K. R. Jackson, S. P. Nørsett, P. G. Thomsen, Effective solution of discontinuous IVPs using a Runge-Kutta formula pair with interpolants, Appl. Math. Comp., 27 (1988), 313–355. https://doi.org/10.1016/0096-3003(88)90030-6 doi: 10.1016/0096-3003(88)90030-6
|
| [13] |
W. F. Finden, An error term and uniqueness for Hermite-Birkhoff interpolation involving only function values and/or first derivative values, J. Comput. Appl. Math., 212 (2008), 1–15. https://doi.org/10.1016/j.cam.2006.11.022 doi: 10.1016/j.cam.2006.11.022
|
| [14] |
C. W. Gear, O. Osterby, Solving ordinary differential equations with discontinuities, ACM Trans. Math. Softw., 10 (1984), 23–44. https://doi.org/10.1145/356068.356071 doi: 10.1145/356068.356071
|
| [15] |
A. Gierer, H. Meinhardt, A theory of biological pattern formation, Kybernetik, 12 (1972), 30–39. https://doi.org/10.1007/BF00289234 doi: 10.1007/BF00289234
|
| [16] |
K. R. Green, R. J. Spiteri, Extended BACOLI: solving one-dimensional multiscale parabolic PDE systems with error control, ACM Trans. Math. Softw., 45 (2019), 1–19. https://doi.org/10.1145/3301320 doi: 10.1145/3301320
|
| [17] | E. Hairer, S. P. Nørsett, G. Wanner, Solving Ordinary Differential Equations. Ⅰ, volume 8 of Springer Series in Computational Mathematics, Springer-Verlag, Berlin, second edition, 1993. |
| [18] | K. L. Hiebert, L. F. Shampine, Implicitly defined output points for solutions of ODEs, Sandia Report SAND80-0180, 1980. |
| [19] | P. Keast, LAMPAK: a Fortran package for solving certain almost block diagonal matrices, Unpublished software, 1982. |
| [20] |
G. Mao, L. R. Petzold, Efficient integration over discontinuities for differential-algebraic systems, Comput. Math. Applic., 43 (2002), 65–79. https://doi.org/10.1016/S0898-1221(01)00272-3 doi: 10.1016/S0898-1221(01)00272-3
|
| [21] | L. R. Petzold, A Description of DASSL: A Differential/Algebraic System Solver, Sandia Labs, Livermore, CA, 1982. |
| [22] |
J. Pew, Z. Li, P. H. Muir, Algorithm 962: BACOLI: B-spline adaptive collocation software for PDEs with interpolation-based spatial error control, ACM Trans. Math. Softw., 42 (2016), 1–17. https://doi.org/10.1145/2818312 doi: 10.1145/2818312
|
| [23] |
J. Pew, Z. Li, C. Tannahill, P. H. Muir, G. Fairweather, Performance analysis of error-control B-spline Gaussian collocation software for PDEs, Comput. Math. Appl., 77 (2019), 1888–1901. https://doi.org/10.1016/j.camwa.2018.11.025 doi: 10.1016/j.camwa.2018.11.025
|
| [24] | J. Pew, C. Tannahill, P. H. Muir, A numerical study of an error control B-spline Gaussian collocation PDE solver with event detection, Saint Mary's University, Mathematics and Computing Science Technical Report Series, Technical Report 2024_001, http://cs.smu.ca/tech_reports, 2024. |
| [25] |
L. F. Shampine, S. Thompson, Event location for ordinary differential equations, Comput. Math. Appl., 39 (2000), 43–54. https://doi.org/10.1016/S0898-1221(00)00045-6 doi: 10.1016/S0898-1221(00)00045-6
|
| [26] | A. Sommer, H. G. Bock, E. Kostina, IFDIFF - a matlab toolkit for ODEs with state-dependent switches, 2024. Available from: https://andreassommer.github.io/ifdiff/. |
| [27] |
D. Trunec, Z. Bonaventura, D. Nečas, Solution of time-dependent Boltzmann equation for electrons in non-thermal plasma, J. Phys. D Appl. Phys., 39 (2006), 2544. https://doi.org/10.1088/0022-3727/39/12/012 doi: 10.1088/0022-3727/39/12/012
|
| [28] |
J. J. Vallino, J. A. Huber, Using maximum entropy production to describe microbial biogeochemistry over time and space in a meromictic pond, Front. Environ. Sci., 6 (2018), 100. https://doi.org/10.3389/fenvs.2018.00100 doi: 10.3389/fenvs.2018.00100
|
| [29] |
R. Wang, P. Keast, P. H. Muir, BACOL: B-spline Adaptive COLlocation software for 1D parabolic PDEs, ACM Trans. Math. Software, 30 (2004), 454–470. https://doi.org/10.1145/1039813.1039817 doi: 10.1145/1039813.1039817
|
| [30] |
R. Wang, P. Keast, P. H. Muir, A comparison of adaptive software for 1D parabolic PDEs, J. Comput. Appl. Math., 169 (2004), 127–150. https://doi.org/10.1016/j.cam.2003.12.016 doi: 10.1016/j.cam.2003.12.016
|
| [31] |
R. Wang, P. Keast, P. H. Muir, A high-order global spatially adaptive collocation method for 1D parabolic PDEs, Appl. Numer. Math., 50 (2004), 239–260. https://doi.org/10.1016/j.apnum.2003.12.023 doi: 10.1016/j.apnum.2003.12.023
|
| [32] |
W. Zhang, Diffusive effects on a catalytic surface reaction: an initial boundary value problem in reaction-diffusion-convection equations, J. Bifur. Chaos, 3 (1993), 79–95. https://doi.org/10.1142/S0218127493000052 doi: 10.1142/S0218127493000052
|