# FEM and PDE tool for fractured solid **Repository Path**: qzhang94/fem-and-pde-tool-for-fractured-shale ## Basic Information - **Project Name**: FEM and PDE tool for fractured solid - **Description**: The source code of the paper "Numerical modeling of gas flow and solid deformation in unconventional anisotropic shale" published in Computers and Geotechnics! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://doi.org/10.1016/j.compgeo.2025.107441 - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-04-28 - **Last Updated**: 2025-10-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: FEM, Matlab ## README # Numerical Modeling of Gas Flow and Solid Deformation in Unconventional Anisotropic Solid **Author:** Qi ZHANG (University of Macau) **Language:** [MATLAB](http://www.mathworks.com/products/matlab/) ## Introduction This repository provides a MATLAB-based framework for simulating gas flow and solid deformation in unconventional anisotropic shale. The code is intended for a variety of scenarios and supports multiple fluid types, finite element formulations, and constitutive models. ### New subfolder of more examples Please click [here](./FEM_Tool/Source_code/New_cases_after_paper). ### Key Features - **Versatile fluid models:** Ideal gas, slightly compressible fluids, and incompressible fluids. - **Finite element options:** Works with T3 (triangular) or T6 (quadratic triangular) elements. - **Advanced quadrature rules:** Easily extendable to different integration schemes. - **Node splitting technique:** Incorporates robust methods for handling fractures or discontinuities. - **Mixed FEM structure:** Built on a solid foundation of mixed finite element methods for coupled problems. ## Acknowledgments - **Jiamin JIANG** for providing the example code on the node splitting technique (back to 2018 @ Stanford Blume Center). - **Xian-Han WU** for kindly supplying the basic mixed FEM code structure. - **Xi-Wen ZHOU** for kindly providing the functions for simple mesh generation and plotting. - **MESH2D** for Delaunay-based mesh generation in MATLAB. - [TRIANGULATION_L2Q](https://people.sc.fsu.edu/~jburkardt/m_src/triangulation_l2q/triangulation_l2q.html) function that makes a quadratic triangulation from a linear one. ## Documentation Each subfolder contains a `README` with brief notes on usage and test examples. These examples are presented to enhance *reproducible science* and offer insight into how the code handles various case studies. ## How to Use 1. **Clone or download** this repository. 2. **Open MATLAB**, navigate to the repository folder, and review the subfolder `README` files for details on each test or example. 3. **Run the MATLAB scripts** or functions as indicated in the subfolder-specific instructions. ## Citation If this code contributes to your research, please cite it in your publications. Attribution is crucial for encouraging further development and reproducibility in the community. ---