M2Di: Concise and efficient MATLAB 2‐D Stokes solvers using the Finite Difference Method
M2Di: Concise and efficient MATLAB 2‐D Stokes solvers using the Finite Difference Method
复制标题
M2Di:使用有限差分法的简洁高效的 MATLAB 2-D Stokes 求解器
DOI:
--
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
S. Schmalholz
中科院分区:
文献类型:
--
作者:
L. Räss;T. Duretz;Y. Podladchikov;S. Schmalholz
Recent development of many multiphysics modeling tools reflects the currently growing interest for studying coupled processes in Earth Sciences. The core of such tools should rely on fast and robust mechanical solvers. Here we provide M2Di, a set of routines for 2‐D linear and power law incompressible viscous flow based on Finite Difference discretizations. The 2‐D codes are written in a concise vectorized MATLAB fashion and can achieve a time to solution of 22 s for linear viscous flow on 10002 grid points using a standard personal computer. We provide application examples spanning from finely resolved crystal‐melt dynamics, deformation of heterogeneous power law viscous fluids to instantaneous models of mantle flow in cylindrical coordinates. The routines are validated against analytical solution for linear viscous flow with highly variable viscosity and compared against analytical and numerical solutions of power law viscous folding and necking. In the power law case, both Picard and Newton iterations schemes are implemented. For linear Stokes flow and Picard linearization, the discretization results in symmetric positive‐definite matrix operators on Cartesian grids with either regular or variable grid spacing allowing for an optimized solving procedure. For Newton linearization, the matrix operator is no longer symmetric and an adequate solving procedure is provided. The reported performance of linear and power law Stokes flow is finally analyzed in terms of wall time. All MATLAB codes are provided and can readily be used for educational as well as research purposes. The M2Di routines are available from Bitbucket and the University of Lausanne Scientific Computing Group website, and are also supplementary material to this article.