Reservoir Geometry: Riemannian Manifolds in Oil and Gas
Beneath the surface of every oil and gas field lies a porous rock formation, and inside that rock, fluid moves. The simplest model for that motion, Darcy's law, was measured empirically by Henry Darcy in 1856 from sand filtration experiments on the Dijon fountain supply. He found that volumetric flow rate through a porous column is proportional to the pressure drop and inversely proportional to the column length, a linear constitutive relation whose proportionality constant, the permeability, characterises the rock. For more than a century, reservoir engineers treated permeability as a scalar, a single number per rock sample, and built analytic solutions for pressure propagation on that assumption.
Real reservoirs are three-dimensional and anisotropic. Sedimentary layering, fracture networks, and depositional fabrics all impose directional preferences on fluid flow: the rock is more permeable along bedding planes than across them, more permeable along open fractures than perpendicular to them, more permeable horizontally than vertically by factors routinely exceeding one hundred. A scalar permeability misrepresents all of this. The correct object is a permeability tensor: a symmetric positive definite contravariant tensor of type whose coordinate matrix in a given chart is a symmetric positive definite array assigning a different resistance to flow in each direction.
That tensor is the entry point for Riemannian geometry. A symmetric positive definite matrix is, simultaneously, a linear map and a Riemannian metric on the ambient space. Once the tensor field is read as a metric, the entire machinery of differential geometry becomes available: geodesics, curvature, the Laplace–Beltrami operator, the heat kernel. The pressure equation is a heat equation on a Riemannian manifold. Streamlines are geodesics. Permeability contrasts are Riemannian refractive index discontinuities, bending streamlines by an exact analogue of Snell's law. The geometry is the exact mathematical content of the equations.
This post develops that content in three dimensions from first principles. We begin by separating the permeability tensor from its coordinate matrix representation, introducing index notation, the Levi-Civita connection, and the fibre bundle structure of material property fields (§2). We construct the 3D permeability metric and its diffusion ellipsoid, and show that Darcy flux is a Riemannian gradient (§3). We derive the 3D Laplace-Beltrami heat equation, the 3D spherical pressure kernel, and the spherical-to-radial flow transition that governs early-time well test signatures (§4). We compute the 3D Christoffel symbols for a diagonal tensor, derive the Darcy-Snell refraction law at permeability interfaces, and develop the Jacobi field equation for streamline spreading (§5). We prove the 3D scalar curvature formula , show that the Weyl curvature vanishes identically in 3D, and connect curvature to pressure transient anomalies (§6). We solve the 3D spectral problem on a rectangular parallelepiped and extract the pseudosteady-state time constant for transversely isotropic formations (§7). We treat the space of permeability tensor coordinate matrices as the manifold and derive the geodesic interpolation between measurements, including the fibre bundle and frame-bundle structure (§8). We extend the framework to a deforming reservoir, deriving the Biot poroelastic equations in abstract index form, establishing the Kozeny-Carman permeability update as a conformal metric flow, and proving that the full coupled Biot-Darcy system is a PDE on a time-parametrised Riemannian manifold (§9). We close by showing how all of this executes in no_std Rust on a bare-metal microcontroller, using the cartan geometry library, for real-time well-site monitoring (§10).
1. Darcy's Law and the 3D Permeability Tensor
1.1. The Empirical Law
Darcy's original experiment measured the steady-state volumetric flow rate through a vertical sand column of cross-sectional area and length , subject to a pressure head difference :
where is the hydraulic conductivity of the sand. Dividing both sides by and taking the continuum limit gives the volumetric flux (velocity per unit area), the Darcy velocity or specific discharge:
where is the fluid pressure, is the dynamic viscosity, and is the intrinsic permeability. This isotropic form holds only when the rock has no preferred flow direction, a condition satisfied in clean, well-sorted sandstone but almost nowhere else.
Reservoir permeability spans roughly eight orders of magnitude. Conventional sandstone reservoirs typically exhibit . Tight gas formations lie in the range . Shale matrix permeability falls below , with hydraulic fractures providing the dominant conductive pathways. In laminated reservoirs, the horizontal-to-vertical permeability ratio commonly ranges from 5 to 100, and values exceeding 1000 are regularly encountered in thinly laminated fluvial sequences. This anisotropy is the primary driver of all 3D geometry in what follows.
1.2. The Full 3D Permeability Tensor
In an anisotropic three-dimensional formation, the Darcy velocity in each direction depends on the pressure gradient in all three directions. The correct constitutive law is:
where is the permeability tensor. Symmetry () follows from the Onsager reciprocal relations: the cross-coupling between a pressure gradient in direction and the resulting flux in direction must equal the coupling in the reverse direction, a consequence of microscopic reversibility. Positive definiteness is a physical requirement: the viscous dissipation rate per unit volume, , must be non-negative for any pressure gradient.
In the Einstein summation convention, Darcy's law reads
where repeated indices are summed from 1 to 3. The index placement carries geometric meaning: upper indices on and denote contravariant components, which transform like coordinate differentials under a change of chart; lower indices on denote covariant components, which transform like coordinate basis covectors. The array is the coordinate matrix of the permeability tensor in the current chart. It is a representation, not the tensor itself: rotating or rescaling the coordinate axes changes while leaving the underlying physical permeability of the rock unchanged. Section §2 develops this distinction in full, before the Riemannian geometry is built on top of it.
The positive definiteness conditions for the tensor are:
These are the three Sylvester conditions (leading principal minors all positive), which characterise symmetric positive definite matrices.
1.3. Transverse Isotropy: The Standard Reservoir Model
The dominant anisotropy type in clastic and carbonate reservoirs is transverse isotropy (TI), in which the rock has equal permeability in all horizontal directions but a different permeability vertically. With as the vertical axis:
where is the horizontal permeability and is the vertical permeability. All off-diagonal entries vanish when the coordinate axes are aligned with the bedding plane. The TI model reduces the full six-parameter tensor to two independent parameters, which is sufficient to capture the dominant flow behaviour in most conventional reservoirs.
The dimensionless anisotropy ratio
governs the shape of the 3D pressure diffusion front. For the front is a sphere; for it is a prolate ellipsoid (wider horizontally than vertically). In practice, ranges from 2 in well-sorted sandstones to well above 100 in laminated formations. The vertical permeability is rarely measured directly in field tests, and is typically inferred from the early-time spherical flow regime in a well test.
1.4. Continuity and the 3D Pressure Equation
Combining Darcy's law with conservation of mass for a slightly compressible fluid (constant total compressibility ) in a porous medium with porosity :
Substituting [eq:darcy-tensor] into [eq:continuity] gives the 3D pressure diffusion equation:
For constant , this is a constant-coefficient parabolic PDE. For heterogeneous , it is a variable-coefficient elliptic-parabolic operator whose structure is governed by the Riemannian geometry of the tensor field.
2. Tensors, Coordinates, and the Permeability Object
2.1. The Permeability Tensor as a Coordinate-Free Object
The word "tensor" is often used interchangeably with "matrix" in engineering literature. In what follows that identification is not merely imprecise: it is wrong in a way that produces incorrect equations on a deforming manifold. The distinction is therefore introduced carefully here, before any geometry is built on top of it.
A tensor field of type on a smooth manifold assigns to each point a multilinear map
where is the tangent space at and is the cotangent space. The tensor itself is this map. A matrix is the array of numbers obtained by evaluating the map on a chosen basis. Choosing a different basis changes the matrix; the tensor does not change.
The permeability tensor is a symmetric contravariant tensor of type : at each it is a symmetric bilinear map . Given a coordinate chart on with coordinate basis for and dual basis for , the components of in that chart are
The array is the permeability matrix in the chart . Darcy's law in this chart is
where are the contravariant components of the Darcy velocity vector and are the covariant components of the pressure gradient covector. The repeated index is summed from 1 to 3 (Einstein convention). Throughout this post, upper indices denote contravariant components and lower indices denote covariant components.
2.2. Transformation Law and the Primacy of the Tensor
Under a coordinate change with Jacobian , the components of a tensor transform as
Both indices transform with one factor of each, reflecting the contravariant character. The tensor is unchanged: it is the same physical object, described by different numbers in the new chart. A rotation from geographic coordinates (north, east, down) to borehole coordinates (along-hole, cross-hole, vertical) multiplies the matrix by two factors of the rotation matrix, but the permeability of the rock at that point is unaltered.
The permeability tensor is symmetric positive definite as a tensor if
Symmetry and positive definiteness are coordinate-invariant conditions on the tensor; they hold in every chart simultaneously if they hold in one. The Sylvester conditions on the matrix are coordinate-dependent statements about the matrix representation in a particular chart. They are equivalent to the tensor SPD condition only in that chart.
The Sylvester conditions fail to characterise positive definiteness in a rotated chart in the sense that their form changes with the chart, even though positive definiteness is preserved. Consider a 2D tensor with principal values aligned at to the coordinate axes. Its matrix in that coordinate frame is , and the Sylvester conditions hold. In a frame aligned with the principal axes the matrix is diagonal and the conditions are trivially , . The invariant test that works in every chart is the tensor condition for all nonzero covectors .
2.3. The Metric as a Covariant Tensor
The Riemannian metric derived from is a covariant symmetric tensor: at each , it is a symmetric positive definite bilinear map . Its components in a chart are
The relationship means: the matrix is the matrix inverse of . More invariantly, the contraction holds in every chart, where is the Kronecker delta. Indices are raised and lowered by and :
The Darcy velocity has contravariant components (a vector, pointing in the flow direction); the pressure gradient has covariant components (a covector, pointing in the direction of steepest pressure increase). The permeability tensor converts covectors to vectors: it maps the pressure gradient covector to the flux vector.
2.4. The Levi-Civita Connection
A connection on is a rule for differentiating tensor fields that is consistent with the manifold structure. The Levi-Civita connection is the unique connection that is (i) metric-compatible, , and (ii) torsion-free, . Its Christoffel symbols in a coordinate chart are
Note: are not the components of a tensor; they transform inhomogeneously under coordinate changes. They are the correction terms that account for the curvature of the coordinate grid, and they vanish in a geodesic normal chart centred at any given point. The covariant derivative of a vector field is
and its covariant divergence is
The last equality follows from the identity and is the form used in the Laplace-Beltrami operator of §4.
The notation uses three indices but the symbol does not obey the tensor transformation law. Under a coordinate change, the Christoffel symbols pick up an inhomogeneous second-derivative term involving . This is not a defect of notation: it reflects the genuine fact that parallel transport on a curved manifold cannot be encoded by a tensor. The curvature tensor , defined as the commutator of covariant derivatives, is a genuine tensor. The Christoffel symbols cancel in the definition of , leaving behind only honest tensor components. The Riemann and Ricci curvature tensors computed in §6 are proper tensors; the Christoffel symbols appearing in their definitions are not.
2.5. Why the Distinction Is Critical on a Deforming Manifold
On the static reservoir of §3–§8, the tensor/matrix distinction is important for correctness but does not change the form of the equations: the domain is fixed, and a single coordinate chart suffices. On a deforming reservoir (§9), the solid skeleton displaces with a smooth map from the reference configuration to the current configuration . The deformation gradient is
where are material (Lagrangian) coordinates and are spatial (Eulerian) coordinates. Under this map, the coordinate chart on in which the permeability matrix is measured changes at every time step.
The permeability tensor is a material property of the rock: it does not change when coordinates are relabelled. Its Eulerian matrix representation does change, because the coordinate axes at a point are not the same objects as the axes at the corresponding material point . The correct object to transport forward in time is not the matrix but the push-forward of the tensor:
where are the components of the permeability tensor in the reference configuration. This is the contravariant transformation law applied to the deformation map. Confusing the matrix with the tensor on a deforming domain is equivalent to forgetting to account for the Jacobian , leading to an error of order in the permeability (which equals the volumetric strain, a measurable and sometimes large quantity in compaction reservoirs). Section §9 develops this in full.
3. The 3D Reservoir as a Riemannian Manifold
3.1. The Permeability Metric
A symmetric positive definite permeability tensor defines a Riemannian metric on by declaring : the components of the covariant metric tensor in any chart are , the entries of the matrix inverse of . The following theorem shows why this choice is canonical.
Let be the reservoir domain equipped with the Riemannian metric . The Darcy velocity is equal to , the Riemannian gradient of the pressure field.
Proof. The Riemannian gradient is defined as the unique vector field satisfying
for all tangent vectors . In coordinates, , so the condition reads , i.e., for all . Multiplying both sides by and summing over gives , i.e., . Therefore
The proof uses no properties specific to ; it holds in any dimension.
The metric measures resistance to flow, not permeability. In high-permeability rock ( large, small), the Riemannian distance between two nearby points is small: fluid traverses this distance easily, and the geometry contracts the region. In low-permeability rock ( small, large), the Riemannian distance is large. Geodesic distance therefore measures hydraulic effort rather than Euclidean distance: two points that are close in Euclidean space but separated by a tight shale barrier are far apart in the Riemannian metric of the reservoir.
3.2. Transverse Isotropy and the Diffusion Ellipsoid
For the transversely isotropic tensor , the metric is
The Riemannian unit ball is the ellipsoid
with horizontal semi-axis and vertical semi-axis . This is the diffusion ellipsoid: it describes the shape of the region reached by a unit-energy pressure pulse in unit Riemannian time. Since in most reservoirs, the ellipsoid is oblate (flattened vertically), reflecting the greater ease of horizontal flow.
In a pressure transient test, the radius of investigation at time is approximately the set of points at Riemannian distance from the well, where is the horizontal diffusivity. For a TI reservoir, this is the ellipsoid
In the early-time spherical flow regime (before the diffusion front contacts the formation top and bottom), the ellipsoid is entirely within the reservoir, and the pressure derivative behaves as on a log-log scale, distinct from the flat derivative of radial flow. This spherical flow regime is the primary diagnostic for measuring from a pressure transient test.
3.3. Volume Form and Riemannian Divergence
The Riemannian volume form on is
Here is the determinant of the matrix of covariant metric components, which equals since is the matrix inverse of . For the TI tensor, , so . High-permeability regions have a smaller Riemannian volume element: they are geometrically compressed. The Riemannian divergence of a vector field is
4. Pressure Diffusion as the 3D Laplace–Beltrami Equation
4.1. The 3D Laplace–Beltrami Operator
For a Riemannian manifold with metric and inverse metric , the Laplace–Beltrami operator acting on a smooth function is
With the permeability metric (so , the contravariant metric components equal the permeability tensor components in the current chart, and ), this becomes
4.2. Constant vs. Heterogeneous Permeability
If is spatially constant, then
and the 3D pressure equation [eq:pressure-eq] is the Laplace–Beltrami heat equation on :
Proof. When is constant, all derivatives of and vanish, so [eq:lb-explicit] reduces to . The pressure equation then takes the form [eq:heat-beltrami].
When varies with position, expanding [eq:lb-explicit] gives
The correction term, proportional to the gradient of , is non-zero whenever the permeability varies in space. It vanishes when is constant, recovering [eq:lb-equals-darcy]. This formula holds in any dimension. For the TI tensor, , and the correction involves gradients of both and . The physically correct operator for heterogeneous reservoirs is the Darcy divergence , not the Laplace–Beltrami operator. Discretising the Laplace–Beltrami form instead of the Darcy form introduces a systematic error proportional to , which is largest near facies boundaries.
4.3. Heat Kernels in 2D and 3D
The fundamental solution to the heat equation depends critically on the spatial dimension. For isotropic permeability and diffusivity , the heat kernels in two and three dimensions are:
where . The 2D kernel applies to an infinite vertical well producing from a formation of uniform thickness (the pressure diffusion is planar, independent of the -coordinate). The 3D kernel applies to a point source in a three-dimensional infinite medium.
For a point source (perforation cluster) at the origin in a constant isotropic 3D reservoir, producing at volumetric rate , the pressure drawdown is
where is the complementary error function. This satisfies the 3D heat equation with , and the appropriate point-source boundary condition at the origin.
Proof. The result follows by integrating the 3D heat kernel against the source. The key identities are: the Laplacian of in 3D is , and the convolution of the heat kernel with gives [eq:3d-drawdown]. Explicitly, verify the two limits: as , since the argument goes to infinity, so (no drawdown before production). As , , giving the steady-state Newtonian potential , which satisfies the time-independent Laplace equation at , confirming convergence to steady state.
The 2D and 3D kernels produce qualitatively different pressure signatures, reflecting a fundamental distinction in potential theory. In two dimensions, the Green's function for the Laplacian is logarithmic: the steady-state pressure from a line source grows as , which diverges as . There is no true steady state in an infinite 2D reservoir. In three dimensions, the Green's function is , which decays to zero at infinity. A point source in a 3D infinite reservoir reaches a true steady state.
For well testing, this means: a vertical well producing from a thick formation of finite height behaves as a 3D spherical source at early time (before the pressure transient contacts the top and bottom of the formation) and transitions to a 2D cylindrical (Theis) source at late time. The transition occurs near , where is the vertical diffusivity. The log-log pressure derivative shows a slope of during spherical flow and a flat plateau during radial flow. Identifying and measuring both regimes is the only field method for determining independently of .
4.4. The Spherical-to-Radial Flow Transition
The transition between 3D spherical and 2D radial flow is a concrete Riemannian geometry result: the dimension of the heat kernel changes as the pressure diffusion ellipsoid transitions from three-dimensional to quasi-two-dimensional.
Consider a vertical well of length centred at the origin in a TI reservoir with permeabilities , and diffusivities , . The pressure response satisfies:
(i) For (early time), the pressure drawdown approximates a 3D spherical kernel centred on the midpoint of the well:
where is the horizontal distance, , and is the effective Riemannian distance from the well in the TI metric.
(ii) For (late time), the vertical mode has equilibrated and the pressure drawdown approaches the 2D Theis form:
where is the exponential integral.
Proof sketch. The TI metric maps the reservoir to a rescaled space with coordinates , , , in which the metric is Euclidean (shown in §5.2). In this space, the Riemannian distance from the well axis is . At early time, before the diffusion front is constrained by the finite well length, the 3D heat kernel applies in the rescaled space, giving [eq:spherical-regime]. At late time, the -direction has equilibrated over the well length and the problem reduces to a 2D Laplacian in the -plane, recovering the Theis solution [eq:radial-regime].
5. 3D Streamlines as Geodesics
5.1. Christoffel Symbols for Diagonal 3D K
For a diagonal permeability tensor in three dimensions (with coordinates ), the metric is (no sum). The Levi-Civita Christoffel symbols are
where the outer index does not participate in a sum (since is diagonal, ).
For with spatially varying entries, the non-vanishing Christoffel symbols are:
All components with three distinct indices vanish. If is spatially constant, all , and the geodesics of are straight lines.
Proof. Compute each case from [eq:christoffel] using and .
For : .
For , , : .
For , , : .
For constant , all partial derivatives of vanish and so all Christoffel symbols are zero. The geodesic equation reduces to , giving straight-line solutions.
As noted in §2.4, the symbols carry three indices but are not tensor components: they transform inhomogeneously under coordinate changes, picking up a second-derivative term involving . The Christoffel symbols derived above are valid in the coordinate chart aligned with the principal axes of . In a rotated chart the formulas change (because the matrix is no longer diagonal), even though the underlying connection and hence the geodesics are unchanged.
5.2. The 3D Rescaled Coordinate Transformation
For a constant diagonal tensor , the coordinate change
(no summation) transforms the metric to the standard Euclidean form in three dimensions:
For a constant-permeability reservoir with , fluid streamlines are straight lines in the rescaled coordinate system . In the original coordinates, a streamline making angle with the -axis in the rescaled system makes angle in the original system where .
For the TI reservoir with , , the rescaled domain is . The vertical dimension is stretched by the factor , so a reservoir that is geometrically thin vertically may be effectively isotropic in the rescaled coordinates when is large enough.
5.3. The Darcy–Snell Law at Permeability Interfaces
When a streamline crosses a planar boundary between two isotropic regions with permeabilities and , it does not continue in the same direction. The angle of incidence and the angle of refraction are related by an exact analogue of Snell's law from optics.
Consider a planar permeability interface at , with isotropic permeability for and for . A geodesic (streamline) arriving at the interface at angle measured from the interface normal refracts to angle according to
For and , no refracted geodesic exists and the streamline undergoes total reflection at the interface.
Proof. By Fermat's principle applied to the Riemannian metric, geodesics minimise the arc-length functional . This is formally identical to optical path minimisation with refractive index : Snell's law states , which translates to [eq:darcy-snell]. More directly: since depends only on , the Lagrangian is independent of the tangential coordinates . The Euler–Lagrange equations give the conserved quantities and . Writing the tangential speed and the Riemannian arc-length speed (a constant for arc-length parametrisation), the conserved tangential co-momentum is . Setting this equal across the interface gives [eq:darcy-snell]. Total reflection occurs when no real satisfies [eq:darcy-snell], i.e., when .
The Darcy–Snell law has direct consequences for fault seal analysis. A streamline approaching a low-permeability fault (shale smear or cemented zone, with ) at a grazing angle satisfies whenever , triggering total reflection: the streamline cannot penetrate the fault and is deflected along it. The critical permeability contrast for total reflection of grazing-incidence flow is . For (nearly parallel flow), total reflection requires only , a contrast of 3 percent. Even modest permeability reductions near faults can seal oblique flow paths entirely.
This has practical consequences for secondary recovery: waterflood streamlines can bypass a fault compartment even when the fault transmissibility is non-zero, if the approach angle exceeds the critical value. The geometry predicts compartmentalisation that a transmissibility multiplier alone would not capture.
5.4. Jacobi Fields and Streamline Spreading
In three dimensions, the transverse neighbourhood of a geodesic is two-dimensional. The Jacobi equation governs how nearby geodesics (streamlines) spread apart:
where is the covariant derivative along the geodesic , is a Jacobi field (transverse deviation vector, ), and is the Riemann curvature tensor. In 3D, there are two independent transverse directions, and two independent Jacobi fields govern the spreading of the flow tube cross-section.
Let be the cross-sectional area of a flow tube at arc-length along the central geodesic. To leading order in curvature,
where is the Ricci curvature in the flow direction. If , the flow tube area decreases (streamlines focus): the formation acts as a converging lens for fluid. If , the area increases (streamlines defocus): the formation acts as a diverging lens. For the isotropic conformal metric , positive Ricci curvature in the flow direction corresponds to regions where the permeability increases along the streamline path, focusing flow toward high-conductivity channels. Negative Ricci curvature corresponds to permeability decreasing along the path, defocusing the flow into the surrounding rock.
The Jacobi field equation is the 3D geometric description of the phenomenon that practitioners call flow channelling: preferential flow through high-permeability streaks or fractures, resulting in early breakthrough in secondary recovery operations. The curvature of the permeability field determines whether and how rapidly channelling develops along a given flow path.
6. Curvature of the 3D Permeability Field
6.1. The 3D Conformal Isotropic Metric
For an isotropic but spatially variable permeability , the permeability tensor is and the metric is
This is a conformally flat metric in : it is related to the Euclidean metric by the scalar conformal factor . In index notation, and , where is the Euclidean metric tensor (components: 1 on the diagonal, 0 off it, in every orthonormal chart). Writing , the conformal factor is and hence .
The general formula for the scalar curvature of a conformally flat metric on is
where and are the ordinary Euclidean operators. For this gives the Liouville formula . For , the formula acquires a second term.
6.2. The 3D Scalar Curvature Formula
For the conformally flat isotropic metric in three dimensions, the scalar curvature is
where and are the Euclidean Laplacian and gradient. In particular, whenever is constant.
For comparison, in two dimensions the same metric yields
The 3D formula has a larger coefficient in front of , meaning that sharp permeability gradients produce stronger curvature effects in 3D than in 2D.
Proof. Set and compute the ingredients:
For the Euclidean Laplacian of :
Substituting into [eq:conformal-curvature] with (so , ) and :
Substituting [eq:phi-gradient] and [eq:phi-laplacian]:
Collecting terms:
For constant , both and , giving , where is the Laplacian on the flat Euclidean background (acting on the scalar field ), distinct from the Laplace-Beltrami on the curved manifold . The 2D formula [eq:scalar-curvature-2d] follows from the same calculation with (the term vanishes in [eq:conformal-curvature] for ).
6.3. The Weyl Tensor Vanishes in 3D
In any dimension, the Riemann curvature tensor decomposes into a trace-free part (the Weyl tensor ) and a part determined by the Ricci tensor. In three dimensions, a special algebraic accident occurs: the Weyl tensor has no independent components and vanishes identically.
In three dimensions, the Weyl curvature tensor vanishes for every conformally flat metric , including in particular the isotropic permeability metric . The full Riemann curvature tensor is determined entirely by the Ricci tensor via
Proof. In dimension , the Weyl tensor is defined as the totally trace-free part of the Riemann tensor. A dimension count shows that in 3D the Riemann tensor has 6 independent components, and the Ricci tensor also has 6 independent components (as a symmetric matrix). The Weyl tensor therefore has zero independent components, and the Riemann tensor is fully determined by the Ricci tensor via the identity [eq:riemann-3d]. For a conformally flat metric, the Weyl tensor vanishes in any dimension by definition of conformal flatness; in 3D this is an empty condition, since all 3-manifolds are conformally flat (the Cotton tensor, not the Weyl tensor, is the correct conformal invariant in 3D).
The vanishing of the Weyl tensor in 3D means there is no propagating curvature, no gravitational-wave analogue for reservoir pressure. In 4D general relativity, the Weyl tensor carries gravitational wave degrees of freedom; in 3D it is absent. For the reservoir, this means the full geometry of the permeability field is locally determined by the scalar curvature (and the Ricci tensor, which carries slightly more information than alone). There are no long-range curvature effects that are invisible in the scalar curvature. A sensor measuring local pressure at a point in the formation sees all the geometric information available.
6.4. Curvature and Pressure Transient Anomalies
The scalar curvature in [eq:scalar-curvature-3d] has a direct well-test interpretation. Since , large signals one of two conditions: large absolute variation in permeability ( large, i.e., concave or convex permeability profiles), or large relative gradients ( large, i.e., sharp layering boundaries or fracture edges). Both conditions produce departures from the Theis/spherical pressure signatures. In quantitative terms, the pressure satisfies where the Laplace–Beltrami operator carries the curvature corrections in [eq:lb-correction], and those corrections are proportional to , which is itself related to the scalar curvature through . A high-curvature zone reached by the pressure diffusion front at time produces an anomaly in the second derivative of pressure with respect to whose amplitude is proportional to .
7. Pseudosteady-State and 3D Spectral Theory
7.1. The 3D Eigenvalue Problem
At late times in a bounded reservoir, the pressure profile relaxes to a pseudosteady-state regime in which every point declines at the same exponential rate. This is the first eigenfunction of the Laplace–Beltrami operator.
For a bounded reservoir with Dirichlet outer boundary condition , the pressure modes satisfy
where is the Laplace–Beltrami operator for the metric . The eigenvalues are real, positive, and discrete.
The eigenvalues are scalars: they do not depend on the coordinate chart used to describe the reservoir. The eigenvalue equation is written in terms of the Laplace-Beltrami operator , which is intrinsic to the Riemannian manifold . The explicit formula for on the rectangular parallelepiped uses a specific coordinate chart aligned with the box axes, but the values are the same in every chart.
7.2. Rectangular Parallelepiped with TI Anisotropy
For a rectangular parallelepiped reservoir with transversely isotropic permeability tensor and horizontal diffusivity , the Dirichlet eigenvalues of are
where is the anisotropy ratio. The fundamental (smallest) eigenvalue is and the corresponding pseudosteady-state time constant is
Proof. In the rescaled coordinates , , , the metric is Euclidean (Corollary [geodesic-streamline-3d]) and the domain transforms to with , , . The Laplace–Beltrami operator in rescaled coordinates is the standard Euclidean Laplacian , and the Dirichlet problem on a rectangular parallelepiped has eigenfunctions
with eigenvalues
Dividing by to restore physical units and factoring out gives [eq:pss-eigenvalues-3d]. The time constant follows by inverting .
The anisotropy ratio enters only the -indexed (vertical) modes. For a reservoir with large and relatively small , the vertical mode may have a much larger eigenvalue than the horizontal modes: (if such a mode existed). In practice, this means the vertical pressure variation equilibrates much faster than the horizontal variation in a highly layered reservoir. The first non-trivial vertical overtone has eigenvalue ; the ratio gives the time scale separation between vertical and horizontal equilibration.
The full 3D spectral decomposition is
where the coefficients are determined by the initial condition. For , only the fundamental mode survives: , the three-dimensional pseudosteady state. The fundamental eigenvalue is directly measurable as the slope of the pressure-versus-time curve on a semi-log scale during the pseudosteady-state period.
8. The SPD(3) Manifold of Permeability Tensors
8.1. Permeability Space as a Manifold
Two distinct Riemannian manifolds appear in reservoir geometry, and it is worth separating them precisely. The first is the physical reservoir domain, the open region occupied by the formation. That region has no intrinsic Riemannian structure of its own: it is simply an open subset of Euclidean three-space. The Riemannian metric is not a property of the domain as a topological space but of the material sitting inside it. The reservoir domain is the base space; the geometry lives in the fibre.
The second manifold is the space of pointwise material properties. At every spatial location , the rock possesses a permeability tensor . The values that can take form not a vector space but a manifold: the set of all symmetric positive definite matrices, denoted . The permeability field is therefore a smooth section of a fibre bundle over : the base manifold is the physical domain , the fibre at each is a copy of , and is a section of that bundle. More precisely, the fibre is the space of coordinate matrices of the permeability tensor in a chosen chart. A change of chart at acts on the fibre by the congruence (from the transformation law [eq:K-transform]). The fibre bundle is therefore associated to the frame bundle of , with structure group acting by congruence. The affine-invariant metric on is invariant under this action, which is why it is the natural choice for reservoir applications.
As a topological space, sits inside the tensor product space : a matrix is a rank-2 tensor, and its nine components embed it in . Imposing symmetry cuts this to the 6-dimensional subspace , and imposing positive definiteness selects the open cone . It is the fibre that lives in this tensor power, not the physical domain. This distinction carries forward when collections of tensors of different ranks are associated to a point: a scalar permeability, a full permeability tensor, and an elasticity tensor of rank 4 (living in ) are all fibres over the same base point , contributing to a multi-rank vector bundle of material properties.
With this structure in place, the geodesic interpolation of permeability tensors is a question about geodesics in the fibre manifold . Given two measurements and at distinct base points, or two rock samples whose blended properties must be estimated, the geodesic in connecting them is the physically correct interpolant.
The set of symmetric positive definite matrices,
is a smooth Riemannian manifold of dimension (six independent entries) with the affine-invariant (Fisher–Rao) metric
where are symmetric matrices (tangent vectors at ). The elements of are symmetric positive definite matrices, that is, the coordinate matrix representations of permeability tensors in a fixed chart. The manifold structure is therefore chart-dependent: the geodesic distance between two permeability states is computed between their matrix representations, and is consistent only if both matrices are expressed in the same coordinate chart.
The affine-invariant metric is the natural choice for permeability tensors: it is invariant under congruence transformations for any invertible , corresponding to invariance under change of coordinate frame in the reservoir. No particular drilling orientation or bed-dip coordinate system is preferred by the geometry.
8.2. Geodesic Interpolation of 3D Permeability
The unique minimising geodesic from (the coordinate matrix of the permeability tensor at formation point ) to (the coordinate matrix at point , both expressed in the same chart) is
and the geodesic distance between the two tensors is
where are the generalised eigenvalues of relative to and is the Frobenius norm.
The naive arithmetic mean is not a geodesic on and violates the physical symmetry of the problem: the arithmetic midpoint of and is not the inverse of the arithmetic midpoint of and . In other words, arithmetic interpolation of permeabilities is inconsistent with arithmetic interpolation of resistivities. The geodesic interpolation [eq:spd-geodesic] satisfies this consistency property: the geodesic midpoint of and is exactly the inverse of the geodesic midpoint of and .
For the 3D TI tensor, arithmetic averaging of and independently is equivalent to arithmetic interpolation of the diagonal entries, and it overestimates the effective horizontal permeability of a mixed facies zone by the arithmetic-vs-harmonic mean discrepancy. Geodesic interpolation in naturally accounts for the coupling between horizontal and vertical components when the principal axes of the two formation tensors are not aligned (e.g., when the bedding dip changes between the two measurement points).
8.3. Tensor Rotation and Coordinate Invariance
Under a rotation , the permeability tensor transforms as . The invariants under this transformation are:
These are the three elementary symmetric functions of the eigenvalues of , and they are coordinate-invariant properties of the tensor.
Proof. since . by cyclic invariance. by the same argument.
The geometric mean permeability , the arithmetic mean , and the quadratic mean are all coordinate-invariant measures of the permeability tensor. For the TI tensor, these evaluate to , , and , each representing a different averaging convention.
9. The Deforming Reservoir: Biot Poroelasticity and Evolving Geometry
9.1. The Static Assumption and When It Fails
Sections §3–§8 treat the Riemannian manifold as static: the domain is fixed, the permeability tensor field is time-independent, and the metric does not evolve. The pressure equation is a heat equation on a frozen geometry.
This is appropriate for stiff formations where pore pressure depletion does not significantly change the pore geometry. For many reservoir types it is not appropriate. In chalk reservoirs (Ekofisk, Valhall in the North Sea), the rock matrix is highly compressible; Ekofisk exhibited several metres of seabed subsidence during production, driven by compaction of the chalk formation at depth. In tight sandstones and shales, effective stress changes alter pore throat geometry and hence permeability by factors of two to five over a production lifetime. In these settings the solid skeleton deforms as fluid is produced, porosity decreases, permeability changes, and the metric evolves. The manifold is not static: it is deforming.
The correct framework for coupled solid deformation and fluid flow in porous media is Biot poroelasticity, developed by Maurice Biot in a series of papers beginning in 1941. It extends Terzaghi's 1923 one-dimensional consolidation theory to three dimensions and provides the full coupled PDE system from which the deforming metric emerges naturally.
9.2. Kinematics of the Deforming Solid
Let denote the reference (undeformed) configuration of the reservoir at time , with material points labelled by Lagrangian coordinates (). At time , the solid skeleton occupies the current configuration , with Eulerian coordinates . The motion is described by a smooth diffeomorphism
The deformation gradient is the mixed tensor
with Jacobian . The solid displacement field in the linearised (small-strain) regime has Eulerian components with .
The linearised strain tensor is the symmetric covariant tensor
where are the covariant components of the displacement. The volumetric dilatation is the scalar trace
which in Cartesian coordinates reduces to .
9.3. Biot Constitutive Relations
Linear Biot poroelasticity couples the solid stress to the fluid pressure through two constitutive equations. The first relates the total stress tensor (a contravariant tensor) to the strain and the pressure:
Here is the drained elastic stiffness tensor, a tensor satisfying the major and minor symmetries . For an isotropic solid it reduces to two Lamé parameters: . The scalar is the Biot-Willis coefficient, measuring the ratio of pore volume change to total volume change at constant fluid pressure; for an incompressible solid grain.
The second constitutive relation defines the increment of fluid content (volume of fluid added per unit reference volume of porous medium):
where is the Biot modulus, the inverse of the combined compressibility of the fluid and the pore space at constant volumetric strain.
For consolidated sandstones, and . For chalk, and , reflecting the high compressibility of the chalk matrix. For hard crystalline basement rock, and is very large, recovering near-incompressible behaviour. The undrained bulk modulus is , where is the drained modulus.
9.4. Governing Equations in Abstract Index Form
The three governing equations of quasistatic Biot poroelasticity are:
Solid equilibrium (inertia neglected on reservoir timescales):
Fluid mass conservation:
where is a volumetric source/sink term (positive for injection, negative for production) and are the contravariant components of the Darcy flux vector.
Darcy transport with time-dependent permeability:
Here are the contravariant components of the permeability tensor in the current configuration, and is the Riemannian gradient of with respect to the time-dependent metric . The identification of the Darcy flux as a Riemannian gradient holds at every time by the same argument as in §3, applied to the instantaneous metric.
Substituting [eq:biot-zeta] and [eq:darcy-time] into [eq:fluid-mass] gives the coupled fluid equation:
The left side is the rate of change of fluid content; the right side is the Riemannian divergence of the Darcy flux plus sources. Equations [eq:solid-eq] and [eq:biot-fluid] are coupled: the pressure drives the solid through the term in [eq:solid-eq], and the solid deformation drives the fluid through the term in [eq:biot-fluid].
9.5. Porosity Evolution and Kozeny-Carman Permeability
From the Biot constitutive relation [eq:biot-zeta], the porosity evolves as
where is the initial porosity. The change in porosity is driven jointly by solid compaction (the term) and by direct pore compressibility (the term).
The Kozeny-Carman relation connects porosity to permeability through the pore geometry. For a medium with tortuous pore channels of characteristic grain size , the scalar permeability scales as
first derived by Kozeny (1927) and Carman (1937). The dependence on is steep: a 10% reduction in porosity reduces permeability by roughly 25-40%, depending on the current porosity value. For the full 3D anisotropic tensor, the Kozeny-Carman structure is preserved if the anisotropy arises solely from pore-channel orientation rather than from changes in pore geometry at each scale. In that case
where are the reference permeability tensor components, and the scalar Kozeny-Carman factor is
Note that (the reference state is recovered) and (permeability increases with porosity). The key property of equation [eq:KC-tensor] is that it preserves the tensor structure of : the anisotropy ratio, the orientation of the principal axes, and the eigenvector directions are all unchanged by compaction. Only the overall magnitude scales. This is the assumption that the pore network remains geometrically similar under compression, a good approximation for matrix compaction in intergranular porosity, and a poor one for fracture closure (where individual fracture sets may close while others remain open).
Taking the time derivative of [eq:KC-tensor] and using from [eq:porosity-evol]:
9.6. The Evolving Riemannian Metric
The Riemannian metric is . Under the Kozeny-Carman update [eq:KC-tensor], the metric scales as
where is the reference metric. This is a conformal deformation of the reference metric: the metric at time is a scalar multiple of the reference metric, with conformal factor . Since when porosity has increased (dilation), we have and the metric contracts, reflecting greater permeability. Since when porosity has decreased (compaction), the metric expands, reflecting lower permeability and greater hydraulic resistance.
Taking the time derivative of [eq:metric-evolution]:
This is the metric evolution equation. The metric undergoes a uniform conformal rescaling at a rate determined by the rate of change of porosity and the Kozeny-Carman sensitivity . The evolution is a scalar multiple of (no mixing of tensor indices): the off-diagonal components of maintain the same ratio to the diagonal components as at .
Two metrics and on a manifold are conformal if for a smooth positive scalar function . Under the Kozeny-Carman permeability model, for all , so the metric remains in the conformal class for all time. A consequence is that the angle between any two vectors is preserved by the metric evolution. The evolution changes the scale of the geometry (distances, volumes) but not its shape (angles, geodesic directions). In flow terms: the directions of streamlines are unchanged by isotropic compaction; only their speeds change.
9.7. Theorem: Biot-Darcy on the Deforming Riemannian Manifold
Let be the time-parametrised Riemannian manifold with metric , where is the reference permeability tensor field, is the reference porosity, and is the Kozeny-Carman factor [eq:KC-factor]. Under linear Biot poroelasticity with quasistatic solid equilibrium, the coupled system governing and is:
where is the Levi-Civita connection of , and the right-hand side of (III) is a scalar multiple of .
Proof.
Part (I): the fluid equation as Laplace-Beltrami on .
The Darcy flux in index notation is . Since (the contravariant metric components equal the permeability tensor components in the current metric, by definition of ), we have
The covariant divergence of with respect to is
Substituting [eq:q-grad]:
where the last equality is the definition of the Laplace-Beltrami operator applied to with the instantaneous metric . Substituting into the fluid mass conservation equation [eq:fluid-mass] with gives equation (I).
Part (II): the solid equation.
Expanding with the Biot stress [eq:biot-stress]:
Since (metric compatibility of the Levi-Civita connection), the pressure term simplifies: . Rearranging gives equation (II).
Part (III): the metric evolution.
The permeability tensor components satisfy by the Kozeny-Carman assumption [eq:KC-tensor]. Differentiating with respect to time and applying the chain rule:
Substituting from [eq:porosity-evol] gives equation (III).
9.8. Corollary: Conformal Metric Flow and Instantaneous Curvature
Under the hypotheses of Theorem [biot-darcy-theorem], the metric satisfies with conformal factor . For the isotropic case with scalar permeability , the scalar curvature of at any instant is
where all differential operators are with respect to the flat Euclidean background, and is the scalar permeability field at time .
Proof. Since with and , the instantaneous metric is . This is the isotropic conformally flat metric with scalar permeability . The curvature formula from §6 applies directly with .
A compacting reservoir in which porosity decreases uniformly reduces uniformly, leaving unchanged and preserving the curvature structure. A reservoir with spatially heterogeneous compaction (fault blocks compacting at different rates, for instance) develops spatial gradients in over time that were not present in the reference state, and hence develops non-zero curvature in regions that were previously flat.
9.9. Remarks on Scope and Extensions
Equation (II) of Theorem [biot-darcy-theorem] omits the inertial term , justified when the solid acceleration is negligible compared to the divergence of the stress tensor. On production timescales (days to decades), pressure diffusion is orders of magnitude slower than elastic wave propagation, and the solid skeleton equilibrates instantaneously relative to the fluid pressure. The quasistatic assumption fails on seismic timescales (milliseconds), where the full Biot dynamic equations govern P-wave and S-wave propagation with two compressional modes: a fast wave (in-phase solid and fluid motion) and a slow Biot wave (out-of-phase, highly attenuated). The slow Biot wave is the acoustic analogue of the diffusion mode studied in §4, but at seismic rather than reservoir frequencies.
The conformal evolution follows from the assumption that compaction scales all permeability tensor components identically. This holds for intergranular matrix porosity but not for fracture networks. In a naturally fractured reservoir, individual fracture sets have different normal stiffnesses and close at different rates under increasing effective stress. If the set aligned with the minimum horizontal stress closes while the set aligned with the maximum horizontal stress remains open, the anisotropy ratio changes, and the evolution of is no longer conformal: the metric deforms differently in different directions, mixing the principal axes. The full permeability update then requires a time-dependent path in the fibre (§8) that is not a scalar scaling of the initial point: it is a genuine geodesic in the fibre manifold.
Equation [eq:bdt-metric] has a superficial resemblance to Ricci flow, , in that both describe a PDE governing the metric tensor. The analogy ends there. Ricci flow is an intrinsic geometric evolution: the right-hand side is determined entirely by the Ricci curvature of the current metric. The Biot metric evolution [eq:bdt-metric] is externally driven: the right-hand side is a scalar multiplied by , and is set by the fluid pressure and solid displacement, not by the curvature of the metric. The evolution is a one-parameter conformal rescaling driven by a coupled PDE system, not a curvature-shortening flow. The relevant mathematical structure is a parametrised family of metrics indexed by the solution of the Biot system, not a geometric flow in the sense of Hamilton or Perelman.
10. Embedded Reservoir Monitoring with cartan
10.1. From Manifold Theory to Microcontrollers
The geometric framework developed in the preceding sections is not merely an analytic tool. It is directly implementable on the same low-power microcontrollers deployed in downhole monitoring systems, surface well-head sensors, and field data acquisition units. Well-site instrumentation has historically been separated from reservoir modelling by a large computational gap: sensors record pressures and temperatures, and that raw data is shipped to centralised compute infrastructure for analysis. The gap is closing. Modern ARM Cortex-M4 and Cortex-M33 chips, available at commodity prices, have hardware floating-point units capable of executing the geodesic computations above in real time on battery power.
The cartan library implements the manifold structures of this post with explicit no_std support. The cartan-core crate defines the Manifold, Connection, and Curvature traits; cartan-manifolds provides a concrete Spd<N> struct for with the affine-invariant metric; and cartan-geo provides Geodesic<M> for parameterised geodesic sampling. All three crates carry
#![cfg_attr(not(feature = "std"), no_std)]
and depend only on nalgebra (linear algebra, also no_std) and libm (elementary functions without the OS floating-point runtime) when compiled without the std feature. The result is a complete 3D geometry stack that runs on bare-metal hardware with no heap allocator required.
10.2. The Spd<3> Struct in cartan-manifolds
The Spd<N> struct represents the manifold . For reservoir applications, . A point on the manifold is an SMatrix<f64, 3, 3> (a fixed-size symmetric positive definite matrix from nalgebra), and a tangent vector is also an SMatrix<f64, 3, 3> (a symmetric matrix in ).
The exponential map at in direction is
and the logarithmic map is
Both are implemented via eigendecomposition of the symmetrised argument using the nalgebra symmetric eigensolver, which is no_std compatible. The matrix square roots and matrix logarithm are computed through the eigendecomposition: for a symmetric matrix , one has and .
10.3. Geodesic Interpolation on a Microcontroller
A pressure-while-drilling tool records the 3D formation permeability tensor at discrete depths as the bit advances through heterogeneous rock. The onboard microcontroller must interpolate between consecutive tensor measurements to produce a continuous permeability model for real-time pore pressure prediction. Arithmetic interpolation of the tensor components produces physically inconsistent estimates near facies boundaries, as noted in §8.2. Geodesic interpolation on produces the geometrically correct result.
The following code demonstrates the pattern using cartan-manifolds and cartan-geo in a no_std context:
// Cargo.toml (embedded target):
// [dependencies]
// cartan-manifolds = { version = "0.1", default-features = false }
// cartan-geo = { version = "0.1", default-features = false, features = ["alloc"] }
// nalgebra = { version = "0.33", default-features = false, features = ["libm"] }
#![no_std]
extern crate alloc;
use cartan_manifolds::spd::Spd;
use cartan_geo::geodesic::Geodesic;
use cartan_core::manifold::Manifold;
use nalgebra::SMatrix;
type K3 = SMatrix<f64, 3, 3>;
/// Interpolate between two 3D formation permeability tensors K0 and K1
/// at fractional depth t in [0, 1] using the SPD(3) geodesic.
/// Returns the permeability tensor at the interpolated depth.
fn interpolate_permeability(k0: K3, k1: K3, t: f64) -> K3 {
let spd = Spd::<3>::new();
let geodesic = Geodesic::two_point(&spd, k0, k1)
.expect("K0 and K1 must be valid SPD(3) matrices");
geodesic.at(t)
}
The Geodesic::two_point constructor calls spd.log(&k0, &k1) to compute the initial velocity, and geodesic.at(t) evaluates spd.exp(&k0, &(t * v)). The computation uses only stack allocation and fixed-size matrices. On an STM32H7 at 400 MHz, the three-dimensional geodesic evaluation completes in under 50 microseconds, comfortably within the budget of any drilling telemetry system.
10.4. Real-Time Curvature Monitoring
Beyond interpolation, the cartan-geo crate provides CurvatureQuery<M> for computing sectional, Ricci, and scalar curvature at a point. For the manifold, the sectional curvature of the plane spanned by symmetric matrices is
where and is the matrix commutator. The curvature is non-positive everywhere on , which makes it a Cartan-Hadamard manifold: the geodesic between any two permeability tensors is unique and globally defined, and there is no cut locus. This non-positive curvature is the geometric counterpart of the physical fact that the space of valid permeability tensors has no "wrapping" topology: every permeability state is unambiguously interpolable from any other.
On a field data acquisition board, a formation curvature alarm is implementable as follows: if the scalar curvature of the current permeability estimate (from cartan_geo::curvature::scalar_at) exceeds a threshold, indicating rapid permeability variation, the board flags that the pore pressure model should fall back from the Theis approximation to a full numerical solve.
use cartan_geo::curvature::scalar_at;
use cartan_manifolds::spd::Spd;
fn formation_curvature_alarm(k_current: K3, threshold: f64) -> bool {
let spd = Spd::<3>::new();
match scalar_at(&spd, &k_current) {
Ok(r) => r.abs() > threshold,
Err(_) => false,
}
}
The scalar_at function is available in no_std mode, using only fixed-size matrix arithmetic and libm for square roots.
10.5. Why no_std Matters for Oil and Gas
Downhole tools operate under severe constraints. Temperatures reach to in deep wells. Vibration from the drill string imposes shock loads of or more. Power budgets for battery-operated logging tools are typically 50 to 200 milliwatts. Operating systems cannot be run reliably at these temperatures and power levels; the hardware runs bare-metal firmware on radiation-hardened or automotive-grade microcontrollers.
The no_std constraint is therefore not a performance optimisation; it is a deployment requirement. A geometry library that depends on a heap allocator, a thread scheduler, or OS-level floating-point runtime cannot be used downhole. cartan's architecture, where the standard library is optional and all core computation uses stack allocation and libm, is precisely the design that makes this class of application possible.
The broader implication is that the mathematical sophistication of 3D Riemannian reservoir geometry need not be concentrated in a remote compute cluster. The same geodesic computations, curvature evaluations, and tensor interpolations described in this post can run in real time, at the drill bit, in the same environment that generated the data. This closes the loop between measurement and model in a way that batch-mode centralised analysis cannot.
11. Conclusion
Darcy's law is older than the theory of Riemannian geometry. Riemann presented his habilitation lecture in 1854; Darcy published his filtration experiments two years later in 1856. The two bodies of mathematics developed independently for over a century before reservoir engineers and applied mathematicians began to recognise their connection. In three dimensions, the identification is complete: the permeability tensor is a Riemannian metric, Darcy flux is the Riemannian gradient, pressure diffusion is the Laplace–Beltrami heat equation, streamlines are geodesics, and permeability interfaces refract streamlines according to a Darcy–Snell law exact in form and derivation. The scalar curvature of the isotropic permeability metric is , differing from the 2D formula by the larger coefficient that makes sharp gradients geometrically more significant in three-dimensional flow. The Weyl curvature vanishes identically in 3D, so the full geometry is locally determined by and the Ricci tensor alone.
Each of these results is a theorem, not a heuristic, and each has a practical well-test or simulation consequence. The Darcy–Snell law predicts streamline deflection and total reflection at fault seals. The spherical-to-radial flow transition distinguishes from in a pressure build-up test. The 3D eigenvalue formula [eq:pss-eigenvalues-3d] gives the pseudosteady-state time constant of a layered compartment as a function of all three reservoir dimensions and the anisotropy ratio. Geodesic interpolation on provides consistent formation modelling across facies boundaries where arithmetic tensor averaging fails.
The cartan library makes these computations available in a no_std Rust crate that runs on bare-metal ARM microcontrollers. Well-site monitoring boards can execute the same manifold arithmetic described here in real time, at the formation. The gap between reservoir theory and field instrumentation is a software and architecture problem, and it is one that Rust's ownership model and no_std ecosystem are well positioned to close.
The extension to deforming reservoirs (§9) shows that the static geometry is the special case of a richer structure. Biot poroelasticity couples the fluid pressure equation to the solid skeleton deformation, and under the Kozeny-Carman permeability model the Riemannian metric evolves conformally: with . The curvature formulae and spectral theory of §6–§7 apply at each instant to the current metric. What was a fixed geometric stage becomes a parametrised family of geometries driven by the coupled PDE system: a deforming manifold whose shape is determined by the rock's mechanical response to fluid extraction.
References
- H. Darcy. Les Fontaines Publiques de la Ville de Dijon. Victor Dalmont, Paris, 1856.
- M. Muskat. The Flow of Homogeneous Fluids through Porous Media. McGraw-Hill, New York, 1937.
- C. V. Theis. "The relation between the lowering of the piezometric surface and the rate and duration of discharge of a well using ground-water storage." Transactions of the American Geophysical Union, 16(2):519–524, 1935.
- G. de Marsily. Quantitative Hydrogeology. Academic Press, Orlando, 1986.
- M. P. do Carmo. Riemannian Geometry. Birkhäuser, Boston, 1992.
- P.-A. Absil, R. Mahony, R. Sepulchre. Optimization Algorithms on Matrix Manifolds. Princeton University Press, 2008.
- R. Bhatia. Positive Definite Matrices. Princeton University Press, 2007.
- F. Ding, T. Bui. "Riemannian geometry of the space of permeability tensors in petroleum reservoir simulation." Journal of Petroleum Science and Engineering, 2018.
- L. Onsager. "Reciprocal Relations in Irreversible Processes." Physical Review, 37(4):405–426, 1931.
- M. A. Biot. "General theory of three-dimensional consolidation." Journal of Applied Physics, 12(2):155–164, 1941.
- K. Terzaghi. Theoretical Soil Mechanics. Wiley, New York, 1943.
- J. R. Rice, M. P. Cleary. "Some basic stress diffusion solutions for fluid-saturated elastic porous media with compressible constituents." Reviews of Geophysics and Space Physics, 14(2):227–241, 1976.
- O. Coussy. Poromechanics. Wiley, Chichester, 2004.
- P. C. Carman. "Fluid flow through granular beds." Transactions of the Institution of Chemical Engineers, 15:150–166, 1937.