OpenGeoRock
2.9

Finite-element groundwater

Describes OGR Slip2D 0.1.481

Instead of drawing a water table, OGR Slip2D can compute the pore pressures of the slope by a finite-element seepage analysis, steady or in stages through time, and hand them to the limit-equilibrium analysis. The Groundwater menu is ordered as the workflow, and each command becomes available only when the step before it has been done. The equations are in Section 3.7.

2.9.1The workflow#

Table 2.9.1 From geometry to factor of safety with a finite-element pore-pressure field.
StepCommandAvailable when
1Analysis → Project Settings → Groundwater: Method fea_steady or fea_transientalways
2Properties → Define Materials…: Water Parameters, Type fem, for every material that takes the field (Section 2.9.8)always; see the note there
3Groundwater → Define Hydraulic Properties…the method is a finite-element one and materials exist
4Groundwater → Mesh → Generate FE Mesh…always (needs an External Boundary)
5Groundwater → Set Boundary Conditions…a mesh exists
6Groundwater → Transient Groundwater… (only for a staged analysis)the method is a finite-element one
7Groundwater → Compute Groundwatera mesh exists
8Groundwater → Interpret Groundwatera groundwater result exists
9Analysis → Compute—

2.9.2Choosing a finite-element method#

In Analysis → Project Settings → Groundwater, set Method to fea_steady or fea_transient. The program treats the two in the same way: whether the analysis runs in stages is decided by the Advanced group of the same page, where Transient groundwater is one of four mutually exclusive choices (with None, Calculate Excess Pore Pressure (B-bar method) and Rapid Drawdown analysis). With a finite-element method:

  • the hydraulic commands of the Groundwater menu become available;
  • Properties → Define Materials… shows two unsaturated-strength fields for each material, Unsaturated Shear Strength Angle (φb) and Air Entry Value, both 0 by default, so that suction adds no strength unless you ask for it (Section 3.6). Negative pore pressure cutoff on the Groundwater page caps the suction they can use;
  • a reservoir is not drawn: it is the total head you prescribe on the boundary, and the stability analysis applies the weight of the standing water wherever that head is above the ground. Do not draw a water table on top of it.

2.9.3Hydraulic properties#

Groundwater → Define Hydraulic Properties… lists the materials on the left (names and colours are edited in Define Materials) and the permeability of the selected one on the right. A material you never edit here keeps the defaults: constant permeability with Ks = 1 × 10⁻⁶.

Table 2.9.2 Fields of Define Hydraulic Properties.
FieldMeaningDefault
Saturated permeability KsPermeability K1 of the saturated soil. Disabled for User Defined, which takes it from the first point of its curve.1 × 10⁻⁶
K2 / K1Anisotropy: ratio of the second principal permeability to the first.1
K1 angle (deg from +X)Direction of K1.0°
Minimum relative permeability kr_minFloor of the relative permeability, between 0 (excluded) and 1: kr is never taken below it, with any model, so the dry zone keeps some conductivity and the system of equations stays solvable (in the dialog since version 0.1.275; see The user curve and kr_min).1 × 10⁻⁶
ModelHow the permeability falls in the unsaturated zone: Constant, Simple (with a soil type: General, Sand, Silt, Clay or Loam), Brooks-Corey, Fredlund-Xing, Gardner, van Genuchten or User Defined. The parameters of the chosen model appear below it.Constant

Pick… loads representative parameters for Brooks-Corey, Fredlund-Xing, Gardner and van Genuchten (it is greyed out for the other models), and the heading of its list says where they come from (since version 0.1.279), as in Table 2.9.3. Plot… draws the permeability against suction for the material shown.

Table 2.9.3 The parameter libraries of Pick.
ModelTexturesParameters loadedSource
van Genuchten8: Sand, Loamy sand, Sandy loam, Loam, Silt, Silt loam, Clay, Silty clayα of the van Genuchten page and n of the water content groupThe mean values by texture of Carsel & Parrish (1988), with α converted from cm⁻¹ to m⁻¹ (sand: 0.145 cm⁻¹ = 14.5 m⁻¹)
Brooks-Corey11: the USDA textures from Sand to ClayPore size index λ and bubbling pressureRawls, Brakensiek & Saxton (1982), geometric means of their table by texture; the bubbling pressure, given there in cm of water, is converted to kPa with 0.0981 kPa per cm (γw = 9.81 kN/m³)
Gardner3: Sand, Loam, Claya and nNone: illustrative values that show the order of magnitude, and the list says so
Fredlund-Xing3: Sand, Loam, ClayA, B and CNone: illustrative values, and the list says so

The parameters of Gardner's and of Fredlund and Xing's functions are fitted to the measurements of each soil, and no table of means by texture was found for them, so their values are only a starting point. Fit them to your own data where it exists.

The Define Hydraulic Properties dialog: the list of materials on the left; the saturated permeability, anisotropy, the floor of the relative permeability and the unsaturated permeability model with its parameters on the right, in a column that scrolls down to the water content function
Figure 2.9.1 Define Hydraulic Properties.

The user curve and kr_min#

With the model User Defined the permeability is a table entered in the dialog (since version 0.1.275), with the columns Matric suction (kPa) and Permeability (m/s). + Row and − Row add and delete rows, and Import CSV… reads the two columns from a text file: commas, semicolons, tabs or spaces separate the values, lines that are not two numbers (a header, a comment starting with #) are skipped, and extra columns are ignored. A decimal comma typed in the table is read as a point. The rows are stored sorted by suction.

  • The first point, the one of lowest suction, is the saturated permeability: the Saturated permeability Ks box is disabled and shows it.
  • Between two points the permeability is interpolated linearly in suction and logarithmically in permeability. Below the first suction it is the saturated value, and beyond the last one it keeps the last value.
  • The table needs at least two points, no negative suction, no two points with the same suction and every permeability positive.

The relative permeability, the tabulated value divided by the first one, is never taken below kr_min. Points of the table below kr_min times the first permeability are therefore drawn by Plot but change nothing; lower kr_min to use them. What makes the material unusable, and points that change nothing, are written in red at the foot of the dialog while you edit, without blocking OK.

The water content function#

Below the permeability model, the group Water content function (transient analysis) holds the retention curve that a transient analysis reads for the water stored in the soil (since version 0.1.268). It is the curve of van Genuchten (1980) for every permeability model, which is a convention of OGR Slip2D and says so in the dialog: the permeability model sets how fast the water moves, and this curve how much is stored (Section 3.7.8).

Table 2.9.4 Fields of the water content function.
FieldMeaningDefault
Saturated water content (θs)Volumetric water content of the saturated soil0.4
Residual water content (θr)Volumetric water content left at very high suction0.05
alpha (1/m)α of the curve (wc_alpha), for every model except van Genuchten, whose curve uses the α of its own page0.036
nExponent n of the curve, shared with the van Genuchten permeability1.56
Custom mOff: m = 1 − 1/n. On: the m given in the box beside itoff (0.359)
Specific storage Ss (1/m)Elastic storage of the saturated soil, below the water table1 × 10⁻⁵

Since version 0.1.278 the α of this group is a parameter of its own. Its default, 0.036 m⁻¹, is a convention of the program: it is not the parameter of a soil texture. The 3.6 m⁻¹ of the van Genuchten page is a different thing, the loam of Carsel & Parrish (1988). With the van Genuchten model one α serves both the permeability and the retention, as in the original derivation, so the α of this group is greyed out. A field is greyed out whenever it changes nothing for the model shown and the analysis of the project: θs, θr, Ss and the α of the group are read only by a transient analysis, and n and m also by the van Genuchten permeability. Give the curve the values of your soil before trusting a transient analysis.

In OGR Slip2D

The dialog writes the hydraulic properties of each material when OK is pressed; Cancel discards every change. Pick fills only the boxes of the model shown and of the water content group; it changes no other material.

Source: ogr_gui/dialogs/hydraulic_properties_dialog.py · OGR-Core: ogr_core/hydraulic/permeability_models.py · ogr_core/hydraulic/hydraulic_properties.py
Units are not converted

The program converts neither Ks nor the stage times: Permeability Units and Time Units on the General page of Project Settings only label them, and the dialog shows no unit. A steady analysis does not depend on the unit as long as every material uses the same one, but a transient analysis does: give the stage times in the time unit of Ks (seconds for Ks in m/s). Note that the two labels default to m/s and days.

2.9.4The finite-element mesh#

Groundwater → Mesh → Generate FE Mesh… asks for the approximate number of elements (1000 by default; 20 to 200 000) and meshes every material region of the model with three-node triangles, the nodes shared along the contacts, so each element takes the material the limit-equilibrium analysis reads for that region. The status bar reports the number of elements and nodes and the smallest angle of the mesh.

Boundary conditions are attached to node numbers, so a new mesh (or Groundwater → Mesh → Reset FE Mesh) drops the boundary conditions, the computed field, the transient results and the conditions stored with the transient stages, and says so in the status bar. The stages themselves keep their times, labels and flags.

2.9.5Boundary conditions#

A mesh starts with default conditions: Unknown (P=0 or Q=0) on the ground surface, slope face included, and zero nodal flow on the left, right and bottom edges. These prescribe no head anywhere, and a steady problem without a prescribed head has no solution, so at least one head must be set before computing.

Groundwater → Set Boundary Conditions… assigns a condition to a whole side of the model at a time. Choose the Type, enter the Value where the type takes one, select the target in Apply to (Left edge, Right edge, Bottom edge or Ground surface, each with its number of nodes) and press Assign. Restore defaults goes back to the default conditions. The summary line counts the nodes of each type.

Table 2.9.5 Boundary-condition types.
TypeValueSeepage face
Total Headhead H (m)—
Pressure Headhead P (m)—
Zero Pressure——
Nodal Flow Rateflow at each nodeallowed
Infiltrationflux on the boundary segments; applied to segments onlyallowed
Unknown (P=0 or Q=0)—decided by the solver, node by node: P = 0 where water seeps out, Q = 0 elsewhere

Two more targets at the bottom of the list prescribe a reservoir: Reservoir on the left, at Value and Reservoir on the right, at Value. Enter the water level as the Value and press Assign: every boundary node the water reaches (the vertical edge on that side and the ground surface inwards for as long as it stays at or below the level) receives a total head equal to the level, and the dialog reports how many nodes were submerged. A reservoir that reaches only a node or two is usually a level typed below the toe.

The Set Boundary Conditions dialog: condition type, value and seepage-face option, the list of sides and reservoir targets, and the summary of conditions per type
Figure 2.9.2 Set Boundary Conditions, with the reservoir targets at the end of the list.
Note

In version 0.1.481 the Pick by selector of the dialog (Line segments or Nodes) has no effect: a condition always goes to every node of the chosen side, and infiltration to its segments. OK keeps the conditions; Cancel discards everything assigned since the dialog opened.

2.9.6Computing the field#

Groundwater → Compute Groundwater solves the steady field, or the stages of a transient analysis when one is configured. A steady solve reports the number of iterations and the range of pore pressure in the status bar, and names any material that used the default hydraulic properties; when it does not converge, the status bar says why. The field is saved in the .ogr file, so reopening a project does not require computing it again.

In OGR Slip2D

The steady analysis solves for the total head on linear triangles, with the permeability reduced in the unsaturated zone by the model of each material, by under-relaxed Picard iteration (relaxation 0.4, at most 200 iterations, tolerance 10⁻⁵ m). Nodes of type Unknown switch between seepage face and no-flow until they settle (Neuman, 1973). A loop that does not converge, or that stops with the seepage face unsettled, is handed to a rescue that looks for the same solution by other means before the run is reported as not converged (Section 3.7.6). The transient analysis solves Richards' equation in mixed form with implicit time steps (Celia, Bouloutas & Zarba, 1990).

Source: ogr_slip2d/transient_stability.py · OGR-Core: ogr_core/fem/

2.9.7Interpreting the field#

Groundwater → Interpret Groundwater opens the Interpret Groundwater window. Its bar offers:

  • Field: filled contours of Total Head H, Pressure Head P or Pore Pressure u, suction showing as negative values;
  • Flow vectors (on): the Darcy velocity of the elements;
  • Free surface (P=0) (on): the line of zero pressure;
  • Mesh (off): the element edges;
  • Discharge section…: asks for a section as x0,y0,x1,y1 and reports the flow through it per unit width, positive towards the normal of the section (the direction from the first point to the second turned 90° anticlockwise);
  • for a transient run, a Stage list, with [SF] on the stages that computed a factor of safety, and FoS vs time…. The first entry of the list, 0: t = 0 (initial state), is the steady field the run started from (since version 0.1.307), followed by one entry per stage.

The line below the plot gives the number of nodes, the ranges of head and pore pressure, the iterations, the seepage-face nodes and, for a stage, its time and factors of safety; NOT CONVERGED appears when the solve did not converge.

The Interpret Groundwater window: contours of the groundwater field over the finite-element mesh, flow vectors and the free surface, with the field selector and options above
Figure 2.9.3 The Interpret Groundwater window.

The groundwater fields can also be contoured over the stability results, in the Interpret window of Analysis → Interpret, with View → Contour Options…; its Groundwater menu adds the iteration history, a convergence plot, a query of head at a point and Export All Nodal Values… to CSV (Section 2.8).

Iteration history and convergence#

The Groundwater menu of the Interpret window has two charts of how the last groundwater solution converged, greyed out until a groundwater result exists:

  • Iteration History… plots, against the iteration number, the largest change of head between one iteration and the next, before relaxation, in metres.
  • Convergence Plot… plots the same series on a logarithmic scale with the threshold at which each part stopped: the tolerance divided by the relaxation factor for the Picard loop, which tests the relaxed change, and the tolerance itself for the rescue.

When the Picard loop of a steady analysis does not converge and the program tries other ways to the same solution (the rescue), each one is a series of its own, named in the legend: Picard loop, Rescue: Anderson acceleration (depth 5) and (depth 20), Rescue: continuation with Newton's method and Rescue: continuation followed across the kinks of the curves. The iterations are counted from 1 across the whole run. After a transient analysis the stored field is that of the last stage, and the charts show its last time step. A field computed by a version that kept no history gives only the number of iterations and whether it converged.

2.9.8Using the field in the stability analysis#

The computed field reaches the limit-equilibrium analysis only through the materials whose Water Parameters → Type is fem: at the base of every slice of such a material, the pore pressure is interpolated from the nodal values of the element that contains it. A slice base outside the mesh gets no pore pressure. A material left on any other type ignores the field entirely.

Set the type before choosing the method

In version 0.1.481 Define Materials hides the whole Water Parameters group while the groundwater method is fea_steady or fea_transient, so the Type cannot be changed then. Set Type to fem for the materials concerned before choosing the finite-element method, or switch the method back for a moment to change it. The same coupling can be set through the MCP server or the Python API (Section 5.1).

Compute refuses to run while a material of type fem has no computed field to read, rather than report the pore pressure as zero, which would look like a dry slope. Generating a new mesh clears the field, so compute the groundwater again after remeshing. After a transient analysis the field stored in the project is that of the last stage.

2.9.9Transient analysis#

A staged analysis is set up in Groundwater → Transient Groundwater…. Its first box does the same as choosing Transient groundwater in the Advanced group of Analysis → Project Settings → Groundwater.

  • Transient groundwater analysis switches the staged analysis on or off; switching it on turns off the other advanced option, if one was chosen.
  • Stages: a table with Time, Calculate SF and Label. Add stage adds a row at twice the latest time (1 for the first), Delete stage removes the selected rows. Times must be positive and distinct; the stages are sorted by time.
  • Capture current BCs stores the conditions currently set in Set Boundary Conditions in the selected stage, which is marked [BC]. A stage without conditions of its own uses the current ones, and the field only evolves where a stage's conditions differ from the initial ones.
  • Capture as initial state stores the current conditions as the initial state: the steady field the run starts from. Without it, the current conditions are used, so the model starts in equilibrium with them.
  • Transient FEA options: Tolerance (1 × 10⁻⁵), Maximum iterations (30) and Number of time steps per stage (Auto by default: derived from the element size and the storage, so that the water front crosses about one element per step). The same three are on the Transient page of Project Settings, which is greyed out unless the transient option is on.

For a drawdown, for example, assign a reservoir at the initial level and capture it as the initial state. Then press Restore defaults in Set Boundary Conditions (assigning a lower reservoir does not clear the heads of the nodes it no longer reaches), assign the reservoir at the lower level, and any other condition again, select a stage and capture it. Compute Groundwater solves the stages in order and computes the factor of safety, with every enabled method, at the stages marked Calculate SF. They are plotted against time by FoS vs time… in Interpret Groundwater and by Data → Graph SF with Time… in the Interpret window. If no material is of type fem, the run warns that the stage factors would ignore the computed pressures.

When at least one stage is marked Calculate SF, the initial state is analysed too, with the boundary conditions it was solved with (since version 0.1.309): one more search, which gives the factor of safety at t=0t = 0. It is shown with the entry 0: t = 0 (initial state) of Interpret Groundwater, its notes appear under that heading in Analysis Notes, and both charts of the factor against time start from it. No stage number changes.

Note

The transient analysis also reads the water content function of each material, with any permeability model (The water content function). Its defaults are a convention of the program, not a soil.

2.9.10Drawdown Level Sweep#

Groundwater → Drawdown Level Sweep… belongs to the limit-equilibrium rapid-drawdown analysis, not to the finite-element one: it needs Rapid Drawdown analysis selected in the Advanced group, a groundwater method based on water surfaces, and at least one material with undrained behaviour (Section 2.4, Section 3.8). The sweep is needed because the critical reservoir level is not always the lowest one.

The dialog asks for the Number of levels (11 by default; 2 to 101), spaced evenly from the initial water table down to the lowest ground of the model, and whether to Include total drawdown (ticked). Each level is a full search with every enabled method, so the cost of the run grows with the number of levels. The status bar then gives the critical level and its factor of safety (and, when the total drawdown would overstate it, by how much), and a chart plots the factor of safety against the drawdown level.