Solver
XSLOPE's finite element solver computes the factor of safety of a slope by the shear strength
reduction method (SSRM). Starting from the model the Overview describes (mesh, materials,
loads, boundary conditions and initial stress), it reduces the selected soil and joint shear strengths by a trial
factor F and iterates the model until the slope either comes to rest or shows that it cannot. A
search over F brackets the value at which the slope stops standing; that value is the factor of
safety. A single trial at a chosen F can also be run on its own, to see the stresses and
deformations at that strength. The iteration, the rules that decide a trial, the search and the
solve that draws the failure mechanism each have settings, whether the solver is run from Studio,
from a script with solve_fem() and solve_ssrm(), or from the input file.
Run settings
In Studio the settings are made in the Run FEM dialog, shown below. The table that follows lists
them in the dialog's order and gives, for each, the cell on the Excel main sheet and the argument
of solve_fem() or solve_ssrm() that sets the same thing; a dash means there is none, and
arguments that apply only to a search belong to solve_ssrm(). The table is a map of this page:
each setting links to the section that explains what it controls and how to choose it, and the
sections follow from the strength reduction method itself through a single trial, the rules
that decide it, trials at the iteration limit, jointed models, the search,
the options that shape the mechanism, the tensile cap and the
compiled kernel.

| Dialog control | Excel input | API setting | Meaning |
|---|---|---|---|
| Analysis | — | solve_fem() or solve_ssrm() |
Single trial or strength reduction search. |
| F (single) | — | solve_fem(F=) |
Strength reduction factor, default 1.0. |
| F min (SSRM) | main!D22 |
solve_ssrm(F_min=) |
Starting bracket, default 1.0. |
| F max (SSRM) | main!D23 |
solve_ssrm(F_max=) |
Starting bracket, default 2.0. |
| Tolerance (SSRM) | — | solve_ssrm(tolerance=) |
Final bracket width, default 0.01; not the displacement convergence tolerance. |
| Max iterations per trial | — | max_iterations= (both functions) |
Trial budget, default 12000. |
| Iteration ceiling | — | max_iterations_ceiling= (both functions) |
Hard limit on budget extensions, default 50000. |
| Accelerate convergence | — | accelerate= (both functions) |
Lengthen admissible iteration steps (Irons & Tuck, 1969); False runs the ordinary iteration. |
| Side BC | main!D24 |
build_fem_data() reads slope_data['side_bc']; no solve argument |
Side restraint, rollers by default. |
| K0 initial stress | main!D17 (blank disables) |
k0= (both functions) |
At-rest initialization and equilibration, off when unspecified. |
| K0 | main!D17 |
k0= (both functions) |
At-rest lateral stress coefficient; the dialog value starts at 1.0 when enabled. |
| Reduce the tensile cap with F (Tension SRF, strength reduction factor) | main!D18 |
tension_srf= (both functions) |
Reduce a stated positive tensile cap, on by default. |
| Failure criterion | — | failure_criterion= (both functions) |
Trial classification. The dialog opens on Non-convergence, or on Hybrid for a model with joints; the API default is hybrid. |
| Ignore surficial (skin) failures | — | min_slip_depth=None disables (both functions) |
Depth filter, off by default. |
| Min slip depth | — | min_slip_depth= (both functions) |
Depth below ground, in model length units. |
| SSR exclusions… | polygon sheet SSR zones; no cell for the material picker |
solve_ssrm(ssr_exclude=); ssr_zone= for a search polygon |
Hold selected regions at full strength. |
| Capture failure-state mechanism | — | solve_ssrm(capture_failure_state=) |
One at-failure solve after the search, on by default. |
| Capture margin | — | solve_ssrm(capture_margin=) |
Capture factor above FS, default 0.15 of FS. |
| Set capture iteration budget | — | solve_ssrm(capture_max_iterations=None) uses the automatic budget |
Override the capture budget. |
| Capture max iterations | — | solve_ssrm(capture_max_iterations=) |
Capture ceiling; automatic budget is max(max_iterations, 3000). |
The Studio page describes model checks, running, cancellation, continuation and result controls. For a transient seepage model, the additional Seepage time control selects the instant used for pore pressures.
Shear strength reduction method (SSRM)
The SSRM (Matsui & San, 1992; Griffiths & Lane, 1999) brackets the transition from standing to failure and narrows that bracket by bisection.
Methodology
With full-strength cohesion \(c\) and friction angle \(\phi\), each trial divides both strength components by \(F\). Write the reduced cohesion and friction angle as \(c_r\) and \(\phi_r\):
\(c_r = \dfrac{c}{F}\)
\(\tan \phi_r = \dfrac{\tan \phi}{F}\)
reducing \(\tan\phi\) rather than \(\phi\) so the scheme stays well behaved as the friction angle
approaches zero. As \(F\) rises, more Gauss points — integration points inside each element where
stress is evaluated — yield, displacements grow, and at some point the
viscoplastic iteration
stops reaching equilibrium at all. solve_ssrm() brackets that transition
and bisects it.
The figure follows that progression on the two-layer clay slope (FS = 1.223), at two trials that stand and the last one that stands. The left column shades each element's shear stress over its reduced strength, read on the largest of its three Mohr circles; orange is at the limit. The right column is the viscoplastic shear strain, on one scale for all three.

Yielding is not the same as moving. At \(F\) = 1, 13% of the elements are already at their limit, at the base of the embankment under the crest, but the soil around them has strength to spare and the largest shear strain is 0.003. At \(F\) = 1.219, 40% are at the limit, and the strain has gathered into one band from the toe, along the top of the foundation, to behind the crest: the path along which a block can slide out. Much of the soil at its limit lies inside that block and hardly strains. One step weaker, and the slope no longer comes to rest.
A bracket has a lower factor at which the slope stands and an upper factor at which it fails. Bisection tests the midpoint and replaces the appropriate end with that trial's factor, narrowing the interval until it reaches the requested tolerance. A trial that ends neither standing nor failed (undecided, see Trials that reach the iteration limit) is not counted as a failure: the bisection continues below it.
In the bracket below, L is the standing lower edge and H is the upper edge.

The arrows show which edge changes; an undecided H leaves FS as a lower bound rather than a midpoint estimate.
The starting bracket is F_min = 1.0 and F_max = 2.0. If the slope fails at F_min or
stands at F_max, the bracket auto-expands in steps of f_adjust (0.25) until it is
valid, bounded by f_min_floor (0.1), f_max_ceiling (10.0) and max_expand (20 steps each
way).
The figure below solves the Griffiths & Lane Example 1 sample at fixed factors on a deliberately coarse tri6 mesh with target element size 6:

Trials below the critical factor reach equilibrium; trials above it are still moving when stopped. The bisection brackets the change in verdict — here 1.41 on this illustration mesh (4,000 iterations per trial, fixed factor grid 0.025), against the paper's 1.4. The SSRM-1 verification row instead uses quad8 elements at target size 3.5 and 16,000 iterations per trial. The converged point at \(F = 1.40\) lies above the stopped point at \(F = 1.45\): the latter is not an equilibrium displacement. The displacement of a failing trial depends on the iteration budget it was given, which is why the bisection uses the trial's verdict (standing, failed or undecided; see SSRM failure criteria) rather than the displacement magnitude.
Elastic-plastic behavior: the viscoplastic algorithm
At a fixed trial factor, the solver reduces the material strengths and seeks equilibrium under the applied loads. The viscoplastic algorithm of Griffiths & Lane (1999) and Smith & Griffiths (2004) returns stress a Gauss point cannot carry as a body load built from accumulated viscoplastic strains. The elastic stiffness matrix is assembled and factorized once, then reused by back-substitution for every iteration of every strength reduction trial.
The yield function \(f\) measures a stress state's position relative to the surface. The figure shows the yield surface defined on the Overview.

The viscoplastic algorithm lets a Gauss point's stress go outside the surface for one iteration, measures how far outside it is (the value of \(f\)), and turns that excess into plastic strain, which brings the stress back toward the surface at the next solve. The direction of the plastic strain comes from a second function, the plastic potential \(Q\); XSLOPE takes the dilation angle \(\psi\) as zero, so \(Q\) is the Mohr-Coulomb function with \(\phi\) set to zero and the plastic flow is pure shear with no change of volume. The accumulated plastic strain is written \(\varepsilon^{vp}\).
The loop below runs at every trial factor: solve, compute stresses, check yield, accumulate viscoplastic strain, update the body load.

Each pass round the loop is one iteration.
The iteration
The stress state's position relative to the surface is measured through three invariants, which do not depend on the axes: the mean stress \(\sigma_m\), the deviatoric stress \(\bar{\sigma}\) (a measure of the shear) and the Lode angle \(\theta\) (which of the surface's six faces the state is nearest).
Stress is carried with four components \((\sigma_x, \sigma_y, \tau_{xy}, \sigma_z)\): the normal stresses along horizontal \(x\), vertical \(y\) and out-of-plane \(z\), and the in-plane shear stress \(\tau_{xy}\). Write the stress vector as \(\{\sigma\}\), total strain as \(\{\varepsilon\}\) and elastic strain as \(\{\varepsilon^{el}\}\); their \(z\) components carry superscripts \(vp\) and \(el\) for viscoplastic and elastic strain. \([D_e^4]\) is the corresponding \(4\times4\) elastic matrix. In these components \([B]\) is the strain-displacement matrix (with a zero row for the total out-of-plane strain), and \(\{u_e\}\) holds the element's nodal displacements; see Stiffness and assembly. With cohesion \(c\) and friction angle \(\phi\) at the trial's reduced strength, the tension-positive invariant form of the yield function is
\(f = \sigma_m\sin\phi + \bar{\sigma}\left(\dfrac{\cos\theta}{\sqrt{3}} - \dfrac{\sin\theta\sin\phi}{3}\right) - c\cos\phi\)
The nodal load vector is \(\{F\}\); element contributions are summed over \(e\), with area increment \(dA\). Write the numerical pseudo-time step as \(\Delta t\).
At each Gauss point, each iteration does the following:
- Total in-plane strains come from the current displacements, \(\{\varepsilon\} = [B]\{u_e\}\), and the elastic strains are \(\{\varepsilon\} - \{\varepsilon^{vp}\}\), with \(\varepsilon_z^{el} = -\varepsilon_z^{vp}\) (total \(\varepsilon_z = 0\)). Using the elastic strain rather than the total strain accounts for the stress relief already taken by plastic flow.
- The stress \(\{\sigma\} = [D_e^{4}]\{\varepsilon^{el}\}\) is reduced to the invariants \(\sigma_m\), \(\bar{\sigma}\) and \(\theta\), and the yield function is evaluated in invariant form.
- Where \(f > 0\), a viscoplastic strain increment \(\Delta\varepsilon^{vp} = f \cdot \partial Q/\partial\sigma \cdot \Delta t\) is accumulated, where \(\partial Q/\partial\sigma\) is the flow direction, the derivative with respect to stress. Close to the corners of the surface, where the flow direction is not defined, the direction is held at the corner value.
- The accumulated strains form the body-load correction \(\{F\} \mathrel{+}= \sum_{e} \int [B]^T [D_e^4] \{\varepsilon^{vp}\} \, dA\), and the system is re-solved with the existing factorization.
The figure shows a Mohr-Coulomb shear return in a two-dimensional principal-stress section.

The plastic strain flows along \(\partial Q/\partial\sigma\), while the stress is carried back toward the surface in a different direction.
The pseudo-time step \(\Delta t\) sets how much plastic strain is accumulated in one iteration.
With Young's modulus \(E\) and Poisson's ratio \(\nu\), it is a numerical parameter, not a time.
XSLOPE uses \(\Delta t = 4(1+\nu)/(3E)\), the smallest value over the model's materials, for every
trial. This is the step for numerical stability that Smith, Griffiths & Margetts (2014, Eq. 6.22,
p. 241) give for a von Mises material. Their step for a Mohr-Coulomb material (Eq. 6.23),
\(\Delta t = 4(1+\nu)(1-2\nu)/[E(1-2\nu+\sin^2\phi)]\), depends on the friction angle, and their
slope stability program (Program 6.4) evaluates it at each trial's reduced angle. XSLOPE's step
does not depend on \(\phi\), so one value serves every trial of a search. It is the smaller of the
two, and so inside the Mohr-Coulomb limit, wherever \(\sin^2\phi < 2(1-2\nu)\), which at
\(\nu = 0.3\) is any friction angle below about 63°.
Because the displacement change per iteration scales with \(\Delta t\),
the convergence tolerance and the failure criteria are calibrated to this value;
dt_scale, accepted by both solve functions, changes it and should be left at 1.
A tension cutoff runs as a second viscoplastic yield surface through the same mechanism; because it mainly affects SSRM results rather than ordinary stress analyses, it is described under Tensile strength in the SSRM.
Deciding a trial: convergence, corrector and yield check
A trial ends standing (it reached equilibrium), failed, or undecided.
The inner iteration updates stresses and loads; the outer loop below reads its results and decides the trial.

At the top, the strengths are reduced by the trial's factor F. The trial then iterates at that F; after each pass the movement, the forces and the yield state are read and the stopping rules applied. While no rule is met the iteration continues, and a trial that has spent its budget but is still slowing is given more iterations, up to the ceiling; both return arrows keep F fixed. A trial leaves the loop by one of three branches: standing, when the forces balance and the movement has stopped, or the corrector finds a balanced state; failed, when the movement runs away or keeps going to the end of the budget; undecided, when the limit comes while the trial is still slowing or its movement cannot be read, or when the forces balance but the stresses sit outside the yield envelope.
A trial has converged when both tests pass:
- Displacement settled — the displacement convergence test (Smith & Griffiths, 2004): the largest displacement change between iterations, divided by the largest current displacement, is below a tolerance:
Here \(U_i^{(k)}\) is displacement component \(i\) at iteration \(k\), and \(\text{tol}\) the displacement tolerance.
\(\dfrac{\max_i |U_i^{(k+1)} - U_i^{(k)}|}{\max_i |U_i^{(k+1)}|} < \text{tol}\)
- Force equilibrium — the criterion of Dawson, Roth & Drescher (1999): the out-of-balance force at every node, measured against that node's own weight, is below a tolerance:
Write that force residual as \(\mathbf{r}_i\), the gravitational nodal force as
\(\mathbf{f}^{grav}_i\) and the normalized tolerance as \(\tau_f\) (force_tol), with \(i\) the node index.
\(\displaystyle\max_i \dfrac{|\,\mathbf{r}_i\,|}{|\,\mathbf{f}^{\,grav}_i\,|} < \tau_f\)
The force residual is the change in the viscoplastic body load from one iteration to the next,
averaged over ten iterations (the default for oob_window) to remove a known two-iteration
oscillation. Because the residual is measured node by node against that node's own weight,
enlarging the model does not dilute it.
The displacement test alone can pass on a slope creeping toward failure, and the force test alone can stall on a slope standing still. Requiring both tests answers the first; the hybrid criterion also reads the displacements of a trial that stalls.
The defaults are \(\text{tol} = 10^{-3}\) for displacement and \(\tau_f = 10^{-3}\)
for force equilibrium, with a budget of max_iterations = 12000 per trial. A few thousand
iterations is normal well below failure, but the count climbs steeply near the critical factor
and with mesh refinement: the FEM-2 reinforced slope
reaches equilibrium at \(F = 1.25\) in
5,054 iterations at 2.5 ft element size and 16,242 at 1 ft.
A single solve at \(F = 1\) is a useful check on a submerged model: flooded ground at working strength should settle quickly with an almost elastic strain field; if it does not, check whether the loads and the boundary pore pressures disagree.
Finishing a trial with the Newton corrector
At set points in the iteration (after 300, 1,000 and 3,000 iterations, whenever the movement trend is read as dying away, and whenever the iteration-limit rules would end the trial), the solver tries to finish the trial with a Newton-Raphson solve started from the current displacements and plastic strains. From that starting point Newton-Raphson reaches equilibrium in tens of iterations where the viscoplastic loop needs thousands.
A state the corrector returns ends the trial as standing only when it passes three checks:
- Force equilibrium — the per-node normalized out-of-balance force measure is below
force_tol.- Yield — the largest Mohr-Coulomb violation anywhere in the mesh, as a fraction of the local strength, at or below \(10^{-6}\). A field can be in force balance and still carry stress the material cannot hold.
- Displacement — the largest translational displacement is no greater than a tenth of the model height by default, ignoring nodes above the minimum slip depth when that filter is set.
If any check fails, or the Newton solve does not converge, the viscoplastic loop continues from where it was, unaffected by the attempt.
The yield check
Every solved field carries an admissibility reading taken in invariant form: the largest Mohr-Coulomb violation as a fraction of the local strength, the count of Gauss points more than 1% of their strength outside the surface, the same pair for the Rankine tension surface, and the location of the worst violation. It is one pass over the Gauss points and costs no solve.
The violation is divided by the local strength, \(c\cos\phi + |\sigma_m|\sin\phi\), with a floor of \(10^{-4}\) times the largest unit weight in the model times the mesh height. Without the floor, a cohesionless point at a free surface, where both terms vanish, would show numerical noise as a large violation.
A viscoplastic state that satisfies both convergence conditions but sits more than \(10^{-2}\) of the local strength outside the yield surface does not end the trial: it is handed to the corrector, and where the corrector certifies an admissible field the trial stands on that. The force test cannot see this on its own, because the viscoplastic scheme is in force balance at every iteration and yield is what it relaxes.
The limit is looser than the corrector's \(10^{-6}\) because the viscoplastic loop stops on a displacement tolerance while still approaching the surface from outside, so a converged viscoplastic state keeps a small violation.
When the yield check ends a trial. The yield gate — the rule that ends a trial on the yield check — arms only when both readings show that the loop has stopped changing: the residual has reached a no-progress plateau — 1500 iterations without improving the lowest out-of-balance value by more than 1% — and the trailing displacements have stopped growing, as measured by the hybrid criterion's growth test. Until then, a corrector refusal leaves the trial running through its checkpoints, the runaway rule and budget, and the yield reading is taken again on the next state. Once the gate is armed, the corrector makes a final attempt. If it does not certify an admissible state, the trial ends on the yield check and remains undecided: the bisection continues below it, as for an inconclusive trial. A state that passes the check ends the trial as it otherwise would.
When a state fails the check, look first at the material at the worst violation; see Tensile strength in the SSRM.
Choosing the driver
Each trial is driven by the viscoplastic loop with the corrector and yield check (the default),
the viscoplastic loop alone, or a cold-start Newton solve; fem_solver on solve_fem() and
solve_ssrm() selects which:
'auto'(the default) — the viscoplastic loop with the corrector and the yield check described under the convergence, corrector and yield checks.'viscoplastic'— that loop on its own: no corrector, no yield check. A trial ends on ordinary convergence or the iteration-limit rules.'newton'— a cold-start Newton-Raphson solve, with restrictions for jointed models.
Setting XSLOPE_FEM_SOLVER selects the driver for a whole process. When the environment rather than
a call argument selects a non-default driver, one warning line is printed, because a shell variable
left from an earlier session otherwise changes every factor of safety in a run without any indication.
SSRM failure criteria
The trial checks describe the evidence a trial produces: whether its displacements and
forces settled, whether the corrector could certify a balanced state, whether the stresses are
admissible. A failure criterion is the rule that turns that evidence into the trial's verdict,
standing, failed or undecided, which the search then uses to move its bracket. XSLOPE offers
four. Studio's Run FEM dialog opens on Non-convergence for a model without joints and on Hybrid
for a model with joints. In Python, the failure_criterion argument of solve_ssrm() and
solve_fem() selects the criterion, and it defaults to "hybrid"; reliability_fem() and the
finite element mode of sensitivity(), design() and tornado() use "non_convergence" unless
another is passed. The first three give
each trial a verdict for the bisection; the fourth does not judge trials at all but reads the
shape of the displacement-against-\(F\) curve from a sweep.
1. Non-convergence ("non_convergence")
The classical Griffiths & Lane (1999) approach: bisection on whether the viscoplastic iteration converges. In XSLOPE "converges" means true equilibrium — both the displacement convergence test (Smith & Griffiths, 2004) and the force-equilibrium test — so the bisection brackets the genuine boundary between states that reach static equilibrium and states that creep indefinitely.
The two show in a trial's record of its largest displacement. On the two-layer clay slope, the trial at \(F\) = 1.125 levels off and reaches equilibrium in 305 iterations; the trial at the upper edge of the final bracket, \(F\) = 1.227, is still moving when its 12,000 iterations run out:

The force-equilibrium half is Dawson, Roth & Drescher's; Griffiths & Lane's own criterion is the displacement test plus an iteration ceiling, which does not separate creep from equilibrium.
Under this criterion XSLOPE reproduces Griffiths & Lane's published results; see the SSRM verification page.
2. Hybrid ("hybrid")
Under non-convergence, a trial that has not reached equilibrium by the end of its budget counts
as failed. That includes a trial whose force test stalls just above its tolerance on a slope that
has stopped moving, because a few Gauss points resting on the yield surface keep the residual from
decaying all the way to zero. The hybrid criterion, the default of solve_ssrm() and
solve_fem(), asks a second question before it accepts a
failure: does the displacement field show the slope failing? Two signals answer it, both
measured against the trial's elastic displacement (the displacement the same model would have if
nothing yielded, which every solve computes): the scale of the displacement at the end of the
trial, with \(u\) the translational displacement vector and subscript \(elastic\) denoting the
elastic solve: \(u_{ratio} = \max|u| / \max|u|_{elastic}\), and its growth over the last quarter of the
iteration history.
| Evidence | Verdict | Effect on the bisection |
|---|---|---|
| Beyond elastic scale and growing | FAILED |
Failed — same as non-convergence |
| At elastic scale and frozen | STABLE_STUCK |
Not failed: the bracket moves up |
| One signal without the other, or too little history | AMBIGUOUS |
Failed fallback, unless the trial has an undecided exit or stops at the yield gate |
The thresholds are \(u_{ratio} \le 1.25\) for "at elastic scale", \(u_{ratio} \ge 1.5\) for "beyond
it", and growth greater than 0.02 elastic displacements for "still moving". Stable-but-stuck
trials sit at 1.0–1.1 times elastic and stay there whether the budget is 10,000 iterations or
80,000; failing trials reach 4–21 times elastic and keep growing. Every trial's verdict,
\(u_{ratio}\) and growth are recorded. If the elastic displacement is smaller than \(10^{-6}\) of
the model height, the verdict is AMBIGUOUS rather than a ratio against rounding noise.
All 103 FEM benchmarks were solved under both criteria on the same mesh with the same options. No row returns a lower factor under the hybrid, and almost all are identical to the last digit: on those models the non-converged trials carry displacement evidence of failure.
| Case | Non-convergence | Hybrid | What the hybrid changes |
|---|---|---|---|
| Griffiths & Lane Example 1, SSRM-1: quad8, target size 3.5, 16,000 iterations per trial | 1.372 | 1.372 | Every non-converged trial is beyond elastic scale and still growing, so both criteria give the same verdict. |
| Rocscience RS2-62c | 0.769 | 0.769 | The \(F = 0.775\) trial is at elastic scale (\(u_{ratio} = 1.23\)) but still moving (growth 0.22). Its AMBIGUOUS verdict retains the non-convergence fallback. |
| RS2-48 baseline geotextile wall | no bracket | 0.994 | With the vendor's zero tensile cap, the stationary trials prevent non-convergence from finding a bracket before the auto-bracket reaches its floor. The hybrid brackets the same model. |
Pass failure_criterion="non_convergence" for the classical verdict; every criterion
returns the same per-trial records.
3. Displacement limit ("displacement_limit")
Bisection on whether the maximum viscoplastic displacement exceeds max_disp_factor of the mesh
height within the iteration budget. Its verdict depends on the iteration budget for a slope
that creeps slowly.
In an SSRM search, max_disp_factor is disabled under hybrid and non_convergence: it measures
movement against the mesh height, so a deeper foundation would loosen the limit.
For a standalone solve_fem() trial, the default backstop remains active even with the hybrid
criterion; passing it counts as failure without needing the elastic-displacement yardstick.
This iteration backstop is separate from the Newton corrector's final-state displacement check.
4. Displacement increase ("displacement_increase")
This criterion does not judge trials one at a time. It solves the slope at a sweep of trial
factors, plots the displacement at a chosen point against \(F\), and takes the factor of safety where
that curve turns sharply upward. Griffiths & Lane (1999) read the factor of safety this way for a
homogeneous slope and for an earth dam. The sweep figure under Methodology shows the
upturn. The
point is chosen automatically: after a coarse sweep, the node whose plastic displacement grew most
between the lowest and highest \(F\) becomes the measurement point, so the curve is read on the
mechanism rather than on background deformation that grows at every \(F\); the sweep is then refined
around the upturn. A point can be given instead with char_point=(x, y). The approach is related
to the average-residual-displacement criterion of
Sun et al. (2021).
Choosing a criterion
Studio's Run FEM dialog opens on Non-convergence for a model without joints. On a model with
joints it opens on Hybrid: a trial there often neither settles nor runs away, because the joints
keep slipping a little each iteration after the displacement field has stopped growing, and
Non-convergence counts every such trial as failed. solve_ssrm() and solve_fem() default to
hybrid on every model. On almost all of the 103 FEM benchmarks the two criteria give the same
factor of safety; see the comparison under Hybrid.
| Criterion | What decides a trial |
|---|---|
non_convergence |
Whether it reached equilibrium, both displacement and force, within its iterations; one that did not has failed. This is Griffiths & Lane's verdict with the force-equilibrium test added. |
hybrid |
The same test, and for a trial that did not reach equilibrium, its displacements: it has failed only when they are beyond elastic scale and still growing. |
displacement_limit |
Whether its displacement passes max_disp_factor of the mesh height within the iteration budget; the verdict depends on that budget. |
displacement_increase |
No trial is judged on its own: a sweep of trial factors is read where the displacement-against-\(F\) curve turns sharply upward. |
Trials that reach the iteration limit
At the iteration limit, the trend of movement over the last part of the run decides the trial. The window is five equal blocks spanning nominally half the original Max iterations per trial allowance; movement is measured in elastic displacements. Each block is one fifth of that window. The rate ratio is the geometric mean of each block's movement divided by the previous block's.
| Trend | What happens |
|---|---|
| Dying away: every block moves forward, none more than its predecessor, with a rate ratio below 0.9 | The Newton corrector is asked to finish the trial; a certified state stands. |
| Holding steady or growing: at least 0.02 elastic displacements over the window, rate ratio at least 0.9 | Failed unless the corrector certifies standing. |
| Still: under \(10^{-4}\) elastic displacements, or unclear | The hybrid criterion and the ceiling rules below decide it. |
Below max_iterations_ceiling (default 50000), a trial still dying away or unclear gets
another max_iterations worth and is read again. The reading is also taken at each block
end once the window is full (after 5,000 iterations on a jointed model), so a creeping trial can
be certified before its limit; Griffiths & Lane Example 2
at \(F = 1.34375\) was certified at 11,200 iterations.
Runaway rule. A trial at 15 times its elastic displacement and still gaining at least 0.02
elastic displacements over the last doubling of the iteration count triggers a corrector attempt;
only if it is not certified standing is the trial cut short (early_failure=False turns this off).
Inconclusive at the ceiling. A trial is still progressing if its mean out-of-balance force
over the last 500 iterations is more than 1% below that of the 500 before (a quarter of the
budget for small budgets, minimum 20). At the ceiling, such a trial, or one whose hybrid
verdict is AMBIGUOUS, is left undecided unless the corrector certifies it standing.
The bisection does not count it as failed and continues below it.
If it is still the top of the final bracket, the result is FS ≥ the standing bottom;
raise the ceiling or the per-trial budget to go further.
Continuing a run. Use solve_ssrm(fem_data, resume=result, max_iterations=N) or
Continue with a higher limit… in Studio.
Finished trials on the search path are reused and unfinished ones resume from where they stopped.
Continuation is not offered when the top trial ended on the yield check, and is not possible
for a run read back from files, because the continuation states are held only in memory.
The no-progress plateau is recorded but never ends a trial on its own; it only arms the yield gate when the trailing displacements have also stopped growing.
Jointed models
A model with joints is decided by extra rules, because a contact at its limit can keep slipping a little, or opening and closing, after the slope has come to rest. The Joints page gives them, with the solver options for jointed models.
Equilibration and running the solver
The sections above describe one trial and how it is decided. A search is a sequence of such trials: it begins by establishing the stress state every trial starts from, then runs and decides the trials, narrows the bracket until the stopping condition is met, and finally captures the failure mechanism for the figures.
In-situ equilibration
The at-rest earth-pressure coefficient \(K_0\) sets the initial lateral effective stress as a
fraction of the vertical effective stress. The full-strength equilibration described on the Overview
is returned as result['k0_equilibration']. If the slope does not stand at full strength with
that initial stress, XSLOPE warns and searches from the initial stress itself; the factor of
safety it finds is below 1.
Capturing the failure mechanism
The capture is an extra solve for the developed collapse mechanism, rather than the
near-critical settlement of the last converged trial. It runs at
\(F = \mathrm{FS}\,(1 + m)\), where \(m\) is the capture margin (capture_margin, default 0.15),
no lower than the failed bracket edge,
because right at the critical factor the collapse develops too slowly to be visible.
It runs with the corrector, displacement backstop and early exit off, with a generous iteration ceiling, starting from the softened reinforcement state of the failed edge. It stops at 20% of the mesh height or its ceiling; a numerical-growth guard can stop it sooner, keeping the last usable field.
The field is returned as failure_solution for the figures.
Turning capture_failure_state off changes neither the factor of safety, the bracket nor
last_solution.
The pair below reloads the saved fields of the W-3 report tutorial's reservoir embankment. The upper panel is the last converged field; the lower is the captured field above FS. Each is the standard deformation plot. In Studio the deformation scale is set for each plot on its own, so that the movement fills the same part of the frame whatever its size; here both fields are drawn at the same scale, 1.0×, to show how much more the captured field moves.

The captured field shows the developed mechanism. Both panels use the same scale, so their drawn movements can be compared directly.
Steering the mechanism
A strength reduction finds the weakest mechanism anywhere in the model, and that is not always the one the analysis is about: a thin, face-parallel skin can fail at a factor below the deep surface the engineer is designing against, or a mechanism can form in a stiff foundation that cannot in reality fail. Two tools keep such a mechanism out of the answer. The depth filter is for a mechanism defined by how shallow it is; exclusion zones are for one that belongs to an identifiable part of the model, a foundation, a shell, a bench.
Surficial (skin) failures and the minimum-slip-depth filter
A skin failure is a shallow slide running parallel to a frictional face. min_slip_depth
leaves nodes shallower than the stated depth out of the force and displacement readings, so a
mechanism entirely above that depth does not count as failure of the deeper slope.
Depth is measured vertically below the ground surface, in model length units.
The filter does not change strength: the shallow soil still yields. It is off by default;
set min_slip_depth= on the solve or Min slip depth in Studio.
To choose a depth, run a sweep with the filter at increasing depths and take the depth at which the factor of safety stops changing. If it keeps rising without a level, the filter may be excluding the deeper mechanism as well. For example, the RS2-66c deep-mechanism row uses a 4 m filter and reports FS = 1.094 on tri6 elements at target size 3 m with \(K_0 = 1\).
SSR search areas and exclusion zones
A material exclusion holds the named materials at full strength while the rest are reduced;
set ssr_exclude= to their exact names, or choose them with Studio's SSR exclusions…
picker. A search polygon does the opposite: reduction applies only inside it, with the rest
held at full strength; pass its vertices as ssr_zone=.
The polygon sheet's SSR zones provide the file settings:
ssr reduce defines a search area, ssr hold holds an area at full strength,
and ssr elastic keeps an area elastic. The reduced region is the union of search areas
minus the exclusions, or the whole model minus exclusions when no search area is defined.
Membership uses each element's centroid; these overlays do not change the mesh.
A run's ssr_zone takes precedence over file zones with a warning.
The returned factor of safety is conditional on these constraints; run the unconstrained case
as well. RS2's Apply SSR flag and SSR Search Area do the same; see the
RS2 verification page.
Tensile strength in the SSRM
The Mohr-Coulomb envelope is a straight line fitted to compression tests. Drawn out toward the left, into the region where the normal stress is tension, it uses compression-positive effective normal stress \(\sigma'\) and meets that axis at the tensile intercept \(\sigma'_t = -c/\tan\phi\), and that is the tension the line implies the soil can carry before it fails: an implicit tensile strength of \(c/\tan\phi\). It is an artifact of the straight line, not a measured property; real soil cracks at a small fraction of it, often at zero. For \(\phi = 0\) the line is horizontal and never meets the axis, so the implied tensile strength is unbounded.
This matters in a strength-reduction search because dividing \(c\) and \(\tan\phi\) by the same \(F\) leaves \(c/\tan\phi\) unchanged: the tensile strength a material has at \(F = 1\) it still has at \(F = 2\) (left panel below). Where the failure mechanism has to open a tension zone to form, at a steep crest, a vertical face or the head of a scarp, that unreduced tension holds the cut shut, the model reaches a true equilibrium at strengths the real slope would never survive, and the factor of safety comes out too high, with nothing in the failure criterion to show it.
With stated tensile strength \(T\), the left panel shows the original and reduced lines meeting at the same zero-shear point. The right truncates them at a stated cap: the solid cut stays at \(-T\), while the dashed cut moves to \(-T/F\) when Tension SRF is on.

Both settings reduce the shear envelope; only Tension SRF on moves the stated positive cap toward zero. The shading marks tension allowed without a cap on the left, and removed by the cap on the right.
The cap. The mat sheet's t_cut column gives a material a tensile strength \(T\).
The solver caps the most tensile principal effective stress at \(T\) as a second yield surface
alongside Mohr-Coulomb's, leaving the shear envelope unchanged.
t_cut = 0 means no tension; a blank cell means the envelope's own limit, \(c/\tan\phi\)
(unbounded for \(\phi=0\)), enforced as a cap so a state pulled into tension has a way back to
an admissible one. A cohesionless material carries no tension either way; power-curve and
Hoek-Brown materials keep the tensile strength of their own envelopes.
Overrides are tension_cap_by_elem on solve_fem(), tension_cutoff_by_material
on solve_ssrm(), and tension_cutoff for a global zero cap.
Reducing the cap with \(F\). With Tension SRF on (the default), a stated positive cap is divided
by \(F\) along with \(c\) and \(\tan\phi\); off, it stays at its entered value through the search.
With it on, the factor of safety reduces the whole stated envelope, shear and tensile.
The setting changes nothing without a positive cap: \(c/\tan\phi\) stays unchanged and zero
divided by \(F\) is zero. It matches RS2's tension-SRF switch. A joint's tension cutoff follows
the same setting (Strength reduction on the joints page).
Set it with the Tension SRF cell on the main sheet, tension_srf, or the dialog checkbox,
which is dimmed where it has nothing to act on.
An example. Both clays of the two-layer clay slope have \(\phi = 0\), so with t_cut blank the
tension they may carry is unbounded. Run that way, the slope carries tension in a skin a few feet deep along the face
and across the crest (left, at \(F\) = 1.289, the last trial that stood), up to 576 psf, more than the
embankment's cohesion of 400 psf. The Mohr circle (right) is one element there, 7 ft behind the crest and
3 ft down: it reaches the reduced strength line with \(\sigma'_3\) = −241 psf. A t_cut of 0 holds
\(\sigma'_3\) at zero or above, and the tension a point cannot carry passes to the soil around it.

With tension allowed the factor of safety is 1.293; with t_cut = 0, the sample as shipped, it is
1.223, 6% lower.
Which convention. XSLOPE's default, a blank cell and the envelope's own limit, is
Griffiths & Lane's convention, and every Griffiths & Lane verification example
is locked under it. RS2 and Plaxis state a tensile strength; Rocscience's verification models
usually use \(T=c\). The conventions are not interchangeable where tension controls the mechanism:
set t_cut from the vendor model (xslope.rs2.read_fez does this) and match its tension-SRF
switch. On RS2-62, where the cap controls the mechanism,
XSLOPE gives 0.769 with the vendor's caps against RS2's 0.81.
Fast kernel
Most of the time in a strength-reduction run goes into one small calculation, the stress update at each Gauss point, repeated for every Gauss point on every iteration of every trial. XSLOPE has two versions of it: one in Python (NumPy), which every installation has, and a compiled one in C, which shortens a typical Mohr-Coulomb search by a third to a half. The two give identical answers; every factor of safety in the verification suite is computed with the Python version, and the compiled one reproduces it exactly.
Which one you have depends on how XSLOPE was installed. The Studio installers for Mac and Windows
include the compiled version, and it is used without any setting.
Installing with pip gives the Python version only; to get the compiled one as well,
build it once with the two commands below.
fast_kernel=False on solve_fem() forces the Python version; the default, "auto",
uses the compiled one whenever it is present.
To build it locally, with a C compiler available:
pip install Cython
python setup_kernel.py build_ext --inplace
This compiles xslope/_fem_kernel next to its .pyx source; only the .pyx is tracked in the
repository.
The kernel handles the standard Mohr-Coulomb path, including the Rankine tension cutoff and the matric-suction term; it takes the \(K_0\) in-situ stress as an input, so at-rest runs accelerate like other Mohr-Coulomb runs. Curved-envelope materials (power-curve and Hoek-Brown) and all 1D reinforcement and pile work stay on the NumPy path automatically — a model that mixes them accelerates its Mohr-Coulomb groups and leaves the rest unchanged.
Running from a script
Both functions take the model from build_fem_data(); their arguments mirror the settings table
at the top of the page, and the sections above explain each.
The solve_fem() function
solve_fem() takes a FEM data dictionary from build_fem_data() and an optional strength reduction
factor, assembles and factors the stiffness once, and runs the viscoplastic loop to convergence or
to its iteration budget:
from xslope.fileio import load_slope_data
from xslope.mesh import build_mesh_from_polygons, get_material_polygons
from xslope.fem import build_fem_data, solve_fem
slope_data = load_slope_data("docs/fem/files/xslope_griffiths1.xlsx")
# quadratic elements are required for a trustworthy factor of safety
mesh = build_mesh_from_polygons(get_material_polygons(slope_data),
target_size=6, element_type='tri6')
fem_data = build_fem_data(slope_data, mesh)
solution = solve_fem(fem_data, F=1.0, debug_level=1)
if solution['converged']:
print(f"Converged in {solution['iterations']} iterations")
print(f"Max displacement: {solution['max_displacement']:.6f}")
else:
print(f"No equilibrium after {solution['iterations']} iterations "
f"({solution['exit_reason']}, verdict {solution['verdict']})")
Every argument is documented in the API reference.
The returned dictionary carries converged and stable, the verdict metadata (verdict,
u_ratio, u_growth, exit_reason), iterations, the nodal displacements and
displacements_elastic, element stresses and strains, plastic_elements, and the 1D structural
element forces — everything plot_fem_results() and export_fem_solution() need. It also carries
the yield reading (max_yield_violation, n_yield_above_1pct,
max_yield_at, yield_flagged) and, where a corrector decided the trial, the corrector record.
The solve_ssrm() function
solve_ssrm() manages the initial equilibration, the search over trial factors and the optional
failure-state capture, using the selected criterion to interpret the trial results.
from xslope.fem import solve_ssrm
result = solve_ssrm(fem_data, F_min=1.0, F_max=2.0, tolerance=0.05, debug_level=1)
if result['converged']:
print(f"Factor of Safety: {result['FS']:.2f}")
print(f"Final interval: {result['final_interval']}")
Every argument is documented in the API reference. One of them, dt_scale, scales the
pseudo-time step for diagnosis only: lowering it shrinks the residual without making the slope any
more stable, so never lower it to make a model converge.
The result dictionary carries FS, the last converged solution (last_solution),
final_interval, the per-trial records (trials), and, with capture on, failure_solution.
References
Dawson, E.M., Roth, W.H., & Drescher, A. (1999). Slope stability analysis by strength reduction. Géotechnique, 49(6), 835-840.
Griffiths, D.V., & Lane, P.A. (1999). Slope stability analysis by finite elements. Géotechnique, 49(3), 387-403.
Irons, B. M., and Tuck, R. C. (1969). A version of the Aitken accelerator for computer iteration. International Journal for Numerical Methods in Engineering, 1(3), 275–277.
Matsui, T., & San, K.C. (1992). Finite element slope stability analysis by shear strength reduction technique. Soils and Foundations, 32(1), 59-70.
Smith, I.M., & Griffiths, D.V. (2004). Programming the Finite Element Method (4th ed.). John Wiley & Sons.
Smith, I.M., Griffiths, D.V., & Margetts, L. (2014). Programming the Finite Element Method (5th ed.). John Wiley & Sons.
Sun, W., Wang, G., & Zhang, L. (2021). Slope stability analysis by strength reduction method based on average residual displacement increment criterion. Bulletin of Engineering Geology and the Environment, 80, 4367–4378.