[Paper Review] An eXtended Finite Element Method Implementation in COMSOL Multiphysics: Thermo-Hydro-Mechanical Modeling of Fluid Flow in Discontinuous Porous Media
This paper presents a novel implementation of the eXtended Finite Element Method (XFEM) within COMSOL Multiphysics for coupled thermo-hydro-mechanical (THM) analysis in discontinuous porous media. By integrating COMSOL’s physics interfaces with custom MATLAB-based level-set tracking and enriched field management, the framework enables robust, remeshing-free simulation of fluid flow, heat transfer, and mechanical deformation in 2D/3D porous rock with single or multiple discontinuities, validated through analytical and experimental benchmarks.
This paper presents the implementation of the eXtended Finite Element Method (XFEM) in the general-purpose commercial software package COMSOL Multiphysics for multi-field thermo-hydro-mechanical problems in discontinuous porous media. To this end, an exclusive enrichment strategy is proposed in compliance with the COMSOL modeling structure. COMSOL modules and physics interfaces are adopted to take account of the relevant physical processes involved in thermo-hydro-mechanical coupling analysis, namely: the mechanical deformation, fluid flow in porous media and heat transfer. Essential changes are made to the internal variables of the physics interfaces to ensure consistency in the evaluation of enriched solution fields. The model preprocessing, level-set updates, coupling of the relevant physics and postprocessing procedures are performed adopting a coherent utilization of the COMSOL built-in features along with the COMSOL LiveLink for MATLAB functions. The implementation process, remedies for the treatment of the enriched zones, XFEM framework setup, multiphysics coupling, numerical integration and numerical solution strategy are described in detail. The capabilities and performance of the proposed approach are investigated by examining several multi-field thermo-hydro-mechanical simulations involving single/multiple discontinuities in 2D/3D porous rock settings.
Motivation & Objective
- To enable accurate, efficient, and flexible simulation of coupled thermo-hydro-mechanical (THM) processes in discontinuous porous media using a general-purpose finite element platform.
- To overcome the limitations of in-house XFEM codes by integrating XFEM into COMSOL Multiphysics, leveraging its advanced multiphysics coupling and meshing capabilities.
- To develop a robust, reusable XFEM framework compatible with COMSOL’s architecture for 2D and 3D applications involving single or multiple discontinuities.
- To facilitate the calculation of stress intensity factors and contact mechanics within the same environment using built-in variables and functions.
- To demonstrate the feasibility and accuracy of the implementation through benchmark simulations involving thermal, mechanical, and hydro-mechanical responses.
Proposed method
- Adopted COMSOL’s 'Solid Mechanics', 'Darcy’s Law', and 'Heat Transfer in Porous Media' physics interfaces to model mechanical deformation, fluid flow, and heat transfer in a coupled manner.
- Implemented an exclusive enrichment strategy using level-set functions via LiveLink for MATLAB to track discontinuities during pre-processing and solution updates.
- Modified internal variables in COMSOL physics interfaces to ensure consistent evaluation of enriched solution fields across all coupled physics.
- Utilized built-in integration operators (e.g., circint, diskint) and mathematical functions in COMSOL to compute the interaction integral for accurate stress intensity factor (SIF) evaluation.
- Employed a monolithic or staggered solution strategy within COMSOL, customizable based on numerical stability and computational efficiency needs.
- Integrated postprocessing and preprocessing workflows using COMSOL’s built-in features and MATLAB functions to manage complex geometry and enrichment zones.
Experimental results
Research questions
- RQ1Can XFEM be effectively implemented in COMSOL Multiphysics to model coupled THM processes in discontinuous porous media without remeshing?
- RQ2How accurately can the proposed XFEM framework predict crack growth and stress intensity factors under thermal and mechanical loading?
- RQ3To what extent does the framework maintain numerical stability and accuracy in 3D and multi-discontinuity configurations?
- RQ4Can the integration of level-set tracking and multiphysics coupling be achieved seamlessly within COMSOL’s existing physics interface structure?
- RQ5How does the performance of the XFEM framework compare to analytical or experimental benchmarks in complex geomechanical scenarios?
Key findings
- The XFEM implementation in COMSOL successfully simulates coupled THM processes in porous rock with discontinuities, demonstrating high accuracy in both 2D and 3D settings.
- The model accurately predicts crack growth in a bi-material beam under thermal loading, showing good agreement with experimental observations.
- In a thermo-mechanical cracked plate, the results matched the exact analytical solution, validating the framework’s numerical reliability.
- The interaction integral method, implemented via COMSOL’s internal variables and integration operators, enabled accurate stress intensity factor computation with minimal user intervention.
- The framework supports complex configurations, including multiple discontinuities and thermo-mechanical contact, with consistent convergence and stability.
- The use of MATLAB-based level-set updates and built-in COMSOL functions enabled efficient preprocessing, solution, and postprocessing without custom remeshing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.