redplanet.analysis.impact_demag.compute_pressure
compute_pressure(
diameter_km: float,
x_vals_km: float | numpy.ndarray,
y_vals_km: float | numpy.ndarray,
v_proj_km_s: float = 10,
rho_proj_kg_m3: float = 2900,
rho_crust_kg_m3: float = 2900,
transition_diameter_km: float = 7,
compressibility: float = 1.5,
bulk_sound_speed_km_s: float = 3.5,
pressure_decay_const: float = 1.87,
return_params: bool = False,
) -> numpy.ndarray | tuple[numpy.ndarray, dict]
Compute the maximum subsurface shock pressures from an impact using the Rankine-Hugoniot relations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
diameter_km
|
float
|
Observed crater diameter in kilometers. This is the primary crater-dependent input. |
required |
x_vals_km
|
float | np.ndarray
|
Horizontal (parallel to surface) point(s) in kilometers where the pressure is to be computed. |
required |
y_vals_km
|
float | np.ndarray
|
Vertical (perpendicular to surface) point(s) in kilometers where the pressure is to be computed. |
required |
v_proj_km_s
|
float
|
Projectile velocity in kilometers per second. Default is 10 km/s. |
10
|
rho_proj_kg_m3
|
float
|
Projectile density in kilograms per cubic meter. Default is 2900 kg/m^3. |
2900
|
rho_crust_kg_m3
|
float
|
Target (crust) density in kilograms per cubic meter. Default is 2900 kg/m^3. |
2900
|
transition_diameter_km
|
float
|
Transition diameter (in kilometers) from simple to complex crater morphology. Default is 7 km. |
7
|
compressibility
|
float
|
Compressibility coefficient of the target material (dimensionless). Default is 1.5. |
1.5
|
bulk_sound_speed_km_s
|
float
|
Bulk sound speed in the target material in kilometers per second. Default is 3.5 km/s. |
3.5
|
pressure_decay_const
|
float
|
Exponential decay constant for the pressure (or particle velocity) outside the isobaric core. Default is 1.87. |
1.87
|
return_params
|
bool
|
If True, the function will also return a dictionary of intermediate parameters. Default is False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
P_eff |
np.ndarray
|
Shock pressures in GPa at the specified point(s), with shape |
params |
dict
|
Only returned if A dictionary with the following keys:
|
Notes
For a full explanation/derivation of methods and equations, see "Supplemental > Impact Demagnetization" in the RedPlanet documentation website.
Source code in src/redplanet/analysis/impact_demag.py
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 |
|