1. Introduction
The increasing demand for underground infrastructure has intensified the need for reliable preliminary design approaches capable of evaluating stress redistribution and deformation around tunnel excavations under complex in situ stress conditions. In tunnel engineering and rock mechanics, accurate assessment of induced stresses and displacements is a fundamental prerequisite for identifying potential instability mechanisms and for guiding subsequent numerical analyses and support design strategies [
1,
2,
3].
Analytical solutions remain a cornerstone of preliminary tunnel design, particularly for circular excavations in elastic media. Among these, the classical closed-form solution proposed by Kirsch provides exact expressions for stress and displacement fields around a circular opening excavated in a homogeneous, isotropic, linear–elastic medium subjected to far-field stresses [
4]. Despite its simplifying assumptions—namely infinite-domain conditions and elastic material behavior—Kirsch’s solution continues to be widely applied for rapid evaluation, parametric studies, and verification of numerical implementations in rock mechanics and underground engineering [
2,
3,
5]. Recent analytical and semi-analytical studies published over the last decade further demonstrate the continued use of closed-form tunnel solutions for stress redistribution, stability assessment, and preliminary design benchmarking prior to numerical modeling [
6,
7,
8,
9,
10,
11].
In parallel with elastic stress analysis, tunnel stability assessment requires consideration of rock mass strength. The Generalized Hoek–Brown (GHB) failure criterion provides a widely adopted empirical framework for estimating rock mass strength based on intact rock properties and geological characterization parameters such as the Geological Strength Index (GSI) [
12,
13,
14,
15]. In preliminary design applications, the GHB criterion is commonly employed as a post-processing failure envelope against which elastic stress states are compared, enabling first-order assessment of proximity to initial yielding under elastic stress conditions [
2,
12,
16]. Recent tunnel stability studies explicitly revisiting Hoek–Brown-based analytical formulations have highlighted both the usefulness of such approaches in early design and their sensitivity to parameter uncertainty and tensile cut-off assumptions [
8]. These findings reinforce the need for careful interpretation of strength-based indicators, particularly given the empirical nature and classification dependence of rock mass strength estimation [
17].
Despite the widespread use of both Kirsch’s analytical stress solution and the generalized Hoek–Brown criterion, their combined application is often implemented in ad hoc spreadsheets or embedded implicitly within larger numerical workflows. In many cases, the linkage between elastic stress redistribution and rock mass strength evaluation is not made explicit at the level of a spatially resolved strength reserve metric. As a result, preliminary assessments may lack transparency in how proximity to initial yield is quantified under elastic assumptions. A structured integration of these classical formulations within a reproducible computational framework therefore offers practical value, particularly when used as a screening indicator prior to detailed elastoplastic modeling.
Modern tunnel design workflows increasingly rely on numerical methods, particularly finite-element modeling, to address complex geometries, boundary conditions, and nonlinear material behavior. Commercial software packages such as Plaxis2D are widely used in engineering practice for this purpose [
18]. However, their application in early design stages may preclude rapid iterative sensitivity analyses and scripted integration within reproducible computational workflows. In response, recent years have seen growing adoption of open-source and Python-based computational tools in geotechnical and rock engineering, aimed at improving transparency, reproducibility, and computational efficiency in preliminary analyses and research applications [
19].
Within this evolving digital context, there remains a limited number of lightweight, openly documented tools that integrate classical analytical stress solutions with rock mass strength assessment in a unified workflow tailored to preliminary tunnel design. This gap is particularly relevant for sensitivity studies, educational applications, and independent verification of numerical models. Recent analytical and semi-analytical investigations have reaffirmed the continued relevance of closed-form and strength-based tunnel formulations for preliminary stability evaluation and benchmarking of numerical models. Contemporary studies revisiting Hoek–Brown-based tunnel stability formulations have highlighted both the practical value and limitations of analytical strength assessments, particularly with respect to tensile cut-off assumptions and parameter sensitivity [
8]. In parallel, hybrid analytical–numerical investigations continue to employ closed-form stress solutions as reference baselines for evaluating support parameters, stress redistribution patterns, and convergence behavior prior to full numerical modeling [
9,
10,
11,
20]. These works demonstrate that classical analytical solutions remain an essential component of modern tunnel design workflows, particularly during early-stage assessment and model verification.
The objective of this study is to develop and document a lightweight, modular Python-based computational framework that integrates classical analytical stress solutions with empirical rock mass strength assessment within a single, transparent workflow. Rather than proposing new constitutive formulations, the contribution of this work lies in the explicit integration of classical analytical stress solutions with rock mass strength evaluation into a transparent, spatially resolved computational workflow. This integration enables systematic identification of strength reserve distribution around the excavation boundary under clearly defined elastic assumptions.
The framework is structured to enable scripted parametric evaluation through systematic variation of input parameters (e.g., stress ratio, tunnel radius, depth, and rock mass properties) within a reproducible and extensible codebase. Sensitivity exploration in this context refers to deterministic parameter sweeps and batch evaluations, rather than probabilistic uncertainty quantification, allowing rapid identification of governing parameters and trends during preliminary design.
This modular architecture facilitates repeatable analyses, transparent result generation, and straightforward extension toward more advanced uncertainty or coupling frameworks, while maintaining exact analytical traceability of the elastic solution.
The analytical implementation is verified against the closed-form Kirsch expressions, and selected results are compared with finite-element simulations performed in Plaxis2D under equivalent elastic assumptions to provide contextual consistency with established numerical workflows.
2. Materials and Methods
For the purpose of this study, a computational tool named RockStressCalc was developed to perform elastic stress–displacement analysis around circular underground openings and to evaluate rock mass strength using empirical failure criteria, including deformation modulus relationships proposed by Hoek and Diederichs [
21]. The computational framework was implemented in PyCharm Community Edition *Version 2023.3.3), utilizing NumPy (version 1.21.2) for vectorized stress and strength calculations, Matplotlib (version 3.4.3) for spatial visualization of stress and displacement fields, Pandas (version 1.3.3) for structured data handling, and Tkinter (version 8.6.11) for the graphical user interface (GUI) [
22,
23,
24].
The program architecture follows a modular workflow separating elastic stress–displacement computation from rock mass strength evaluation.
Figure 1 presents a simplified flowchart illustrating the two principal calculation branches:
- (i)
elastic stress and displacement analysis based on Kirsch’s closed-form solution, and
- (ii)
rock mass strength assessment based on the generalized Hoek–Brown criterion.
Figure 1.
Simplified flowchart of RockStressCalc.
Figure 1.
Simplified flowchart of RockStressCalc.
2.1. Operation Mode
RockStressCalc is a standalone desktop application developed in Python for analyzing secondary stresses and displacements around circular underground openings, such as hydraulic tunnels or access drifts. The program assumes a homogeneous, isotropic, linear–elastic rock mass and is intended for preliminary design, sensitivity analysis, educational use, and independent verification of numerical models, rather than detailed plasticity-based design [
1,
2,
3].
Elastic stress and displacement calculations, and rock mass strength evaluation, are treated as logically independent processes, which are subsequently coupled through a stress-based stability indicator. Results can be displayed in tabular form or visualized using contour plots and line diagrams.
The modular structure of RockStressCalc allows elastic stress–displacement computation and rock mass strength evaluation to be executed independently and recombined programmatically. This design enables scripted parameter sweeps (e.g., variation in GSI, in situ stress ratio, tunnel radius, or depth) and reproducible sensitivity exploration without manual reconfiguration of model geometry or boundary conditions. Such automation distinguishes the proposed workflow from spreadsheet-based calculations and GUI-driven numerical tools, where systematic parametric studies are typically labor-intensive and less reproducible.
A stability factor (SF) is computed as a dimensionless comparative indicator, defined as the ratio of the rock mass strength predicted by the Hoek–Brown criterion to the elastic stress state obtained from Kirsch’s solution at a given observation point. This indicator is not a formal factor of safety, but rather a relative measure of proximity to failure under elastic assumptions.
2.2. Input Data for Calculation of Stresses and Displacements
All stress and displacement calculations are performed under a plane strain assumption, consistent with an infinitely long circular tunnel excavated in a homogeneous, isotropic, linear–elastic rock mass [
2,
3,
5].
Figure 2 summarizes the input parameter groups and computational workflow used exclusively for the elastic stress and displacement calculations based on Kirsch’s solution. Throughout this study, compressive stresses are considered positive, in accordance with standard rock mechanics convention [
2,
3].
Vertical in situ stress is defined as:
where
is the unit weight of the rock mass and
is the depth of the tunnel axis below the ground surface. The program also allows the user to directly specify
to account for nonlithostatic stress conditions commonly encountered in deep tunneling.
The ratio of horizontal to vertical far-field in situ stress is defined using the standard tunneling notation
:
Elastic stress redistribution around the circular excavation is computed using Kirsch’s closed-form solution for anisotropic far-field stress conditions [
4]. The radial stress
, tangential stress
, and shear stress
at a point
are expressed as
where
σv—vertical stress (MPa),
σh—horizontal stress (MPa),
R—excavation radius (m),
r—radial distance from the center of the excavation (m),
θ—angle in the polar coordinate system (°),
k—lateral pressure coefficient representing the ratio of far-field horizontal to vertical in situ stress (σh/σv), applied uniformly in the Kirsch stress formulation,
γ—unit weight of the rock mass (MN/m3),
z—depth of the tunnel axis below ground surface (m).
The major and minor principal stresses are obtained from the radial, tangential, and shear stress components using standard stress transformation relations, as expressed in Equations (6) and (7):
where
σ1—major principal stress (MPa),
σ3—minor principal stress (MPa),
σr—radial stress (MPa),
σθ—tangential stress (MPa),
τrθ—shear stress (MPa).
The radial and tangential displacements are calculated using Equations (8) and (9), assuming isotropic, linear–elastic material behavior, small deformations, and plane strain conditions.
where
ur—radial displacement (m),
uθ—tangential displacement (m),
ν—Poisson’s ratio of the rock mass (–),
G—shear modulus of the rock mass (MPa), defined as .
2.3. Input Data for Calculation of Strength
Referring to
Figure 1, which shows the simplified flowchart of the RockStressCalc program,
Figure 3 presents a more detailed diagram of the strength calculation process. The strength criterion applied is the generalized Hoek–Brown criterion. Using input values such as the Geological Strength Index (GSI), uniaxial compressive strength of intact material (
σci), material constant (
mi), and disturbance factor (
D), the program calculates some of the strength parameters. The failure envelope is evaluated over a defined range of minor principal stresses.
The generalized Hoek–Brown criterion is expressed through Equations (10)–(13).
where
σ1′—major principal effective stress at the point of failure (MPa),
σ3′—minor principal effective stress at the point of failure (MPa),
σci—uniaxial compressive strength of intact rock (MPa),
mb—rock mass constant derived from mi,
mi—material constant for intact rock,
s, a—material constants (depend on the characteristics of the rock mass),
GSI—Geological Strength Index,
D—disturbance factor for the rock mass.
Values of the intact rock constant
are typically selected from published tables based on lithology (e.g., [
12,
14]). Additionally, it is necessary to define the applicable stress range of the criterion and specify the limiting value of the minor principal stress σ
3′ used in strength evaluation. The user may define this value as a user-specified constant, adopt a general formulation (as in Equation (14)), or apply a tunneling-specific limit (as defined by Equation (15)). The general value is obtained by applying
σ3′ = 0 in Equation (10).
Finally, one of three empirical formulations for estimating the rock mass deformation modulus can be selected. The widely adopted empirical relationships proposed by Hoek and Diederichs [
21] provide the deformation modulus as a function of intact rock strength and Geological Strength Index (GSI). The deformation modulus is calculated using Equation (16) or alternatively using Equations (17) and (18), following Hoek and Diederichs [
21].
According to Hoek and Diederichs [
21], the deformation modulus of the rock mass is determined as:
where
Erm—deformation modulus of the rock mass (MPa),
σci—uniaxial compressive strength of the intact material (MPa),
Based on extensive laboratory and field data, Hoek and Diederichs [
21] also proposed two alternative formulations for calculating the deformation modulus. Equation (17) is recommended when the value of GSI (or RMR or Q) is known, whereas Equation (18) is applied when the intact deformation modulus or intact rock strength is available.
where
Ei—intact modulus of deformability (MPa),
The intact modulus of deformability is estimated using Equation (19), where
is the modulus ratio (dimensionless) adopted from empirical correlations [
21]. The analytical approach does not account for excavation damage zones, time-dependent behavior, anisotropy, or support pressure, and is intended for first-order assessment and comparative analysis.
where
MR—modulus ratio.
2.4. Definition of the Stability Factor
To couple the elastic stress field obtained from Kirsch’s solution with the rock mass strength envelope defined by the generalized Hoek–Brown criterion [
13,
14], a stress-based stability indicator was introduced.
At each spatial location
, the major and minor principal stresses
and
are first computed using Equations (6) and (7). The corresponding rock mass strength under the same confinement level is then obtained from the generalized Hoek–Brown criterion:
where tensile confinement is not permitted and
in accordance with common tension cut-off practice for rock masses [
8,
13].
The local Stability Factor (SF) is defined as:
where compressive stresses are taken as positive.
Values of indicate that the elastic stress state lies below the Hoek–Brown failure envelope at the considered point, whereas corresponds to first yield under elastic stress conditions. Values imply that the elastic stress state exceeds the strength envelope and that plastic yielding would be expected if nonlinear behavior were permitted.
Because the elastic solution does not account for stress redistribution following yield, excavation damage, or support interaction, the Stability Factor should be interpreted strictly as a preliminary elastic strength reserve ratio rather than a formal design factor of safety. For engineering interpretation, the minimum Stability Factor within a near-field region extending to three tunnel radii (
) is reported:
This restriction avoids artificial dominance of far-field values and focuses evaluation on the stress concentration zone relevant to excavation stability.
2.5. Validation Procedure and Error Quantification
To evaluate the numerical consistency of the analytical implementation, selected stress and displacement results obtained from RockStressCalc were compared with finite-element simulations performed in Plaxis2D (version 2025) under equivalent linear–elastic, plane strain conditions.
Comparison was conducted at identical geometric locations corresponding to normalized radial positions (r/R) and selected observation angles (θ = 0° and θ = 90°). Because RockStressCalc follows the rock mechanics convention of compressive stresses being positive, while Plaxis2D may adopt different coordinate orientations and sign conventions, comparisons were performed using magnitudes of the reported quantities.
The relative difference between the analytical result
(RockStressCalc) and the numerical result
was calculated as:
where
represents the evaluated stress or displacement component.
This formulation ensures that the comparison reflects absolute numerical deviation while avoiding artificial discrepancies arising from differing sign conventions. The calculated relative differences are reported in
Section 3 for principal stresses and radial displacements at the excavation boundary and selected observation points.
3. Results
To verify the accuracy of the calculation results obtained using the RockStressCalc program, a comparison was made with results from the geotechnical software Plaxis2D, which is based on the finite-element method. Both analytical and numerical calculations were performed under plane strain conditions, which are appropriate for infinitely long tunnel sections. In this work, secondary stresses refer to the elastic stress redistribution induced by tunnel excavation, excluding the initial in situ stress field. The following sections will separately present parts of the calculation related to secondary stresses and the strength criterion.
Table 1 displays the input parameters used in both programs, which were used to validate the accuracy of the solutions.
The validation parameters summarized in
Table 1 were not selected to reproduce a specific constructed project, but rather to represent a typical shallow circular tunnel excavated in a moderately fractured rock mass.
The adopted parameter set (GSI = 70, σci = 75 MPa, k = 0.4, tunnel depth z = 50 m, tunnel radius R = 5 m) corresponds to medium-strength sedimentary or moderately jointed crystalline rock masses commonly encountered in transportation and hydraulic tunnel projects at shallow to intermediate depth.
The selected configuration ensures:
non-hydrostatic far-field stress conditions (k ≠ 1),
measurable stress concentration at the excavation boundary, and
realistic displacement magnitudes under linear–elastic assumptions.
This parameter combination therefore provides a physically meaningful and technically representative benchmark for validating the analytical implementation against finite-element results, while avoiding extreme stress states or near-failure conditions that would violate the elastic assumptions of the Kirsch formulation.
3.1. Validation of Stresses and Displacements
Validation of the analytical stress and displacement fields was performed at observation angles of θ = 0° (sidewall direction) and θ = 90° (crown direction). These orientations correspond to symmetry axes of the far-field principal stresses and represent locations of maximum and minimum stress concentration in the Kirsch solution.
For comparison, excavation-induced stresses obtained from Plaxis2D were extracted at nodal locations nearest to the analytical normalized radial positions (
r/
R). The input parameters used in RockStressCalc for validation at
θ = 0° are summarized in
Table 2, and the corresponding finite-element mesh and observation locations in Plaxis2D are shown in
Figure 4.
Due to differences in coordinate system orientation and sign convention between RockStressCalc and Plaxis2D, comparisons were performed using magnitudes of the reported stress and displacement quantities. Relative differences were calculated according to the procedure described in
Section 2.5.
Displacement comparison is based on the radial displacement component
obtained from RockStressCalc and the total displacement magnitude
extracted from Plaxis2D at the corresponding nodal locations. Under the considered symmetric observation angles (
θ = 0° and
θ = 90°), the tangential displacement component is identically zero (
). Consequently, the total displacement magnitude reduces to:
which ensures direct and physically consistent comparability between the analytical and numerical results at these locations.
Because Plaxis2D employs a dense finite-element mesh while the analytical formulation yields values at discrete normalized radial distances, the nearest nodal values were selected for comparison. The resulting stress and displacement differences are presented and discussed in the following subsections.
3.1.1. Case θ = 0°
Figure 5a–c show contour diagrams of secondary stresses from RockStressCalc, while
Figure 6 presents a line diagram of secondary stresses.
Figure 7a,b show the contour diagrams for major and minor principal stresses. For comparison,
Figure 8 presents the major principal stress obtained from Plaxis2D.
Table 3 provides the stress values obtained from RockStressCalc. At the excavation boundary (
r/
R = 1.0,
θ = 0°), RockStressCalc predicts a major principal stress of
σ1 = 2.86 MPa. The corresponding value extracted from Plaxis2D (
Figure 8) is
= −2576 kN/m
2, which corresponds to −2.576 MPa after unit conversion.
Using the magnitude-based metric defined in Equation (24), the relative difference at the excavation boundary is 9.93%.
This deviation reflects the fundamental difference between the infinite-domain assumption inherent in the Kirsch solution and the bounded computational domain of the finite-element model. In particular, contour-based extrema extracted from FEM post-processing are sensitive to nodal interpolation and boundary placement, whereas the analytical solution provides exact pointwise values.
Table 4 presents the radial displacement values (u
r) computed using RockStressCalc for θ = 0°. The results are reported in SI units (m) and additionally converted to millimeters (mm) for improved readability.
Figure 9 shows the radial displacement (u
r) as a function of normalized radial distance (r/R). The axes are explicitly annotated as:
Normalized radial distance, r/R (−),
Radial displacement, ur (mm).
Figure 9.
Radial displacement (ur) vs. normalized distance (r/R), θ = 0°—RockStressCalc.
Figure 9.
Radial displacement (ur) vs. normalized distance (r/R), θ = 0°—RockStressCalc.
The corresponding total displacement magnitude (|u|) obtained from Plaxis2D at the matching nodal locations is shown in
Figure 10.
At the excavation boundary (r/R = 1.0), RockStressCalc predicts |ur| = 0.000063 m, while Plaxis2D yields |u| = 0.00006447 m. Using magnitude-based comparison to avoid sign-convention artifacts from Equation (24), the relative difference is 2.33%.
This level of agreement is considered satisfactory for preliminary elastic tunnel analysis. The minor discrepancy is primarily attributed to finite-boundary effects inherent in the numerical model. While the analytical Kirsch solution assumes an infinite domain, the finite-element model necessarily employs a bounded computational domain with constrained far-field boundaries. Displacement predictions are inherently more sensitive to boundary placement than stress values, which explains the slightly larger deviation observed for displacements.
3.1.2. Case θ = 90°
The stress distributions obtained for
θ = 90° are consistent with the expected symmetry and with the stress patterns previously shown in
Figure 5a–c,
Figure 7 and
Figure 8. The corresponding line diagram of secondary stresses is presented in
Figure 11, and the numerical stress values are summarized in
Table 5.
Table 6 presents the radial displacement values (
ur) computed using RockStressCalc for
θ = 90°. As in the previous case, the tangential displacement component is zero due to symmetry (
uθ = 0).
Figure 12 illustrates the radial displacement (
ur) versus normalized radial distance (
r/
R) following the standardized plotting convention adopted in this study.
In Plaxis2D, the total displacement magnitude (|
u|) was extracted at the node closest to the tunnel crown (
θ = 90°). The corresponding displacement distribution is shown in
Figure 13.
At r/R = 1.0, RockStressCalc predicts |ur| = 0.000814 m, whereas Plaxis2D reports |u| = 0.0007836 m. Using a magnitude-based comparison to avoid sign-convention artifacts from Equation (24), the relative difference is 3.73%.
As in the θ = 0° case, this deviation is attributed to finite computational domain effects and boundary stiffness conditions in the finite-element model. Stress distributions near the excavation remain less sensitive to boundary placement, whereas displacement predictions exhibit greater sensitivity to far-field constraints.
Across both principal observation directions, displacement discrepancies remain below 4%, confirming that the analytical implementation reproduces the finite-element response with high fidelity under linear-elastic assumptions.
Table 7 presents the values of radial and tangential stresses in the tunnel crown (90°) and wall (0°), with
Figure 14a,b showing line diagrams of stresses for the selected points.
3.2. Validation of Strength
During the validation of the strength criterion, the consistency of the Hoek–Brown strength parameters and derived rock mass strength properties was evaluated by comparing RockStressCalc and Plaxis2D.
Table 8 presents the input parameters and calculated strength-related values obtained using RockStressCalc, while the corresponding failure envelope is shown in
Figure 15. A comparison of these results with those from Plaxis2D (
Figure 16) indicates that the derived Hoek–Brown parameters and associated rock mass properties are in good agreement between the two programs.
When comparing compressive- and tensile-strength-related quantities, differences in sign may arise due to differing coordinate system orientations and sign conventions adopted in the two programs. Therefore, comparisons are performed based on the magnitudes of the reported quantities.
In conclusion, the comparison indicates that the derived Hoek–Brown strength parameters and corresponding rock mass strength properties obtained from both programs agree within approximately 10% under the adopted idealized conditions, including homogeneous and isotropic material behavior, plane strain conditions, infinite-domain assumptions, and idealized tunnel geometry. While the preceding comparison confirms consistency of the implemented Hoek–Brown parameters and derived strength quantities, it does not evaluate global collapse behavior under progressive strength reduction. For this purpose, an additional validation based on the strength reduction method was performed, as described in the following subsection.
3.3. Validation of Global Stability (Strength Reduction Comparison)
In addition to the pointwise validation of stress redistribution and strength parameters, a global stability assessment was performed using the strength reduction procedure implemented in Plaxis2D. In this method, the shear strength parameters are progressively reduced until numerical non-convergence occurs, yielding a global strength multiplier (ΣMsf), which is commonly interpreted as the collapse safety factor of the modeled system.
For the validation case defined in
Table 1, the strength reduction analysis in Plaxis2D produced:
To ensure a physically consistent comparison, the analytical far-field Stability Factor was evaluated in RockStressCalc under identical in situ stress and Hoek–Brown strength conditions. The far-field Stability Factor is defined as:
where
and
correspond to the principal stresses in the undisturbed far-field stress state, prior to excavation-induced stress concentration.
The analytical evaluation produced:
The relative difference between the analytical far-field Stability Factor and the numerical strength reduction factor is 9.78%. This level of agreement is considered satisfactory, given:
discretization effects inherent to finite-element modeling,
finite-boundary representation in the numerical domain, and
the conceptual difference between the infinite-domain analytical solution and the finite-element implementation.
The strength reduction curve (Σ
Msf versus displacement magnitude |u|) was monitored at representative nodes corresponding to
θ = 0° (sidewall) and
θ = 90° (crown). The nearly identical convergence values obtained at both locations confirm that the strength reduction multiplier represents a global system instability, rather than a localized pointwise elastic strength ratio. The corresponding curve is provided in the
Supplementary Materials (Figure S1).
It is important to emphasize that the far-field Stability Factor is conceptually comparable to the Plaxis strength reduction multiplier under uniform far-field stress conditions, because both quantities represent global strength-to-stress ratios evaluated under homogeneous stress states. In contrast, the minimum Stability Factor reported in
Section 2.4 (SF
min ≈ 2.69) reflects local excavation-induced stress concentration near the tunnel boundary (
Figure 17) and is therefore not directly comparable to the global collapse multiplier obtained from the strength reduction analysis.
The close agreement between ΣMsf and SF∞ confirms the internal consistency of the implemented Hoek–Brown formulation and supports the validity of the analytical strength evaluation under linear-elastic assumptions.
4. Discussion
The results presented in this study demonstrate that RockStressCalc reliably reproduces classical analytical solutions for stress redistribution and displacement around circular underground openings while maintaining close agreement with finite-element results obtained using Plaxis2D. The discussion below addresses (i) the physical interpretation of the stress and displacement response, (ii) the quantitative agreement between analytical and numerical solutions, (iii) the interpretation of the proposed Stability Factor in the context of both local and global behavior, and (iv) the practical applicability and limitations of the developed framework.
4.1. Interpretation of Stress and Displacement Behavior
The stress redistribution patterns obtained using RockStressCalc are fully consistent with the classical Kirsch solution for a circular opening excavated in a homogeneous, isotropic, linear-elastic medium. Radial stresses approach zero at the excavation boundary, while tangential stresses reach their maximum magnitude at the tunnel wall, particularly at the crown and sidewalls, depending on the in situ stress ratio. These trends are physically expected and reflect the stress concentration induced by excavation under nonhydrostatic far-field stress conditions.
The observed symmetry of stress and displacement fields at observation angles of 0° and 90° arises from the orthogonality of these directions with respect to the principal far-field stress axes. Under such conditions, the Kirsch solution exhibits symmetric behavior along these directions, whereas asymmetry would be expected for arbitrary observation angles when the lateral pressure coefficient deviates from unity.
Displacement magnitudes decay rapidly with increasing radial distance from the excavation boundary, reflecting the elastic response of the surrounding rock mass and the absence of plastic yielding or damage zones in the adopted material model. This behavior is consistent with theoretical expectations for plane strain conditions in an infinite elastic domain [
2,
3,
4,
5].
4.2. Quantitative Comparison with Finite-Element Results
The comparison between RockStressCalc and Plaxis2D demonstrates strong quantitative consistency under linear-elastic assumptions. At the excavation boundary (r/R = 1.0), the maximum relative difference in major principal stress was 9.93%, while displacement discrepancies remained below 4%.
Away from the boundary, stress values progressively converge towards the far-field state, and agreement improves accordingly. The observed discrepancies are primarily attributed to finite-domain representation and nodal interpolation in the finite-element model.
The slightly larger relative discrepancy observed in displacement compared to stress can be attributed primarily to boundary effects inherent in finite-element modeling. While the analytical Kirsch solution assumes an infinite domain, the Plaxis2D model necessarily employs a finite computational domain with fixed or constrained far-field boundaries. Displacement results are particularly sensitive to the location and stiffness of these boundaries, whereas stress distributions near the excavation are less affected provided the model domain is sufficiently large. Consequently, displacement comparisons are expected to exhibit greater sensitivity to numerical boundary conditions than stress comparisons.
It should be emphasized that the verification presented in this study is restricted to idealized linear-elastic conditions in both RockStressCalc and Plaxis2D, and therefore does not address common nonlinear behaviors such as brittle–ductile transition, strain softening, dilatancy, or progressive failure in jointed rock masses. Under such conditions, the stress–strain response, plastic zone development, and support interaction are governed by constitutive models that are fundamentally beyond the scope of the Kirsch-based elastic formulation implemented here, and the present comparison cannot be interpreted as validation for inelastic tunnel response.
4.3. Interpretation of the Stability Factor
The Stability Factor introduced in this study is a stress-based, dimensionless indicator defined as the ratio of rock mass strength derived from the generalized Hoek–Brown criterion and the induced elastic stress state at a given observation point. It is explicitly not intended to represent a formal design factor of safety, which would require consideration of construction sequence, support interaction, post-yield redistribution, and time-dependent behavior.
Conceptually, the proposed Stability Factor corresponds to a local strength-to-stress ratio evaluated under elastic conditions. Similar quantities are often referred to in the literature as strength reserve ratio or yield ratio. The contribution of this work does not lie in redefining this mechanical concept, but in integrating Kirsch-based stress redistribution and Hoek–Brown strength evaluation within a consistent analytical workflow for spatially resolved assessment.
The distinction between local and global stability measures is essential. The minimum Stability Factor reported near the excavation boundary (SF_min ≈ 2.69 for the validation case) reflects local excavation-induced stress concentration under purely elastic assumptions. In contrast, the global strength reduction multiplier obtained from Plaxis2D (ΣMsf ≈ 9.2) corresponds to a collapse multiplier derived from progressive strength reduction across the entire domain.
The close agreement between the analytical far-field Stability Factor (SF_∞ ≈ 10.10) and the numerical strength reduction multiplier confirms that, under uniform far-field conditions, both approaches represent comparable global strength-to-stress ratios. However, the local reduction in Stability Factor near the excavation boundary quantifies excavation-induced concentration effects that are not directly represented by a single global multiplier.
In its present form, the Stability Factor is strictly applicable to the idealized assumptions adopted in this study: homogeneous, isotropic, linear-elastic rock mass under plane strain. Significant spatial heterogeneity in strength or stiffness, as well as mechanical anisotropy (e.g., foliated or laminated rock masses), may induce stress redistributions not captured by the elastic Kirsch formulation. Under such conditions, the Stability Factor should be interpreted only as a qualitative screening indicator.
From a practical perspective, SF values modestly above unity (e.g., SF ≈ 1–1.5) may indicate proximity to initial yield and therefore justify more detailed elastoplastic modeling. Substantially larger values (e.g., SF > 2–3) are more consistent with comfortably elastic behavior within the assumed model. These indicative ranges should not be interpreted as universal design thresholds, but rather as preliminary screening criteria that must be supplemented by project-specific numerical modeling and empirical judgment.
4.4. Practical Applicability of RockStressCalc
The primary strength of RockStressCalc lies in its transparency, computational efficiency, and direct connection between analytical stress redistribution and rock mass strength evaluation. The software is particularly suitable for preliminary tunnel assessment, educational use, parametric studies, and independent verification of numerical analyses.
The default 6 m visualization range for line diagrams allows detailed examination of the near-field region, where stress and displacement gradients are most pronounced. This focus is especially relevant when interpreting the minimum Stability Factor, which reflects excavation-induced stress concentration rather than global strength reduction. For typical small-diameter tunnels, a 6 m range corresponds to several tunnel radii and encompasses the principal stress concentration zone in which Kirsch stresses decay nonlinearly. This approach is consistent with the mesh refinement typically applied near excavation boundaries in finite-element models, enabling meaningful visual and numerical comparison [
4,
5].
Because the program is implemented in Python, it can readily support systematic parameter studies involving variability in rock mass properties (e.g., GSI, material constants, or in situ stress ratios). The scripting-based structure also facilitates potential extension toward uncertainty analyses within the same computational framework. The present study, however, focuses exclusively on deterministic elastic validation.
The analytical framework adopted in this study is intentionally restricted to a circular cross-section in a homogeneous, isotropic, linear-elastic rock mass, providing a clear reference model. While more advanced analytical and numerical approaches can address complex geometries, staged excavation, and three-dimensional effects, RockStressCalc is not intended to replace such methods. Instead, it provides a transparent analytical baseline that can complement more sophisticated models in later design stages.
Modern finite-element software remains essential for detailed analysis of nonlinear behavior, support interaction, and complex geometries. The purpose of the present tool is therefore not to substitute comprehensive numerical modeling, but to offer a transparent and reproducible analytical framework suitable for preliminary assessment and verification tasks.
Accordingly, the proposed analytical workflow and associated Stability Factor are not a substitute for full elastoplastic or viscoplastic analyses when brittle–ductile transition, strain softening, or other nonlinear behaviors are expected. In such situations, RockStressCalc should be used as an elastic reference solution alongside dedicated nonlinear numerical models.
4.5. Limitations and Scope of Applicability
The analytical approach adopted in this study is subject to inherent limitations associated with its simplifying assumptions. The formulation assumes a homogeneous, isotropic, linear-elastic rock mass under plane strain conditions and does not explicitly account for excavation damage zones, anisotropy, time-dependent behavior, groundwater interaction, or support pressure.
Consequently, RockStressCalc should not be considered a substitute for advanced elastoplastic numerical modeling in complex geological settings. Instead, it provides a transparent analytical reference solution suitable for preliminary assessment and for evaluating the consistency and plausibility of more sophisticated numerical simulations.
The Stability Factor introduced in this framework should therefore be regarded as a preliminary elastic index. Its reliability decreases in heterogeneous, anisotropic, or structurally complex rock masses, where stress redistribution mechanisms extend beyond the assumptions of the elastic Kirsch formulation.
Furthermore, the present study does not aim to reproduce a specific field case or project-scale tunnel scenario with full geotechnical documentation. The validation example was intentionally formulated as a controlled reference configuration under clearly defined elastic assumptions. The primary contribution of the proposed framework lies in the integration of analytical methods and computational transparency, providing an explicitly traceable elastic reference state and a spatially resolved strength-to-stress comparison suitable for preliminary screening and independent verification of finite-element implementations within hierarchical tunnel design workflows. The principal modeling assumptions and their implications are summarized in
Table 9.
4.6. Sensitivity to Deformation Modulus Formulation
For the validation case (GSI = 70, σci = 75 MPa, D = 0.8, MR = 500), the three empirical formulations for the rock mass deformation modulus yield the following values:
16,424 MPa (Equation (16)),
10,988 MPa (Equation (18)),
5607 MPa (Equation (17)).
Because radial displacement is inversely proportional to the shear modulus , and therefore to the rock mass deformation modulus (see Equations (8) and (9)), the predicted excavation-boundary displacement varies proportionally with the selected formulation. For the tunnel crown (r/R = 1.0, θ = 90°), the displacement ranges from:
0.545 mm (Equation (16)),
0.814 mm (Equation (18)),
1.596 mm (Equation (17)).
Using Equation (18) as the reference formulation, the relative deviation in predicted displacement spans approximately −33% to +96%.
This quantitative comparison demonstrates that the selection of deformation modulus formulation can induce nearly a twofold variation in predicted displacement magnitude for the same geological input parameters. The observed spread reflects the empirical nature of deformation modulus correlations and their sensitivity to disturbance factor and rock mass classification parameters.
Importantly, stress redistribution obtained from Kirsch’s solution and the derived Stability Factor remain unaffected by the choice of deformation modulus formulation, as they depend exclusively on the elastic stress field and strength parameters rather than on deformability. The sensitivity therefore pertains strictly to displacement prediction under elastic assumptions.