A Compact Numerical Implementation for Solving Stokes Equations Using Matrix-vector Operations
Author(s) -
Tao Zhang,
Amgad Salama,
Shuyu Sun,
Hua Zhong
Publication year - 2015
Publication title -
procedia computer science
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.334
H-Index - 76
ISSN - 1877-0509
DOI - 10.1016/j.procs.2015.05.297
Subject(s) - computer science , python (programming language) , fortran , matlab , laminar flow , grid , scheme (mathematics) , computational science , matrix (chemical analysis) , navier–stokes equations , finite difference , mathematics , parallel computing , programming language , compressibility , mathematical analysis , geometry , mechanics , physics , materials science , composite material
In this work, a numerical scheme is implemented to solve Stokes equations based on cell-centered finite difference over staggered grid. In this scheme, all the difference operations have been vectorized thereby eliminating loops. This is particularly important when using programming languages that require interpretations, e.g., MATLAB and Python. Using this scheme, the execution time becomes significantly smaller compared with non-vectorized operations and also become comparable with those languages that require no repeated interpretations like FORTRAN, C, etc. This technique has also been applied to Navier-Stokes equations under laminar flow conditions
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom