porous_medium_exact, a C code which returns an exact solution of the porous medium equation (PME), dudt=Del^2(u^m), a partial differential equation (PDE) related to the diffusion equation, based on the Barenblatt solution.
The information on this web page is distributed under the MIT license.
porous_medium_exact is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
c_exact, a C code which returns an exact solution u(x,t) of the porous medium equation (PME), related to the diffusion equation, and based on the Barenblatt solution. The partial differential equation (PDE) has the form dudt=Del^2(u^m). This system reduces to a diffusion equation if the exponent m is set to 1.