TY - JOUR
T1 - Matrix-oriented implementation for the numerical solution of the partial differential equations governing flows and transport in porous media
AU - Sun, Shuyu
AU - Salama, Amgad
AU - El-Amin, Mohamed
N1 - KAUST Repository Item: Exported on 2020-10-01
PY - 2012/9
Y1 - 2012/9
N2 - In this paper we introduce a new technique for the numerical solution of the various partial differential equations governing flow and transport phenomena in porous media. This method is proposed to be used in high level programming languages like MATLAB, Python, etc., which show to be more efficient for certain mathematical operations than for others. The proposed technique utilizes those operations in which these programming languages are efficient the most and keeps away as much as possible from those inefficient, time-consuming operations. In particular, this technique is based on the minimization of using multiple indices looping operations by reshaping the unknown variables into one-dimensional column vectors and performing the numerical operations using shifting matrices. The cell-centered information as well as the face-centered information are shifted to the adjacent face-center and cell-center, respectively. This enables the difference equations to be done for all the cells at once using matrix operations rather than within loops. Furthermore, for results post-processing, the face-center information can further be mapped to the physical grid nodes for contour plotting and stream lines constructions. In this work we apply this technique to flow and transport phenomena in porous media. © 2012 Elsevier Ltd.
AB - In this paper we introduce a new technique for the numerical solution of the various partial differential equations governing flow and transport phenomena in porous media. This method is proposed to be used in high level programming languages like MATLAB, Python, etc., which show to be more efficient for certain mathematical operations than for others. The proposed technique utilizes those operations in which these programming languages are efficient the most and keeps away as much as possible from those inefficient, time-consuming operations. In particular, this technique is based on the minimization of using multiple indices looping operations by reshaping the unknown variables into one-dimensional column vectors and performing the numerical operations using shifting matrices. The cell-centered information as well as the face-centered information are shifted to the adjacent face-center and cell-center, respectively. This enables the difference equations to be done for all the cells at once using matrix operations rather than within loops. Furthermore, for results post-processing, the face-center information can further be mapped to the physical grid nodes for contour plotting and stream lines constructions. In this work we apply this technique to flow and transport phenomena in porous media. © 2012 Elsevier Ltd.
UR - http://hdl.handle.net/10754/562300
UR - https://linkinghub.elsevier.com/retrieve/pii/S0045793012002952
UR - http://www.scopus.com/inward/record.url?scp=84865495476&partnerID=8YFLogxK
U2 - 10.1016/j.compfluid.2012.07.027
DO - 10.1016/j.compfluid.2012.07.027
M3 - Article
SN - 0045-7930
VL - 68
SP - 38
EP - 46
JO - Computers & Fluids
JF - Computers & Fluids
ER -