FVTool

FVTool is an implementation of cell-centered finite volume technique in Matlab, that can be used to discretize a linear transient convection-diffusion equation on a variety of coordinate systems, including 1, 2, or 3D Cartesian, Cylindrical, and Spherical. A general boundary condition is designed that can help the user to define Dirichlet, Neumann, and Robin boundary conditions with a minimal effort. The convection term can be discretized using different techniques, i.e., central difference, upwind, and total variation diminishing (TVD). The code is particularly useful for a quick implementation of the mathematical models that describe the transport phenomena in chemical and petroleum engineering.