Core Physics¶
Low-level seismic physics functions: moment tensors, magnitude conversions, and the Davis (1986) point source displacement model.
Davis (1986) Point Source Model¶
davis_point_source ¶
davis_point_source(x: ndarray, y: ndarray, xcen: float, ycen: float, depth: float, Mxx: float, Myy: float, Mzz: float, Mxy: float, Myz: float, Mzx: float, nu: float = DEFAULT_POISSON_RATIO, mu: float = DEFAULT_SHEAR_MODULUS_PA) -> Tuple[np.ndarray, np.ndarray, np.ndarray]
Compute surface displacement from a point moment tensor source.
Based on Davis (1986) formulation for a point source in an elastic half-space. This is the far-field approximation valid when the observation distance is much larger than the source dimension.
Coordinate system: - x: East (positive eastward) - y: North (positive northward) - z: Up (positive upward at surface, z=0) - Depth is positive downward
| PARAMETER | DESCRIPTION |
|---|---|
x
|
Observation coordinates in meters (can be 1D or 2D arrays)
TYPE:
|
y
|
Observation coordinates in meters (can be 1D or 2D arrays)
TYPE:
|
xcen
|
Source epicenter location in meters
TYPE:
|
ycen
|
Source epicenter location in meters
TYPE:
|
depth
|
Source depth in meters (positive downward)
TYPE:
|
Mxx
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
Myy
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
Mzz
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
Mxy
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
Myz
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
Mzx
|
Moment tensor components in N·m (ENU convention)
TYPE:
|
nu
|
Poisson's ratio (default: 0.25)
TYPE:
|
mu
|
Shear modulus in Pa (default: 30 GPa)
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Ue, Un, Uz : np.ndarray
|
Surface displacement components in meters: - Ue: East component (positive eastward) - Un: North component (positive northward) - Uz: Vertical component (positive upward) |
Notes
The point source approximation is valid when: - Source dimension << observation distance - Source dimension << depth
Best suited for small-to-moderate earthquakes (Mw < 6.5) or far-field observations.
Examples:
>>> import numpy as np
>>> x = np.linspace(-50000, 50000, 101)
>>> y = np.linspace(-50000, 50000, 101)
>>> X, Y = np.meshgrid(x, y)
>>> # Simple vertical dip-slip source
>>> Ue, Un, Uz = davis_point_source(X, Y, 0, 0, 10000,
... Mxx=0, Myy=0, Mzz=0, Mxy=0, Myz=1e18, Mzx=0)
Source code in src/eq_insar/core/davis.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
Moment Tensor¶
double_couple_moment_tensor ¶
double_couple_moment_tensor(strike_deg: float, dip_deg: float, rake_deg: float, M0: float) -> Tuple[float, float, float, float, float, float]
Construct double-couple moment tensor from fault geometry.
Uses Aki & Richards (2002) convention for fault orientation: - Strike: Azimuth of fault trace, clockwise from North (0-360°) When standing on the fault, the hanging wall is on the right. - Dip: Angle from horizontal to fault plane (0-90°) Measured perpendicular to strike, toward hanging wall. - Rake: Direction of slip on fault plane (-180 to 180°) Measured from strike direction in the fault plane. - 0°: Left-lateral strike-slip - 90°: Reverse/thrust (hanging wall up) - 180° or -180°: Right-lateral strike-slip - -90°: Normal fault (hanging wall down)
| PARAMETER | DESCRIPTION |
|---|---|
strike_deg
|
Fault strike in degrees (0-360, clockwise from North)
TYPE:
|
dip_deg
|
Fault dip in degrees (0-90, from horizontal)
TYPE:
|
rake_deg
|
Slip rake in degrees (-180 to 180)
TYPE:
|
M0
|
Scalar seismic moment in N·m
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Mxx, Myy, Mzz, Mxy, Myz, Mzx : float
|
Moment tensor components in ENU coordinates (N·m) - Mxx: East-East component - Myy: North-North component - Mzz: Up-Up component - Mxy: East-North component - Myz: North-Up component - Mzx: Up-East component |
Notes
The returned moment tensor has zero trace (Mxx + Myy + Mzz = 0), which is characteristic of a pure double-couple source.
Source code in src/eq_insar/core/moment_tensor.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
mw_to_m0 ¶
Convert moment magnitude to scalar seismic moment.
Uses Hanks & Kanamori (1979) relation: log10(M0) = 1.5 * Mw + 9.1 (M0 in N·m)
| PARAMETER | DESCRIPTION |
|---|---|
Mw
|
Moment magnitude
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
M0
|
Scalar seismic moment in N·m
TYPE:
|
Examples:
Source code in src/eq_insar/core/moment_tensor.py
m0_to_mw ¶
Convert scalar seismic moment to moment magnitude.
Inverse of mw_to_m0.
| PARAMETER | DESCRIPTION |
|---|---|
M0
|
Scalar seismic moment in N·m
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Mw
|
Moment magnitude
TYPE:
|
Source code in src/eq_insar/core/moment_tensor.py
slip_from_moment ¶
slip_from_moment(M0: float, length_m: float, width_m: float, mu: float = DEFAULT_SHEAR_MODULUS_PA) -> float
Calculate average fault slip from seismic moment and fault dimensions.
Uses the relation: M0 = μ * A * D where μ is shear modulus, A is fault area, D is average slip.
| PARAMETER | DESCRIPTION |
|---|---|
M0
|
Scalar seismic moment in N·m
TYPE:
|
length_m
|
Fault length in meters
TYPE:
|
width_m
|
Fault width (down-dip) in meters
TYPE:
|
mu
|
Shear modulus in Pa (default: 30 GPa)
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
slip_m
|
Average slip in meters
TYPE:
|