"""crust_forces.py -- RULES_crust_forces.txt: ohmic heating of the low-velocity zone, piezoelectric stress and Lorentz force from storm-induced fields. Inputs are the ranges fixed in the rules file. Standard library only. """ import math E_RANGE = (0.001, 0.02) # V/m (1 to 20 V/km) SIG_RANGE = (0.01, 1.0) # S/m RHO = 3300.0 # kg/m^3 L_RANGE = (4e5, 6e5) # J/kg latent heat of melting D11 = 2.3e-12 # C/N, quartz Y_RANGE = (50e9, 100e9) # Pa B = 5e-5 # T G = 9.81 DAY, YEAR = 86400.0, 3.156e7 NERC = 0.008 # V/m, 8 V/km benchmark TIDAL = (1e3, 1e4) # Pa QUAKE = (1e6, 1e7) # Pa def fmt(x): return f"{x:.2g}" print("1. Ohmic heating of the LVZ") q_min, q_max = SIG_RANGE[0] * E_RANGE[0] ** 2, SIG_RANGE[1] * E_RANGE[1] ** 2 melt_min, melt_max = RHO * L_RANGE[0], RHO * L_RANGE[1] print(f" heating q = sig*E^2: {fmt(q_min)} to {fmt(q_max)} W/m^3") print(f" energy in one day: {fmt(q_min*DAY)} to {fmt(q_max*DAY)} J/m^3; in one year: {fmt(q_min*YEAR)} to {fmt(q_max*YEAR)} J/m^3") print(f" energy to melt fully (latent heat only): {fmt(melt_min)} to {fmt(melt_max)} J/m^3") short_day = melt_min / (q_max * DAY) print(f" most generous shortfall in one day (melt_min / (q_max*day)): {fmt(short_day)}x") for sig in SIG_RANGE: estar = math.sqrt(melt_min / (sig * DAY)) print(f" field needed to melt within 24 h at sig={sig} S/m: {fmt(estar)} V/m = {fmt(estar*1000)} V/km = {fmt(estar/NERC)}x NERC's 8 V/km") print("2. Inverse piezoelectric stress") s_min, s_max = Y_RANGE[0] * D11 * E_RANGE[0], Y_RANGE[1] * D11 * E_RANGE[1] print(f" stress Y*d11*E: {fmt(s_min)} to {fmt(s_max)} Pa (single quartz crystal, ideally oriented)") print(f" tidal stresses {fmt(TIDAL[0])}-{fmt(TIDAL[1])} Pa: shortfall {fmt(TIDAL[0]/s_max)}x to {fmt(TIDAL[1]/s_min)}x") print(f" quake stress drops {fmt(QUAKE[0])}-{fmt(QUAKE[1])} Pa: shortfall {fmt(QUAKE[0]/s_max)}x or more") print("3. Lorentz force density on induced currents") f_min, f_max = SIG_RANGE[0] * E_RANGE[0] * B, SIG_RANGE[1] * E_RANGE[1] * B w = RHO * G print(f" f = sig*E*B: {fmt(f_min)} to {fmt(f_max)} N/m^3; rock weight rho*g = {fmt(w)} N/m^3; ratio at most {fmt(f_max/w)}") print("Decision (rules): contradicted when the most generous case falls short by 1,000x or more") print(f" ohmic: shortfall {fmt(short_day)}x -> {'contradicted' if short_day >= 1000 else 'unsupported'}") print(f" piezo vs tides: shortfall {fmt(TIDAL[0]/s_max)}x -> {'contradicted' if TIDAL[0]/s_max >= 1000 else 'unsupported'}") print(f" Lorentz vs weight: shortfall {fmt(w/f_max)}x -> {'contradicted' if w/f_max >= 1000 else 'unsupported'}")