ertkit.ves.LayeredModel#

class ertkit.ves.LayeredModel(*, resistivity, thickness)#

A horizontally layered earth.

Layer \(i\) has resistivity \(\rho_i\); layers \(1, \dots, N-1\) have thickness \(h_i\), and layer \(N\) is a half-space.

Parameters:
resistivityarray_like

Layer resistivities in ohm meters, from the top; length \(N\).

thicknessarray_like

Thicknesses in meters of the upper \(N - 1\) layers. Empty for a homogeneous half-space.

Raises:
ValueError

If a value is not positive and finite, or if there is not exactly one thickness fewer than resistivities.

Examples

>>> from ertkit.ves import LayeredModel
>>> model = LayeredModel(resistivity=[150.0, 30.0, 800.0], thickness=[2.0, 15.0])
>>> model.n_layers
3
>>> model.depths.tolist()
[2.0, 17.0]
property conductance#

Longitudinal conductance \(S_i = h_i/\rho_i\) of the upper layers, in siemens.

property depths#

Depths in meters of the bottoms of the upper \(N - 1\) layers.

property n_layers#

Number of layers, including the bottom half-space.

property transverse_resistance#

Transverse resistance \(T_i = h_i \rho_i\) of the upper layers, in ohm square meters.