Transient Seepage in XSLOPE
The steady seepage analysis gives the flow field once it has settled. Many slope-stability problems are governed by conditions that are still changing: a reservoir drawn down over days, a storm that falls and stops, an embankment shedding excess pore pressure over weeks. In each case the pore pressures that drive stability depend on when the slope is examined.
A transient analysis solves the same finite-element flow problem repeatedly through time, marching a head field forward from an initial condition under boundary conditions that vary on a prescribed schedule, and storing the pore-pressure field at a series of saved times. Any one of those frames can feed a limit-equilibrium or finite-element stability analysis exactly as a steady solution does, and two of them together drive a rapid-drawdown calculation.

The phreatic surface in an earth dam through a reservoir drawdown, at successive saved times against the pool level at each (dotted). The water table lags the pool, most of all in the low-conductivity core, so the result depends on which instant is analyzed.
An analysis becomes transient when the input file carries a filled-in tseep sheet and the materials carry storage properties. With no tseep sheet the analysis is steady and the results are bit-for-bit those of the Overview; the transient calculation is separate and does not change the steady solve.
Transient runs can also be launched point-and-click in XSLOPE Studio — see Studio below.
Formulation
The steady equation balances the divergence of the Darcy flux against any distributed source, with no accumulation term: whatever flows into a control volume flows straight back out. A transient problem removes that restriction. When the head at a point changes, the water content of the surrounding soil changes with it, and the rate at which water is stored or released enters the continuity balance:
\(\nabla \cdot (k_r(\psi)\,[K]\,\nabla h) + Q = \dfrac{\partial \Phi(\psi)}{\partial t} = S(\psi)\,\dfrac{\partial h}{\partial t}\)
\(\Phi(\psi)\) is the water a unit volume of soil holds at pressure head \(\psi\), measured from saturation, and its slope \(S(\psi) = d\Phi/d\psi\) is the storage coefficient — specific storage where the soil is saturated, the specific moisture capacity of the retention curve where it is not (see Storage properties). \(Q\) is any distributed source. Because elevation does not change with time, \(\partial\psi/\partial t = \partial h/\partial t\) and the two right-hand sides are equal. Setting \(S = 0\) recovers the steady equation, so the transient solver is a strict generalization of the steady one.
The two forms stop being equal once time is cut into steps. Over a step the head form stores \(S\) times the head change, with \(S\) taken at one instant, and \(S\) changes by orders of magnitude where the water table passes: that product is not the water the soil actually takes up, and a run built on it gains or loses water step by step. XSLOPE discretizes the first form, the mass-conservative "mixed" form of Celia et al. (1990): each step stores exactly the water the storage law releases between the heads at its two ends. Over a step from \(t\) to \(t + \Delta t\) the finite-element equations are
\(\dfrac{\{\Delta W\}}{\Delta t} + \theta\,[K]\,\{h\}_{t+\Delta t} + (1-\theta)\,[K]\,\{h\}_{t} = \{Q\}\)
where \([K(\{h\})]\) is the head-dependent (through \(k_r\)) conductivity matrix of the steady solve, \(\theta\) the time weighting (see The theta method), and \(\{\Delta W\}\) the water each node takes up over the step, set out next. The saturated element stiffnesses and the triangles \(k_r\) is averaged over are formed a single time and reused every step, as are the storage sub-triangles and points below.
The storage term
The water an element holds is the integral of \(\Phi(\psi)\) over the element, with the pressure head carried linearly across sub-triangles of it, each at its own area:
| Element | Storage sub-triangles | Linear-front and Gardner | van Genuchten |
|---|---|---|---|
| tri3 | the element itself | exact | 7 points |
| tri6 | three corner triangles and a center one, cut at the nodes | exact | 28 points |
| quad4 | four, fanned from the mean of the corners | 112 points | 28 points |
| quad8, quad9 | eight, fanned from the center | 224 points | 56 points |
For the linear-front and Gardner laws \(\Phi\) is piecewise linear in \(\psi\), with kinks at \(\psi = 0\) and \(\psi = h_0\), and its integral over a triangle on which \(\psi\) is linear has a closed form, so on tri3 and tri6 elements the integral is taken exactly. Elsewhere it is a sum over storage points \(q\) inside the sub-triangles, each sampled by a 7-point rule (cut into four first, for the linear front on a quadrilateral):
\(W_e = \displaystyle\sum_q w_q\,\Phi(\psi_q), \qquad \psi_q = \sum_j N_{qj}\,\psi_j, \quad N_{qj} \ge 0\)
On a tri3 a third of the element's area falls to each node, which is its lumped weight \(m_j\) (see Lumped storage). On tri6 and quadrilateral elements the areas do not reproduce the lumped weights, and there the water is taken in two parts: the elastic water of the saturated soil, \(S_s\max(\psi, 0)\), is lumped at the nodes with their weights \(m_j\), and only the water above the water table, \(\Phi(\min(\psi, 0))\), is integrated.
The water an element takes up over a step is then split exactly into one term per node, each driven by that node's own head change. For a point sum, with \(C^*_q\) the chord of the storage curve at point \(q\) over the step,
\(C^*_q = \dfrac{\Phi(\psi_q^{t+\Delta t}) - \Phi(\psi_q^{t})}{\psi_q^{t+\Delta t} - \psi_q^{t}}\)
the change splits as
\(\Delta W_e = \displaystyle\sum_q w_q\,C^*_q\,\Delta\psi_q = \sum_j G_{ej}\,\Delta\psi_j, \qquad G_{ej} = \sum_q w_q\,N_{qj}\,C^*_q\)
so node \(j\) takes up \(G_{ej}\,\Delta\psi_j\): its own head change times a chord capacity weighted toward it by the interpolation. For an exact integral, each sub-triangle's water change is shared among its three corners by the average, over the six orders in which the corners could move from their old heads to their new ones, of each corner's own contribution, from eight exact evaluations of the sub-triangle's water. The shares add up to the change, a corner whose head does not move receives nothing, and each share has the sign of its corner's head change.
Three properties follow.
- Water is conserved. Summed over the mesh, the nodes take up exactly the change in the water the elements hold, whatever the size of the step.
- The storage stays lumped. Each node's term involves only its own head change, so a node whose head does not move stores nothing, and the storage term is a diagonal matrix, as in Lumped storage.
- A saturated element stores its lumped mass. Where all of an element's nodes stay saturated through the step, node \(j\) takes up \(m_j\,S_s\,\Delta\psi_j\), on every element type. A confined, always-saturated problem is therefore solved exactly as with a constant lumped mass matrix. The same holds on tri3 for any one linear branch of \(\Phi\), such as a linear-front element wholly inside its draining band.
Because the water is integrated over the element rather than taken at its nodes, an element the water table crosses holds the water of the part of it that is saturated: the transition is spread over the element rather than snapping node by node.

The dissipation picture in its simplest form: a sudden head change at the boundary spreading into a column, each curve one instant. A transient solution is a family of head fields like this, marched through time.
Storage properties
The storage coefficient distinguishes a transient solve from a steady one, and its
value depends on whether the soil is saturated. XSLOPE builds it from two per-material inputs
on the mat sheet, Ss and Sy.
Specific storage \(S_s\)
Below the phreatic surface the storage that matters is specific storage — the volume of water released from (or taken into) a unit volume of saturated soil per unit decline (or rise) in head. It combines the compressibility of the soil skeleton and of the pore water and has dimensions of inverse length.
| Material | \(S_s\) (1/m) | Material | \(S_s\) (1/m) | |
|---|---|---|---|---|
| Plastic / soft clay | \(10^{-3}\) – \(10^{-2}\) | Dense sand and gravel | \(10^{-5}\) – \(10^{-4}\) | |
| Stiff clay, dense silt | \(10^{-4}\) – \(10^{-3}\) | Fissured / jointed rock | \(10^{-6}\) – \(10^{-5}\) | |
| Sand | \(10^{-4}\) – \(10^{-3}\) |
Units of \(S_s\)
\(S_s\) must be entered in the model's length unit. The values above are in 1/m; for a model in feet multiply by 0.3048. As with every XSLOPE input the number is used exactly as entered — nothing is converted.
\(S_s\) is required for every material in a transient run, because even a fully saturated, always-confined problem stores water through skeletal and fluid compressibility alone. It acts only where the material is saturated, so on a problem whose water table never reaches a given zone its value has no effect there.
Specific yield \(S_y\)
Above the phreatic surface the dominant mechanism is not compressibility but drainage — water leaving or filling the pore space as the water table moves. This is governed by specific yield, the drainable porosity: dimensionless, and always well below the total porosity because some water is held against gravity.
| Material | \(S_y\) (–) | Material | \(S_y\) (–) | |
|---|---|---|---|---|
| Clean sand and gravel | 0.15 – 0.35 | Silt | 0.03 – 0.19 | |
| Fine sand | 0.10 – 0.28 | Clay | 0.01 – 0.05 |
The finer the soil the more of its pore water is held by capillarity and the lower its \(S_y\) — note the contrast with \(S_s\), which rises for softer, finer materials. For van Genuchten materials \(S_y\) doubles as the drainable water content \(\theta_s - \theta_r\), so a retention-curve fit is the better source when one exists. \(S_y\) enters only through the unsaturated model, so it is needed only on unconfined (exit-face) problems; an always-saturated confined transient problem may leave it blank.
The specific moisture capacity \(C(\psi)\)
The two mechanisms apply in separate zones, not together: below the phreatic surface the storage is the elastic \(S_s\), above it the retention curve's capacity alone. Compressibility is not added to the unsaturated zone. This matters because the storage term sets the timing of the whole solution and the two coefficients can be orders of magnitude apart — a stiff soil with a flat retention curve has an \(S_s\) that would swamp its true drainage capacity and slow the run several-fold if both were counted. RS2 and SEEP/W both apply their \(m_v\) in the saturated zone only, so this is also the convention their published transient results are computed on (see GW18).
\(S(\psi)\) and its integral \(\Phi(\psi)\) enter through the water each element holds (see
The storage term). Their form follows the material's unsat model.
Linear-front and Gardner materials. The drainage capacity is spread uniformly across the same pressure-head band the linear front spans (Gardner, being a conductivity curve rather than a retention curve, reuses it):
\(S(\psi) = \begin{cases} S_s & \psi \ge 0 \quad\text{(saturated)} \\ \dfrac{S_y}{|h_0|} & h_0 < \psi < 0 \quad\text{(draining band)} \\ 0 & \psi \le h_0 \quad\text{(drained)} \end{cases}\)
van Genuchten materials. The analytic derivative of the effective-saturation function, with \(S_y := \theta_s - \theta_r\):
\(S(\psi) = \begin{cases} S_s & \psi \ge 0 \\ S_y\,\dfrac{dS_e}{d\psi} & \psi < 0 \end{cases}, \qquad S_e = \left[\,1 + (\alpha|\psi|)^{n}\,\right]^{-m}, \quad m = 1 - \dfrac{1}{n}\)
The capacity peaks near the air-entry pressure and falls away both deep in the dry zone and as saturation is approached.
Because both retention curves decay to zero far from saturation, the unsaturated branch carries a residual floor at \(10^{-4}\) of the material's own capacity scale — the storage counterpart of the \(k_r\) floor. A node with no storage at all is elliptic: its storage term vanishes, so shortening the step no longer restrains its head and the exit-face active set can cycle with no way for the stepper to recover. Four orders below the material's own capacity the floor stores no meaningful water; it only keeps step reduction effective. It is part of the storage law, so \(\Phi(\psi)\), the water a step conserves, includes it.

The storage coefficient \(S(\psi)\): the elastic \(S_s\) in the saturated zone, and above it a drainage capacity — a boxcar band for the linear-front / Gardner model, a smooth peak near air entry for van Genuchten — over a residual floor.

The same three branches on a section, at the end of a drawdown: each element classified by the pressure head the solver samples in it. The draining band is the thin zone the falling water table is passing through — the only place \(S_y\) acts.
Time stepping
The theta method
The step equations of the Formulation are a theta method in time:
\(\dfrac{\{\Delta W\}}{\Delta t} + \theta[K]\{h\}_{t+\Delta t} = \{Q\} - (1-\theta)[K]\{h\}_{t}\)
\(\theta = 1\) is backward Euler, the default — unconditionally stable and free of the oscillations that affect explicit and centered schemes on sharp infiltration fronts. \(\theta = 0.5\) is Crank–Nicolson, second-order accurate in time but more prone to ringing on rapidly switching boundaries. Backward Euler is recommended for slope-stability work.
Iteration within a step
Both \([K]\) (through \(k_r\)) and the storage term depend on the head field being solved for, so each step is nonlinear and is resolved by iteration. Each iteration rebuilds \([K]\) from the current iterate's \(k_r\) and linearizes the storage term about the current iterate on a diagonal: at each node the larger of its chord capacity over the step and its tangent capacity at the iterate (see The storage term). The water change itself, not its linearization, enters the right-hand side, so a converged step satisfies the conservative equations; the linearization only steers the iteration. Taking the larger of the two keeps an iterate that has overshot onto a flat branch of the law (the dry floor, or the small \(S_s\) of the saturated zone) from seeing almost no storage while the step's water change is large.
The relative conductivity \(k_r\) changes by orders of magnitude across a sharp wetting or drying front, and an element straddling the front can take a different \(k_r\) at each iteration, so the iteration can alternate between two head fields. A node whose update reverses sign without shrinking by half therefore has its next update halved, again each time the reversal persists, and restored once it stops.
The step is accepted when the largest nodal head change of a full update falls below a tolerance scaled by a characteristic head span, and the step keeps the iterate that update was taken from. That iterate's own update is below the tolerance, so it solves the step's equations to that tolerance, which the update itself need not do where the iteration alternates. The starting head is never kept: a step whose first update is already below the tolerance takes one more. On an unconfined problem the exit-face active set must also settle before the step is accepted.
Adaptive time stepping
The step size is chosen adaptively, so the solver takes small steps through rapid transients and large ones through quiescent periods:
- Time-error control. The estimated time error of each step is held below a tolerance,
by default 0.1% of the characteristic head span (
time_error_fracinrun_transient_seepage); see Time error below. - Head-change limiter. A step is rejected and halved when the largest head change at any free node exceeds a fraction (default 5%) of the characteristic head span. The change at Dirichlet nodes is deliberately excluded — a stepped reservoir level jumps by its full amount regardless of \(\Delta t\), and counting it would drive the step size to its floor for nothing.
- Convergence-based growth. After a step that converges easily the next step grows by a fixed factor; after one that needed many iterations it shrinks. A step that fails to converge is halved and retried down to a minimum size, at which point the last iterate is force-accepted (and the run flagged non-converged) so the run always makes progress.
- Schedule clamping. The step is always clamped so the stepper lands exactly on every saved time. Saved frames are therefore computed states, never interpolated between steps.
Time error
Over one step, backward Euler misses the head by about \(\tfrac12\Delta t^2\,\ddot h\). After each step the solver estimates this at every free node from the change in that node's rate of head change since the step before:
\(e \approx \dfrac{\Delta t_n^2}{\Delta t_n + \Delta t_{n-1}} \left|\dfrac{h^{n+1} - h^{n}}{\Delta t_n} - \dfrac{h^{n} - h^{n-1}}{\Delta t_{n-1}}\right|\)
A step whose largest estimate exceeds twice the tolerance is redone with a shorter step, and the next step is never longer than the estimate allows. The solver therefore shortens its steps where the heads change course and lengthens them where the heads change steadily.
Lumped storage
The storage term is lumped: each node's share depends on its own head change only (see The storage term), so the matrix it contributes to each step's equations is diagonal. A consistent storage matrix couples neighboring nodes and can produce non-physical overshoot ahead of a steep wetting front; lumping suppresses this. The lumped weights \(m_j\) of the saturated soil are the HRZ (special lumping) weights, which coincide with row-summing on linear elements and stay strictly positive on quadratic ones. Lumped storage is the default and only option.
Boundary conditions
A transient run reuses the steady boundary-condition types — specified head, exit face, and specified flux — and adds the ability to drive any of them from a time series rather than a constant.
Time series
A specified-head or specified-flux value on the seep bc sheet may be a number or the name
of a series defined on the tseep sheet. The
tseep sheet holds a single shared time column and up to five named series (default headers
t1…t5, renamable). One series can drive several boundaries, and each referencing block's
own type — head, reservoir or flux — decides whether its numbers are read as a plain
Dirichlet head, a reservoir level, or a specified flux.
A series-bound value does not rule out a steady run: the series is read at its t = 0
value — for a step anchored at t = 0, the value before the step, as the transient run's
initial condition reads it — and the Log states each reading
(Series 'pool' read at t = 0 for the steady solve).
That steady solution is the initial-condition snapshot — the same field a transient run
starts from, and its first saved frame — so a quick steady run is the natural check on a model
before committing to a long one.
Each series is a curve of value versus time with these breakpoint semantics:
- Values are interpolated linearly between the times at which the series has entries.
- The series is held constant before its first entry and after its last.
- A blank cell between entries means "no breakpoint here" — the series interpolates straight through it — so independent series with different breakpoints share one time column.
- A step change is entered by repeating a time on two consecutive rows with different values; the new value applies from that time onward.

A tseep series runs linearly between its defined points, holds constant beyond the first and last, and steps vertically wherever a time is repeated.
Numeric fluxes are baked into the load vector once; a series-driven flux is assembled once as a unit-flux load vector for its polyline and scaled by the series value each step, since the flux load is linear in its value.
Head types: head and reservoir
The two Dirichlet types differ only in how a node above the applied level is treated; at or below the level they are identical.
A head boundary is a plain Dirichlet: every node of the polyline is held at the value —
constant or series \(h(t)\) — at all times. It can hold a negative-pressure (suction) head
and never converts to an exit face. This is the type for a drained face, a specified-suction
laboratory boundary, or any imposed head that should be enforced regardless of elevation. On a
line along the ground surface that the water leaves partly dry at some time in the run, the dry
part is held at the water level in suction, which draws water out of the slope; preflight
warns about such a line, since a pool face belongs to the reservoir type and any other head
line ends at the water level. A model side is not such a line, including a near-vertical side
that starts or ends the ground line
(what preflight reads).
A reservoir boundary is the free-water level used for a pool or tailwater whose level rises and falls. Each node of the polyline is in one of three states, decided by the level \(h(t)\) and by the highest level the run has reached so far, \(h_{max}(t)\), the running maximum of \(h\) over \([0, t]\):
| Node elevation \(y\) | State |
|---|---|
| \(y \le h(t)\) | Submerged: held at the level \(h(t)\) |
| \(h(t) < y \le h_{max}(t)\) | Uncovered: an exit-face node, free to seep |
| \(y > h_{max}(t)\) | Not yet reached: no-flow, unless another boundary governs the node |
A face the falling water has uncovered is an exit face because the soil behind it is still saturated, and that water seeps back out. Pinning such nodes to the now-lower level, or sealing them, would both misstate the physics. A face the water has never reached is no-flow until the level first rises to it; from then on it is held while submerged and becomes an exit face when the level falls back below it. As the level moves, nodes cross between the states and the exit point migrates up and down the face, as a drawdown requires. Because the series is linear between its breakpoints, \(h_{max}(t)\) is the largest of \(h(0)\), \(h(t)\), and every breakpoint value at a time between 0 and \(t\).
At \(t = 0\) the run has no history, so \(h_{max}(0) = h(0)\) and every node above the starting level is no-flow. The same holds for a steady run, which reads the series at \(t = 0\), and for a constant level, which never moves: no part of the face becomes an exit face. To model a rising pool, draw the polyline over the full face the water will reach. The part above the starting level is no-flow until the water arrives, and preflight notes that the line stands above its starting level. If the level rises above the top of the line, the ground beyond the line that the water covers has no boundary condition and stays no-flow, which preflight reports as a warning.

As the reservoir level falls from \(h(t_1)\) to \(h(t_2)\), face nodes the water uncovers switch from held reservoir head to exit face, and the still-saturated soil drains back out through the newly exposed surface.
Exit-face behavior
The exit face — present statically as a downstream seepage face, or appearing dynamically as a reservoir level falls below a node it has submerged — is resolved each step with the same SEEP2D-style active-set rule the steady solver uses: a boundary node is held saturated at atmospheric pressure unless the head would fall below its elevation or the boundary reaction would have to push water into the domain, in which case it is released to no-flow. On quadratic meshes each seepage-face edge is tracked all-or-nothing across its corner and midside nodes — the same edge treatment the steady solver applies — so the transition lands cleanly on a corner and the element order of a transient run is unrestricted. The step's set-stability test carries the steady solver's rule with it: a set about to be called stable with an inactive exit node standing at or above its own elevation is not accepted, and that node joins the face and is held there for the rest of the step. Each step starts from the active set the previous step ended with. A node that has just joined the exit face, a reservoir falling past it, starts saturated, as the steady solver starts its whole face, and so does the whole face on the first step.
Partly wet quadratic edges. All-or-nothing has one state it cannot express: the edge the exit point is passing through, wet below and dry above. Both available states are inadmissible there — held wet the edge over-drains and the rule sheds it, held dry the pressure climbs above the face and the rule takes it back — so the active set alternates and the step's set-stability test can never close, collapsing \(\Delta t\) to its floor. When a step fails with the set revisiting a state it had already left, the offending edge is therefore resolved from each node's own saturation test instead — the per-node rule linear elements always use, which can carry a wet lower half and a dry upper half — and held there for the rest of the step, so the transition lands at the midside node. Edges that are not cycling keep the all-or-nothing rule, and a step that converges the ordinary way never reaches this path.
Initial conditions
Marching in time needs a head field at \(t = 0\). By default XSLOPE computes it as a steady solve at the \(t = 0\) boundary configuration: the series are evaluated at \(t = 0\) and the ordinary steady solver is run — one linear solve for a confined problem, the steady unconfined iteration for an unconfined one. The transient run therefore begins from a genuine steady state rather than a guess. An explicit initial head field may be supplied instead when one is known.
The unconfined branch is an iteration and carries an iteration limit, max_iter, which defaults to
2000 — the one convergence parameter of the initial condition a caller sets, and the same key the
steady runners take for the same solve. It is spent once, before the transient run starts, and has nothing to do
with the time steps. Raising it is the remedy for a model whose steady state is slow to reach; a
tall unsaturated column draining at unit gradient is the usual such model, and it converges
monotonically, just slowly. That solve uses the ordinary
unconfined iteration, relaxation ladder,
Newton steps and all, at the tighter head tolerance the initial condition uses — 1e-6 of the model's head scale, against
the 1e-4 a steady run takes. The outcome of that solve is part of the run's result: an initial
condition that does not close within the budget leaves converged False on the returned dictionary,
the same flag a force-accepted time step clears, so a transient run begun from a field that is not a
steady state reports this in its result.
Because of that rule, the way to start from a particular steady state — a full reservoir before drawdown, say — is simply to give the driving series that value at \(t = 0\). To hold it briefly and then change it, use a step (a repeated time): the series sits at the initial value through \(t = 0\), so the initial condition is unaffected, and then steps or ramps to the new value later. This is the standard drawdown setup.
Outputs
Saved-frame schedule
The solver stores a selected set of saved frames, not every computed step. The saved times are the union of
- the save_interval grid (defaults to roughly 50 frames over the duration when blank),
- any explicit save_times,
- the rapid-drawdown stage_1 / stage_2 times,
- the stability_time, and
- every series breakpoint,
clamped to \((0, \text{duration}]\), de-duplicated and sorted. The \(t = 0\) initial condition is always the first frame. Because the stepper is clamped to land exactly on each of these times, every saved frame is a computed state.

The saved-frame schedule is the union of the save_interval grid, explicit save_times, the stage times, and every series breakpoint — de-duplicated, sorted, and always including \(t = 0\).
A stability run can read only saved frames, so a time needed later must be on the schedule. A
time that is not a saved frame is obtained by rerunning the transient seepage
analysis with that time added to save_times — never by interpolating between two frames, since a field blended from two
solutions is not itself a solution of anything.
Files
export_transient_solution writes two files:
{base}_tseep.csv— a long-format table with one block of n_nodes rows per saved frame:time, node_id, head, u. Velocities are derived on load (below) rather than stored, and no stream function is stored either, since a transient frame has no flow net.{base}_tseep_meta.json— the frame ledger: saved times, node count, unit system and time unit, the theta/lumped provenance, thedthistory, the per-frame inflow/outflow, the mass-balance ledger, the stage times, and the source input/mesh file names.
Per-frame inflow and outflow
Each saved frame reports separate inflow and outflow totals: the rates at which water crossed the boundary over the step that ended at the frame (with backward Euler, the flows of the frame's own head field). At each fixed-head node and each active exit-face node the boundary flow is the node's flow into the mesh plus the water its own storage took up over the step; at the other nodes it is any specified flux. Inflow sums the flows into the mesh and outflow the flows out of it, so under storage exchange the two differ, and the difference is the rate at which the water held in the mesh changed over that step. A steady solution's single "Total Flowrate" no longer applies; a frame reports both rates, and its plot title carries them beneath the frame time. The initial condition is a steady state, so its frame reports equal inflow and outflow.
Transient frames have no flow net — read direction with velocity vectors
Flow lines are iso-contours of a stream function, which exists only when the flow field is divergence-free. A transient state breaks that: the storage term makes the field divergent, \(\nabla\cdot\mathbf{q} = -S\,\partial h/\partial t \neq 0\) wherever heads are changing, so water appears from and disappears into storage throughout the domain. Flow "channels" have no meaning there, which is why the flow-line display — and the base-material control that only sets its channel count — is offered only for steady solutions. Turn on velocity vectors to read a transient frame's flow, including the reversal back into the emptied reservoir as the pool draws down.
Derive-on-load velocities
When a saved frame is read back (import_transient_solution), the velocity and hydraulic
gradient fields are recomputed from the stored head, the mesh, and the (possibly
\(k_r\)-scaled) conductivity — the same derivation the steady solver uses. Storing only head and
pressure keeps the file compact, and each reconstructed frame is a full solution dict that
plot_seep_solution renders unchanged.
Mass-balance ledger
The meta file records a running mass-balance ledger, the run's check of its own water budget. At each saved frame it compares two totals accumulated since \(t = 0\):
- the stored change: the water held in the mesh at the frame, \(\sum_e W_e\) (see The storage term), less the water it held at \(t = 0\);
- the cumulative inflow: the net boundary inflow, summed step by step from the boundary flows defined under Per-frame inflow and outflow, each taken from that step's own head field, conductivity, and storage.
A step that solves its equations exactly adds the same amount to both, so their difference is
the sum, over all accepted steps, of what each one leaves unsolved: the iteration tolerance on
every step, and the whole imbalance of any step that had to be force-accepted. The reported
closure is that difference divided by the net cumulative inflow (or by a small fraction of
the storage scale, when the net inflow is near zero). On a run whose steps all converged it is
small, the part of the iteration tolerance the steps leave unsolved measured against the water
the run has moved, and for a saturated linear problem it is at round-off. A step that had to be
force-accepted adds its whole imbalance, and also leaves converged False on the returned
solution.
Stability time
A transient run produces a sequence of pore-pressure fields, but a stability analysis with
u = seep consumes exactly one. The tseep controls carry an optional stability_time
naming which instant that is. It does not control the analysis: it selects
which frame is read out and changes nothing about how the transient solution is computed. Like the stage times
it is forced into the saved-frame schedule, so the instant it names is always a computed frame.
Which instant a run reads, in order of precedence:
- a
timepassed explicitly to the run — in Studio, the Run dialog's seepage-time selector, which governs that run only; - the model's
stability_time; - with both absent, the last saved frame — usually the drained end state, which is often but not always the critical one. A run reports which of the three it used.
select_transient_frame_u(slope_data, solution, time=...) places the chosen frame's pore
pressures into slope_data['seep_u']; apply_transient_stability_frame wraps the whole
resolution — precedence, rapid-drawdown staging, and the optional rerun:
from xslope.seep import apply_transient_stability_frame
# Reads the model's stability_time; with none set, the last saved frame.
info = apply_transient_stability_frame(slope_data, solution)
print(info["times"], info["source"]) # e.g. [47.0] 'file'
# An explicit instant overrides the file for this run.
apply_transient_stability_frame(slope_data, solution, time=30.0)
A time with no saved frame is rejected by default, listing the times that do exist. Passing
remarch=True together with the run's seep_data reruns the transient seepage analysis
instead, with the requested
instant injected into save_times:
apply_transient_stability_frame(slope_data, solution, time=100.0,
seep_data=seep_data, remarch=True)
remarch_for_times(seep_data, slope_data, times) does that rerun on its own and returns the
new solution. It is a full re-solve — seconds on a short run, minutes on a long one.
Selecting a frame also records which moment those pore pressures belong to, so under automatic water loads the weight of the standing water is derived from the reservoir as it stood at that instant — not as it stood at \(t = 0\). The water pressing on the slope and the pore-pressure field inside it therefore always describe the same moment.
Rapid drawdown staging
A transient run couples directly to a rapid-drawdown stability analysis. The
tseep controls carry two optional stage times, stage_1 and stage_2 (with
stage_1 < stage_2) — typically the full-reservoir state and the drawn-down state. Both are
forced into the saved-frame schedule, so each is a computed frame.

The two frames a rapid-drawdown analysis consumes, on a common pressure scale: the full-pool
state at stage_1, and the drawn-down state at stage_2 where the pool has gone but the core
still holds pressure. The frame titles carry the boundary inflow and outflow — equal at the
steady start, and inflow zero while the dam drains.
stage_transient_for_drawdown pulls those two frames in memory — no intermediate files —
and places their pore-pressure fields into slope_data['seep_u'] and slope_data['seep_u2'],
which are exactly the structures the classic two-steady-file drawdown path produces. The
three-stage analysis then runs as usual. A transient solution with stage times takes
precedence over the classic {base}_seep.csv / {base}_seep2.csv files; a model without stage
times uses the classic path.
See Rapid Drawdown Analysis for the stability methodology the staged pore pressures feed.
Studio
Transient seepage can be prepared and run without writing code: edit the time series, save schedule and stage times in the Transient inputs editor (Inputs → Transient), set the storage properties, build a mesh, run the analysis from the seepage tools — the run reports determinate progress and can be cancelled — then step through the saved frames in the solution view. See Studio → Running Analyses → Seepage.
The Run LEM and Run FEM dialogs carry a seepage-time selector when a transient solution is
loaded, so the instant a stability run reads is named where the run is started rather than
inherited from the play bar. It offers the saved frames, the frame the results viewer is
showing, and free entry of any other time (which reruns the analysis); the choice can be written back to
stability_time. The rapid-drawdown stage times are edited in the same dialog. See
Studio → Running Analyses → Seepage time.
Usage
from xslope.fileio import load_slope_data
from xslope.mesh import build_polygons, build_mesh_from_polygons
from xslope.seep import (build_seep_data, build_tseep_data, run_transient_seepage,
export_transient_solution, import_transient_solution,
transient_frame_index, stage_transient_for_drawdown)
from xslope.plot_seep import plot_seep_solution
# A workbook with a filled-in tseep sheet and Ss/Sy storage properties
input_file = "docs/seep/files/xslope_earth_dam_tseep.xlsx"
slope_data = load_slope_data(input_file)
polygons = build_polygons(slope_data)
mesh = build_mesh_from_polygons(polygons, target_size=2.0, element_type="tri3")
seep_data = build_seep_data(mesh, slope_data) # storage + BC series bindings
tseep_data = build_tseep_data(slope_data) # None if the file has no tseep sheet
solution = run_transient_seepage(seep_data, tseep_data) # backward Euler by default
print(f"{len(solution['frames'])} frames over {solution['duration']}")
print(f"Mass-balance closure: {solution['mass_balance']['final_closure']:.2e}")
# Plot one saved frame (velocity vectors, not flow lines)
i = transient_frame_index(solution, 47.0)
frame = solution["frames"][i]
plot_seep_solution(seep_data, frame, variable="u", levels=15,
flowlines=False, vectors=True, phreatic=True)
# Write the whole run as an animated GIF, each frame shown for half a second
from xslope.plot_seep import save_transient_animation
save_transient_animation(seep_data, solution, "earth_dam_tseep.gif", seconds_per_frame=0.5)
# Write the run to {base}_tseep.csv (+ _tseep_meta.json), and read it back
export_transient_solution(seep_data, solution, "earth_dam", input_file=input_file)
reloaded = import_transient_solution(seep_data, "earth_dam")
# Stage the two rapid-drawdown frames into slope_data['seep_u'] / ['seep_u2']
slope_data = stage_transient_for_drawdown(slope_data, solution)
Verification and Examples
Verification — transient rows in the corpus, each page entered at its transient section:
- Rocscience Slide2 groundwater — transient problems: the Terzaghi / Ferris / Pyrah consolidation columns and the earth-dam and lagoon seepage runs (GW15–GW21, all built), checked against closed-form or recomputed-analytical targets.
- GeoStudio SEEP/W transient seepage: the consolidation, infiltration, reservoir-drawdown, clay-lined-pond, leach-column, and stepped-suction examples (SEEPW-T01–T05 and T07 built), with the multi-layer infiltration case (T06) documented as blocked and why.
- RS2 earth dam under transient unsaturated seepage: the RS2-67 SSRM family, driven both by RS2's own imported 90 h drawdown pore-pressure field and by XSLOPE's own steady reconstruction of the vendor's boundary conditions.
- Rocscience Slide2 — VP102: a rapid-drawdown earth dam whose factor of safety is tracked across the 60–1500 h drawdown from a single uncoupled transient seepage solve.
Worked examples — complete input files you can download and open:
- Tutorial SEEP-3: a shell-and-core dam followed through a drawdown driven by a falling
reservoirseries. - Johnson Reservoir — Zoned Drawdown: the zoned Johnson Reservoir dam drawn down over 45 days, with
stage_1/stage_2set. - Rapid drawdown from a transient solution: that drawdown carried into a three-stage rapid-drawdown stability analysis.
References
Celia, M.A., Bouloutas, E.T., & Zarba, R.L. (1990). A general mass-conservative numerical solution for the unsaturated flow equation. Water Resources Research, 26(7), 1483-1496. https://doi.org/10.1029/WR026i007p01483
Freeze, R.A., & Cherry, J.A. (1979). Groundwater. Prentice-Hall.
Gardner, W.R. (1958). Some steady-state solutions of the unsaturated moisture flow equation with application to evaporation from a water table. Soil Science, 85(4), 228-232.
van Genuchten, M.Th. (1980). A closed-form equation for predicting the hydraulic conductivity of unsaturated soils. Soil Science Society of America Journal, 44(5), 892-898. https://doi.org/10.2136/sssaj1980.03615995004400050002x