fe2d_predator_prey_fast, a MATLAB code which implements finite element solvers for predator prey simulations with time and 2D spatial dependence over an arbitrary domain that has been triangulated. A variety of boundary conditions may be specified. The solvers integrate the associated partial differential equations over a given time interval, and create plots of the predator and prey population densities at the final time.
These codes are a finite element generalization of earlier MATLAB algorithms developed using finite difference methods.
The algorithms presented here are "fast" versions of scripts that were originally written by Marcus Garvie, of the University of Guelph. They have been modified by John Burkardt to run much more quickly.
The computer code and data files made available on this web page are distributed under the GNU LGPL license.
fe2d_predator_prey_fast is available in a MATLAB version.
fd_predator_prey, a MATLAB code which solves a pair of predator prey ODE's using a finite difference approximation.
fd1d_predator_prey, a MATLAB code which uses finite differences to solve a 1D predator prey problem.
fd2d_predator_prey, a MATLAB code which implements a finite difference algorithm for a predator-prey system with spatial variation in 2D.
Original MATLAB versions by Marcus Garvie; Modifications by John Burkardt.
FE2D_D: Scheme 2 applied to Kinetics 1 with pure Dirichlet boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
FE2D_N: Scheme 2 applied to Kinetics 1 with pure Neumann boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
FE2D_ND: Scheme 2 applied to Kinetics 1 with a mixture of Neumann and Dirichlet boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The user must also supply lists of the boundary nodes at which Neumann and Dirichlet conditions are to be applied. The sample problem uses the lake.
FE2D_NR: Scheme 2 applied to Kinetics 1 with a mixture of Neumann and Robin boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The user must also supply lists of the boundary nodes at which Neumann and Robin conditions are to be applied. The sample problem uses the lake.
FE2D_P: Scheme 2 applied to Kinetics 1 with periodic boundary conditions. This problem is posed on the unit square.
FE2D_R: Scheme 2 applied to Kinetics 1 with pure Robin boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
FE2DX_D: Scheme 1 applied to Kinetics 1 with pure Dirichlet boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
FE2DX_N: Scheme 1 applied to Kinetics 1 with pure Neumann boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
FE2DX_ND: Scheme 1 applied to Kinetics 1 with a mixture of Neumann and Dirichlet boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The user must also supply lists of the boundary nodes at which Neumann and Dirichlet conditions are to be applied. The sample problem uses the lake.
FE2DX_NR: Scheme 1 applied to Kinetics 1 with a mixture of Neumann and Robin boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The user must also supply lists of the boundary nodes at which Neumann and Robin conditions are to be applied. The sample problem uses the lake.
FE2DX_NR_ALT: Scheme 1 applied to Kinetics 1 with a mixture of Neumann and Robin boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The user must also supply lists of the boundary nodes at which Neumann and Robin conditions are to be applied. This program is the same as that in FE2DX_NR, except that the Robin condition is applied implicitly. The sample problem uses the lake.
FE2DX_P: Scheme 1 applied to Kinetics 1 with periodic boundary conditions. This problem is posed on the unit square.
FE2DX_R: Scheme 1 applied to Kinetics 1 with pure Robin boundary conditions. This problem is posed on a region whose nodes and triangulation are supplied by the user. The sample problem uses the lake.
Auxilliary functions include: