Algorithm 731: A moving-grid interface for systems of one-dimensional time-dependent partial differential equations

In the last decade, several numerical techniques have been developed to solve time-dependent partial differential equations (PDEs) in one dimension having solutions with steep gradients in space and in time. One of these techniques, a moving-grid method based on a Lagrangian description of the PDE and a smoothed-equidistribution principle to define the grid positions at each time level, has been coupled with a spatial discretization method that automatically discreizes the spatial part of the user-defined PDE following the method of lines approach. We supply two FORTRAN subroutines, CWRESU and CWRESX, which compute the residuals of the differential algebraic equations (DAE) system obtained from semidiscretizing, respectively, the PDE and the set of moving-grid equations. These routines are combined in an enveloping routine SKMRES, which delivers the residuals of the complete DAE system. To solve this stiff, nonlinear DAE system, a robust and efficient time-integrator must be applied, for example, a BDF method such as implemented in the DAE solvers SPRINT [Berzins and Furzeland 1985; 1986; Berzins et al. 1989] and DASSL [Brenan et al. 1989; Petzold 1983]. Some numerical examples are shown to illustrate the simple and effective use of this software interface.

[1]  Martin Berzins,et al.  Developing software for time-dependent problems using the method of lines and differential-algebraic integrators , 1989 .

[2]  Martin Berzins,et al.  A Method for the Spatial Discretization of Parabolic Equations in One Space Variable , 1990, SIAM J. Sci. Comput..

[3]  Miente Bakker Software for semi-discretization of time-dependent partial differential equations in one space variable : (preprint) , 1977 .

[4]  Joke Blom,et al.  A moving grid method for one-dimensional PDEs based on the method of lines , 1988 .

[5]  J. Verwer,et al.  A numerical study of three moving-grid methods for one-dimensional partial differential equations which are based on the method of lines , 1990 .

[6]  E. Dorfi,et al.  Simple adaptive grids for 1-d initial value problems , 1987 .

[7]  Jack J. Dongarra,et al.  Distribution of mathematical software via electronic mail , 1985, SGNM.

[8]  L. Petzold A description of dassl: a differential/algebraic system solver , 1982 .

[9]  A moving-grid interface for systems of one-dimensional time-dependent partial differential equations , 1989 .

[10]  Richard F. Sincovec,et al.  Software for Nonlinear Partial Differential Equations , 1975, TOMS.

[11]  V. Klema LINPACK user's guide , 1980 .

[12]  Joke Blom,et al.  An Evaluation of the Gradient-Weighted Moving-Finite-Element Method in One Space Dimension , 1990 .

[13]  Jan Verwer,et al.  Application of a moving grid method to a class of 1D brine transport problems in porous media , 1992 .

[14]  William J. Cody,et al.  Algorithm 665: Machar: a subroutine to dynamically determined machine parameters , 1988, TOMS.

[15]  Joke Blom,et al.  On the use of the arclength and curvature monitor in a moving-grid method which is based on the method of lines , 1989 .

[16]  Linda R. Petzold,et al.  Numerical solution of initial-value problems in differential-algebraic equations , 1996, Classics in applied mathematics.