aragog.core
The aragog.core package carries the core evolution module: the core as a component with its own state rather than an isothermal reservoir. The radial structure comes from 1 of 2 sources. The closed-form Gaussian profile family of Labrosse et al. (2001)1 and Nimmo (2015)3 makes every budget term an analytic integral or a fixed-order quadrature, so the module stays at ODE cost. A Zalmoxis core on a PALEOS liquid iron isentrope is tabulated once per structure. The capacities, the adiabat and the rates run through jax.numpy at 64-bit precision and are jit- and grad-safe. The heat content and the heat change of a call, and on a tabulated profile also secular_heat_change, t_cmb_at_centre and outside_calibration_fraction, run eagerly on concrete values.
| Name | Role |
|---|---|
GaussianCoreProfiles |
Density, enclosed mass, gravity (exact erf form), hydrostatic pressure (quadrature or the printed Labrosse closed form), gravitational potential, and the adiabat of the core. |
LiquidIronTable |
The liquid side of the PALEOS iron EOS that Zalmoxis writes (a .dat table or its .npz cut), refused unless its # Kind: line names liquid; bicubic interpolation in \(\log_{10} P\) and \(\log_{10} T\) of \(\rho\), \(u\), \(s\), \(c_p\), \(c_v\), \(\alpha\) and \(\nabla_\mathrm{ad}\) (SI units), with the entropy derivatives ds_dT and ds_dP. |
TabulatedCoreProfiles, load_core_arrays |
A Zalmoxis core (r [m], m [kg], P [Pa], rho [kg m\(^{-3}\)], g [m s\(^{-2}\)] from an .npz) on one isentrope of the liquid table: the same interface as the Gaussian profile, plus a secular heat capacity and heat change that depend on \(T_\mathrm{cmb}\) and the mass fraction outside the calibration window of the liquid (explanation). |
IronMeltingCurve |
Pure-iron melting curve (Anzellini et al. (2013)4, the PALEOS prescription) with a multiplicative light-element depression. |
AlloyLiquidus, eutectic |
Liquidus of iron with S, C and O (Si, H and N lower no melting point): ideal-solution binaries on Fe\(_k\)X\(_m\) units through their eutectic points, joined by a harmonic mean of their \(A\); t_melt [K] and gradient [K/Pa] of pressure [Pa], status flags for extrapolated pressures and compositions past the eutectic (explanation). |
QuadraticMeltingCurve |
The quadratic-in-pressure parameterisation of Nimmo (2015), ch. 9.08, Eq. 6, interchangeable with the iron curve; the form benchmark models are defined in. |
CoreEnergyBudget |
Effective-heat-capacity energy balance: secular cooling, inner-core-nucleation latent heat, and the gravitational energy of light-element rejection; a legacy mode reproduces the isothermal-reservoir closure exactly. |
CoreEntropyBudget |
Entropy balance on top of the energy budget: cooling, latent, gravitational, and radiogenic sources against the conduction sink (closed form for the Gaussian adiabat), the dynamo entropy margin, and field strength via the energy-flux scaling of Christensen et al. (2009)5. |
CoreModule |
Standalone coupling: holds the core state and advances it over an externally supplied heat-flow interval with jit-compiled Runge-Kutta sub-steps, recording the sub-step trajectory. |
build_core_module_budget |
Config-dict factory for the solver coupling (core_bc = 'core_module'); geometry always comes from the mesh. |
check_ra_crit |
Validate the CMB critical Rayleigh number: None (Thiriet et al. (2019)7 eq. 16), 'phase' (the law by phase), or a positive, finite real number, returned as a float. |
liquid_weight, check_liquid_band, RA_CRIT_PHASE |
The law by phase: the weight \((1 + \tanh((\phi_0 - \phi_\text{rheo})/w_s))/2\) of the liquid law (\(\mathrm{Ra}_\text{crit} = 450\)) at the melt fraction \(\phi_0\) of the bottom cell, with \(w_s = (w/2)/\operatorname{artanh} 0.9\), so 0.05 and 0.95 at the band edges, with the switch at the critical melt fraction of Miyazaki & Korenaga (2019b)2; the check refuses a band \([\phi_\text{rheo} - w/2, \phi_\text{rheo} + w/2]\) outside [0, 1] (explanation). |
critical_rayleigh_eq16, RA_CRIT_UPPER_LAYER |
The lower-layer critical Rayleigh number \(0.28\,Ra_i^{0.21}\) of Thiriet et al. (2019)7 eq. 16, from the internal Rayleigh number of the mantle; the fixed upper-layer value 450 of their Table 2. |
cmb_boundary_layer_flux |
CMB heat flux of the solver coupling from the core-mantle temperature contrast through a mantle-side boundary layer (Foley & Driscoll (2016)6; Thiriet et al. (2019)7) for a hot core under a buoyant layer, else conduction across the bottom half cell; with liquid_band it blends \(\ln \mathrm{Ra}_\text{crit}\) of 450 and eq. 16 by liquid_weight. |
crystallization_regime |
Regime code from the superheat profile: fully liquid, bottom-up, top-down, snow, or fully frozen (taxonomy of Breuer et al. (2015)8). refuse_unmodelled_regime raises for the regimes the budget does not model. |
adiabatic_ratio, stratification_depth |
Subadiabatic-onset ratio and the equilibrium thickness of the stably stratified sub-CMB layer from conductive matching. |
The budget terms are cross-validated against the open-source Leeds thermal_history implementation (secular exact, boundary terms to 0.5%), and the profile and melting machinery is pinned against Nimmo (2015), ch. 9.08, Table 2 (adiabatic length scales, ICB temperatures, melting gradients, adiabatic heat flows). The budget assumes bottom-up crystallization; parameter sets whose melting curve rises above the adiabat at the CMB (a top-down or snow topology) book no boundary terms, and the solver refuses a call that enters such a regime.
core
Core evolution module.
Replaces the isothermal-reservoir core boundary condition with a core that carries its own state: energy budget with inner-core nucleation, entropy budget and dynamo diagnostics, and stable stratification with crystallization-regime flags. The module receives the CMB heat flow and returns the CMB temperature; with every feature disabled it reproduces the isothermal-reservoir closure, which is the regression anchor.
The radial structure is the closed-form Gaussian profile family (Labrosse et al. 2001; Nimmo 2015, Treatise on Geophysics 9.08), whose budget terms are analytic integrals, or a Zalmoxis core on an isentrope of the PALEOS liquid iron table, tabulated once per structure; either way the module stays at ODE cost.
AlloyLiquidus(composition)
Liquidus of an Fe alloy with S, C, O (melting depression) and Si, H, N (none).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
composition
|
dict
|
Mass fractions of the light elements, keys from :data: |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
On an invalid composition (see :func: |
Source code in src/aragog/core/alloy.py
307 308 | |
gradient(pressure)
dT_liq/dP [K/Pa] at pressure [Pa], by automatic differentiation.
Source code in src/aragog/core/alloy.py
336 337 338 339 | |
status(pressure)
Per-pressure flags (NumPy bool arrays): past_eutectic where the composition is
past the Fe-rich side and is held at the boundary; extrapolated where a depressing
element present in the alloy is outside its binary's data range.
Source code in src/aragog/core/alloy.py
341 342 343 344 345 346 347 348 349 350 351 352 353 | |
t_melt(pressure, composition=None)
Liquidus temperature [K] at pressure [Pa]; composition overrides the
instance's (values checked unless traced). Concrete results are checked against the
pure-iron curve and each binary's A.
The S blend (FeS to Fe3S, 18 to 26 GPa) ends below the C blend (230 to 280 GPa), so the two act one at a time. Below 18 GPa, where the Fe3S units have zero weight and cannot hold the eutectic liquid below 17.14 GPa, FeS units stand in for them.
Source code in src/aragog/core/alloy.py
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | |
CoreEnergyBudget(profiles, melting_curve, *, ds_fusion, icn_width, latent_heat=None, alpha_c=0.0, c_light=0.0, capacity_mode='profile', legacy_rho_core=None, legacy_tfac=None, stratification=False, k_core=None, layer=None)
Energy budget of a well-mixed core with inner-core growth.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
profiles
|
GaussianCoreProfiles
|
Radial structure the budget integrates over. |
required |
melting_curve
|
IronMeltingCurve or QuadraticMeltingCurve
|
Alloy melting curve; sets the freezing point profile T_m(P). |
required |
ds_fusion
|
float
|
Entropy of fusion at the inner-core boundary [J kg-1 K-1]; sets the
latent heat per unit mass as |
required |
icn_width
|
float
|
Temperature width [K] of the nucleation diagnostic sigmoid. Positive; governs diagnostic regime indicators. |
required |
latent_heat
|
float
|
Constant latent heat of fusion [J/kg]. When given it replaces the
|
None
|
alpha_c
|
float
|
Compositional expansivity of the outer-core alloy (fractional density decrease per unit light-element mass fraction), for the gravitational-energy term. Zero disables the term. |
0.0
|
c_light
|
float
|
Light-element mass fraction of the outer core, rejected entirely by the solid on freezing (the complete-rejection limit). Zero disables the gravitational term. |
0.0
|
capacity_mode
|
str
|
|
'profile'
|
legacy_rho_core
|
float
|
Uniform core density [kg m-3] of the legacy closure (required in legacy mode). |
None
|
legacy_tfac
|
float
|
Core-temperature factor of the legacy closure (required in legacy mode; 1.147 is the Earth-like default used across the ecosystem). |
None
|
stratification
|
bool
|
When true, the outer core above the base of a resolved shell
(:class: |
False
|
k_core
|
float
|
Core thermal conductivity [W m-1 K-1]; required when |
None
|
layer
|
dict
|
Keyword arguments of :class: |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
On a non-positive |
Source code in src/aragog/core/budget.py
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 | |
r_icb_batch
cached
property
r_icb vectorised and compiled, once per budget.
regime_batch
cached
property
crystallization_regime vectorised and compiled, once per budget.
t_freeze
property
CMB temperature [K] for full core freeze-out at the CMB.
t_onset
property
CMB temperature [K] for inner-core nucleation onset at the centre; for a tabulated
profile whose isentropes never meet the melting curve at the centre, the end of its
grid (see _t_onset_tabulated), which is then no nucleation temperature.
conducted_adiabatic_flow(r, t_cmb)
Heat flow [W] conducted along the adiabat through radius r (needs k_core).
Source code in src/aragog/core/budget.py
167 168 169 170 171 | |
core_rates(t_cmb, t_shell, q_cmb, q_sources=0.0)
Rates of the convecting core [K/s] and of the shell cells [K/s] of a stratified core.
The convecting core loses the flow into the shell base and keeps the mass share of the
internal sources q_sources [W] below it; the shell gets the rest, cell by cell.
Source code in src/aragog/core/budget.py
617 618 619 620 621 622 623 624 625 626 627 628 629 630 | |
dtcmb_dt(t_cmb, q_cmb, q_sources=0.0)
CMB cooling rate [K/s] for heat flow q_cmb [W] out of an unstratified core.
dT_cmb/dt = (q_sources - q_cmb) / C_eff(T_cmb); positive
q_cmb cools the core, and internal sources (radiogenic, tidal)
offset it. A stratified core has shell state: see :meth:core_rates.
Source code in src/aragog/core/budget.py
606 607 608 609 610 611 612 613 614 615 | |
effective_capacity(t_cmb, *, gravitational_upper=None)
Total dQ/d(dT_cmb/dt) [J/K] of the convecting core: secular plus latent plus gravitational (profile mode).
The secular integral runs to the convecting radius, the CMB or the shell base; the
light elements mix up to gravitational_upper (default the same radius), the base of
the stable layer when a shell is resolved.
Source code in src/aragog/core/budget.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | |
effective_tfac(t_cmb=None)
Mass-weighted mean of T_a/T_cmb over the core (profile mode); t_cmb [K] for
a tabulated profile, whose mean is C_s / (c_p M) with its override c_p.
Source code in src/aragog/core/budget.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
gravitational_capacity(t_cmb, upper=None)
Gravitational contribution to the effective heat capacity [J/K].
Light elements rejected by the growing inner core mix through the
outer core and release gravitational energy. Per unit cooling:
[int_oc rho psi dV - M_oc psi(r_icb)] * alpha_c * Cc *
|dr_icb/dT_cmb| with Cc = 4 pi r_icb^2 rho(r_icb) c_light /
M_oc the enrichment per unit boundary advance in the
complete-rejection limit; the structure of the Leeds
thermal_history core model (Greenwood et al. 2021 lineage,
Gubbins et al. 2003 formalism). Zero when either compositional
parameter is zero, before onset, and after freeze-out. The
outer-core region runs to upper (default the CMB radius),
which the stratified budget reduces to the convecting radius.
Source code in src/aragog/core/budget.py
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | |
heat_change(t_cmb, d_t)
Core heat change [J] from CMB temperature t_cmb to t_cmb + d_t.
The integral of the effective capacity, equal to heat_content(t_cmb + d_t) -
heat_content(t_cmb) but without that difference of 2 contents near 1e31 J, whose float
spacing (near 1e15 J) can exceed the change of a short call: the secular term is
d_t C_secular (for a tabulated profile, the exact integral of its secular capacity,
:meth:TabulatedCoreProfiles.secular_heat_change) and the released energy is
integrated over u = sqrt(T_onset - T) with the panel width -d_t / (u_0 + u_1),
split at freeze-out by the exact change T_freeze - t_cmb (for a tabulated profile
also where the boundary crosses a radial node, _kinks).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t_cmb
|
float
|
CMB temperature at the start [K]. |
required |
d_t
|
float
|
Change of the CMB temperature [K]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Heat change [J], negative when the core cools; NaN for a non-finite input. |
Raises:
| Type | Description |
|---|---|
ValueError
|
For a stratified budget (see :meth: |
Source code in src/aragog/core/budget.py
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 | |
heat_content(t_cmb)
Core heat content [J] at CMB temperature t_cmb of the full, unstratified core.
t_cmb * C_secular (for a tabulated profile, the integral of its secular capacity
from the lowest tabulated temperature) minus the latent and gravitational energy
released between nucleation onset and t_cmb (zero above onset), so that
heat_content(T2) - heat_content(T1) is the integral of the effective
capacity from T1 to T2. The substitution T = T_onset - u^2
turns the square-root cusp of the latent and gravitational terms at onset,
C ~ (T_onset - T)^(1/2), into a smooth integrand.
Evaluated eagerly (t_onset is a Python float). On a tabulated profile the
content is defined up to a constant that depends on the structure and the table
(its lowest tabulated temperature): differences on one structure are exact, a
difference between 2 structures is not a heat.
Raises:
| Type | Description |
|---|---|
ValueError
|
For a stratified budget, whose capacity covers only the convecting volume and depends on the CMB heat flow. |
Source code in src/aragog/core/budget.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | |
latent_capacity(t_cmb)
Latent contribution to the effective heat capacity [J/K].
L rho(r_icb) 4 pi r_icb^2 |dr_icb/dT_cmb| with the latent heat
per unit mass L either the prescribed constant or
T_icb * ds_fusion. Zero before nucleation onset and after
freeze-out completion when the boundary is pinned.
Source code in src/aragog/core/budget.py
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | |
nucleation_factor(t_cmb)
Diagnostic activation in [0, 1]: sigmoid of centre subcooling.
Source code in src/aragog/core/budget.py
339 340 341 | |
r_icb(t_cmb)
Inner-core boundary radius [m] at t_cmb.
Fixed-iteration bisection of the superheat on [0, r_cmb]; with no
crossing it converges to 0 (fully liquid) or r_cmb (fully frozen),
so the value is always defined and trace-safe. A liquid centre
returns zero regardless of frozen shells above it (the top-down
and snow topologies have no inner core in the bottom-up sense);
the boundary terms drop to zero there, and the solver refuses those
states (aragog.core.regime.refuse_unmodelled_regime).
The derivative is the implicit-function sensitivity attached as a custom JVP: a comparison-driven bisection carries no gradient of its own (autodiff sees only the converged constant trace), so without this rule anything differentiating through the boundary would silently read zero.
Source code in src/aragog/core/budget.py
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | |
secular_capacity(upper=None, t_cmb=None)
Secular heat capacity dQ_s / d(dT_cmb/dt) [J/K].
Profile mode: c_p int rho(r) f(r) 4 pi r^2 dr over the
convecting volume (upper defaults to the CMB radius), with
f the adiabat shape T_a(r)/T_cmb, i.e. c_p M
tfac_eff. Legacy mode: (4/3) pi r_cmb^3 rho c_p tfac, the
reservoir constant. A tabulated profile depends on t_cmb [K], which it
then needs, and refuses an upper other than the CMB radius:
:meth:TabulatedCoreProfiles.secular_capacity.
Source code in src/aragog/core/budget.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |
superheat(r, t_cmb)
Adiabat minus melting curve [K] at radius r; positive = liquid.
Source code in src/aragog/core/budget.py
256 257 258 259 | |
CoreEntropyBudget(budget, *, k_core, f_ohm=1.0, flux_geometry='const_flux')
Entropy balance and dynamo diagnostics on top of the energy budget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
budget
|
CoreEnergyBudget
|
The energy budget whose profiles, melting curve, and capacity terms this balance reuses; entropy efficiencies attach to its terms. |
required |
k_core
|
float
|
Thermal conductivity of the core [W m-1 K-1], treated as constant. |
required |
f_ohm
|
float
|
Fraction of dissipation that is ohmic, in (0, 1]; CHR09 adopt 1 for planets. |
1.0
|
flux_geometry
|
str
|
|
'const_flux'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
On non-positive |
Source code in src/aragog/core/entropy.py
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 | |
adiabatic_heat_flow(t_cmb)
Heat conducted down the adiabat at the CMB, Qk [W].
Source code in src/aragog/core/entropy.py
223 224 225 226 | |
b_dipole_cmb(t_cmb, q_cmb, dipolarity=1.0)
Dipole field at the CMB [T]: the core rms field times a
dipolarity fraction; a potential-field continuation to the planet
surface is the caller's (r_cmb / r_planet)^3 factor.
Source code in src/aragog/core/entropy.py
254 255 256 257 258 | |
b_rms_core(t_cmb, q_cmb)
Volume-averaged core field strength [T] from CHR09 Eq. 2.
The reference flux is the superadiabatic part of the CMB heat flow over the CMB area; with nothing superadiabatic the field estimate is zero even where compositional convection keeps the entropy margin positive (a conservative floor, see the module docstring).
Source code in src/aragog/core/entropy.py
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
chr09_efficiency_factor()
The printed Earth-core F: 0.88 (or 0.45) alpha g r / c_p.
Source code in src/aragog/core/entropy.py
228 229 230 231 232 | |
conduction_sink(upper=None)
Entropy sink of conduction along the adiabat, Ek [W/K].
4 pi k int (dTa/dr / Ta)^2 r^2 dr over the convecting volume (upper
defaults to the CMB radius), independent of T_cmb: by quadrature, or in the
small-radius mode, where the ratio is 2 r / D^2, as 16 pi k upper^5 / (5 D^4).
Source code in src/aragog/core/entropy.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
entropy_margin(t_cmb, q_cmb, q_radio=0.0, *, t_shell=None)
Entropy production available to the dynamo, dE [W/K].
The cooling rate follows from the energy budget for the given heat
flow, the three cooling-proportional sources scale with it, and
conduction subtracts. Positive margin sustains a dynamo. A stratified
core needs its shell temperatures t_shell: the convecting core and the shell
each add their sources and sinks, all delivered at the temperature of the top shell
cell (Greenwood et al. 2021, eq. 4).
Source code in src/aragog/core/entropy.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | |
gravitational_entropy_capacity(t_cmb, upper=None, *, t_ref=None)
Entropy per unit cooling from gravitational energy [J/K^2].
Gravitational energy dissipates in full within the convecting
core: C_grav / T_ref (default T_cmb).
Source code in src/aragog/core/entropy.py
151 152 153 154 155 156 157 158 | |
latent_entropy_capacity(t_cmb, *, t_ref=None)
Entropy per unit cooling from latent heat [J/K^2].
The latent capacity released at T_icb and delivered at
T_ref (default T_cmb): C_lat (T_icb - T_ref) / (T_icb T_ref).
Source code in src/aragog/core/entropy.py
139 140 141 142 143 144 145 146 147 148 149 | |
radiogenic_entropy(t_cmb, q_radio, upper=None, *, t_ref=None)
Entropy rate from internal heating [W/K].
int h rho (1/T_ref - 1/Ta) dV with the heating rate per unit
mass h = q_radio / M_core uniform, integrated over the
convecting volume (upper defaults to the CMB radius, T_ref to T_cmb).
Source code in src/aragog/core/entropy.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
secular_entropy_capacity(t_cmb, upper=None, *, t_ref=None)
Entropy per unit cooling from secular cooling [J/K^2].
int rho c_p (Ta/T_ref - 1) dV / T_cmb: heat extracted at
temperature Ta and delivered at T_ref (default T_cmb) produces entropy in
proportion to the temperature drop. Integrated over the
convecting volume (upper defaults to the CMB radius).
Source code in src/aragog/core/entropy.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
CoreModule(budget, *, t_cmb, entropy=None, q_radio=0.0, n_substeps=32)
Stateful core evolving under an externally supplied CMB heat flow.
The core is one temperature, so a stratified budget, whose shell is state, is refused; the solver evolves it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
budget
|
CoreEnergyBudget
|
The energy budget that supplies the cooling rate. |
required |
t_cmb
|
float
|
Initial CMB temperature [K], positive. |
required |
entropy
|
CoreEntropyBudget
|
When given, diagnostics include the entropy margin and field strength alongside the energy-side quantities. |
None
|
q_radio
|
float
|
Internal source power [W] passed to every cooling-rate call. |
0.0
|
n_substeps
|
int
|
Fixed classical Runge-Kutta sub-steps per :meth: |
32
|
Source code in src/aragog/core/module.py
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
diagnostics(q_cmb=None)
Current core state as plain floats.
Always contains t_cmb, t_cen, r_icb,
nucleation_factor, effective_capacity, and the phase flags
inner_core_present / fully_frozen; a tabulated profile adds
core_eos_outside_calibration, the mass fraction outside the calibration window of
the Luo et al. (2024) liquid. With an entropy budget
attached and q_cmb given, adds entropy_margin,
dynamo_active, and b_rms_core.
Source code in src/aragog/core/module.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | |
step(q_cmb, dt, q_cmb_end=None)
Advance T_cmb over dt seconds of heat flow q_cmb [W].
The heat flow ramps linearly from q_cmb to q_cmb_end (equal
to q_cmb when omitted) across the interval, and the state
advances with n_substeps classical RK4 sub-steps. The sub-step
trajectory is stored on last_times / last_t_cmb /
last_q_cmb so the caller can see through the coupling interval
instead of only its endpoints. Returns the new T_cmb [K].
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/aragog/core/module.py
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 | |
GaussianCoreProfiles(*, rho_cen, length_scale, r_cmb, p_cmb, alpha, c_p, pressure_mode='quadrature', adiabat_mode='exact')
Radial density, mass, gravity, pressure, and adiabat of the core.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rho_cen
|
float
|
Density at the planet centre [kg m-3]. |
required |
length_scale
|
float
|
Gaussian density length scale |
required |
r_cmb
|
float
|
Core-mantle boundary radius [m]. |
required |
p_cmb
|
float
|
Pressure at the CMB [Pa]; anchors the hydrostatic integration. |
required |
alpha
|
float
|
Thermal expansion coefficient [K-1], treated as constant. |
required |
c_p
|
float
|
Isobaric specific heat capacity [J kg-1 K-1], treated as constant. |
required |
pressure_mode
|
str
|
|
'quadrature'
|
adiabat_mode
|
str
|
|
'exact'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If any parameter is non-positive, or |
Source code in src/aragog/core/profiles.py
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 | |
r_peak
cached
property
Radius [m] where the heat conducted down the adiabat, r^2 g T, peaks; r_cmb
when it rises through the whole core. D sqrt(3/2) for linear gravity.
adiabat(r, t_cmb)
Adiabatic temperature [K] at radius r anchored at t_cmb; see adiabat_mode.
Hotter inward, equal to t_cmb at the CMB by construction.
Source code in src/aragog/core/profiles.py
219 220 221 222 223 224 225 226 227 | |
adiabat_gradient(r, t_cmb)
dT/dr [K/m] of the adiabat, -alpha g T / c_p, with the gravity of the mode.
Source code in src/aragog/core/profiles.py
229 230 231 232 233 234 235 236 237 | |
density(r)
Density [kg m-3] at radius r [m].
Source code in src/aragog/core/profiles.py
133 134 135 136 | |
enclosed_mass(r)
Mass [kg] inside radius r: the closed-form Gaussian integral.
4 pi rho_cen [ (sqrt(pi) L^3 / 4) erf(r/L) - (L^2 r / 2)
exp(-r^2/L^2) ], the exact antiderivative of
4 pi rho(s) s^2.
Source code in src/aragog/core/profiles.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
from_structure(*, m_core, p_cen, r_cmb, p_cmb, alpha, c_p, pressure_mode='quadrature', adiabat_mode='exact')
classmethod
Fit central density and length scale to core mass and central pressure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
m_core
|
float
|
Total core mass [kg], positive. |
required |
p_cen
|
float
|
Central pressure [Pa], must exceed |
required |
r_cmb
|
float
|
Core-mantle boundary radius [m], positive. |
required |
p_cmb
|
float
|
Pressure at the core-mantle boundary [Pa], positive. |
required |
alpha
|
float
|
Thermal expansion coefficient [K-1], positive. |
required |
c_p
|
float
|
Isobaric specific heat capacity [J kg-1 K-1], positive. |
required |
pressure_mode
|
str
|
Pressure mode: |
'quadrature'
|
adiabat_mode
|
str
|
Adiabat mode: |
'exact'
|
Returns:
| Type | Description |
|---|---|
GaussianCoreProfiles
|
Profile instance with fitted |
Raises:
| Type | Description |
|---|---|
ValueError
|
If parameters are non-positive, if |
Source code in src/aragog/core/profiles.py
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | |
gravity(r)
Gravitational acceleration magnitude [m s-2] at radius r.
Exact for the Gaussian density: G M(r) / r^2, with the removable
singularity at the centre replaced by its analytic limit
(4 pi / 3) G rho_cen r.
Source code in src/aragog/core/profiles.py
153 154 155 156 157 158 159 160 161 162 163 164 165 | |
potential(r)
Gravitational potential [J/kg] at radius r, zero at the CMB.
psi(r) = -int_r^{r_cmb} g(s) ds on the same fixed 32-point
Gauss-Legendre panel as the pressure; negative inside the core,
which is the reference the gravitational-energy budget term uses.
Source code in src/aragog/core/profiles.py
203 204 205 206 207 208 209 210 211 212 213 214 215 | |
pressure(r)
Pressure [Pa] at radius r, from hydrostatic balance.
Quadrature mode: P(r) = p_cmb + int_r^{r_cmb} rho(s) g(s) ds on
a fixed 32-point Gauss-Legendre panel, jit-safe with no adaptive
control flow. Labrosse mode: the printed closed form.
Source code in src/aragog/core/profiles.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
t_cen(t_cmb)
Centre temperature [K] on the adiabat anchored at t_cmb.
Source code in src/aragog/core/profiles.py
258 259 260 | |
IronMeltingCurve(*, light_element_fraction=0.0, depression=0.0)
Melting temperature of the core alloy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
light_element_fraction
|
float
|
Mole fraction |
0.0
|
depression
|
float
|
Melting-point depression per unit mole fraction (the |
0.0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/aragog/core/melting.py
88 89 90 91 92 93 | |
t_melt(pressure, light_element_fraction=None)
Alloy melting temperature [K] at pressure [Pa].
light_element_fraction overrides the instance value when given,
which allows callers to evolve the alloy composition without
rebuilding the curve. A concrete override (a real scalar or array) is
taken in float64 and checked like the instance value (in [0, 1), with
the depressed curve kept positive); a traced override is the caller's
responsibility, since a trace cannot raise on data.
Raises:
| Type | Description |
|---|---|
ValueError
|
If a concrete override is not a real number (a bool, string,
bytes or complex value included), is outside |
Source code in src/aragog/core/melting.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
t_melt_pure(pressure)
staticmethod
Pure-iron melting temperature [K] at pressure [Pa]: the two Anzellini
branches joined by the smootherstep blend of the module docstring.
Source code in src/aragog/core/melting.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
LiquidIronTable(pressure, temperature, fields, header)
Bicubic interpolant of the PALEOS liquid iron table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pressure
|
array_like
|
Pressure axis [Pa], positive and strictly increasing, at least 4 points. |
required |
temperature
|
array_like
|
Temperature axis [K], positive and strictly increasing, at least 4 points. |
required |
fields
|
dict
|
One array of shape |
required |
header
|
str
|
Header lines of the source table; its |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
On a header without a liquid |
Source code in src/aragog/core/iron_table.py
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 | |
contains(pressure, temperature)
True where (pressure, temperature) [Pa, K] lies inside the table box.
Source code in src/aragog/core/iron_table.py
174 175 176 177 178 179 180 181 182 | |
ds_dP(pressure, temperature)
(ds/dP)_T [J kg-1 K-1 Pa-1] of the interpolant at (pressure, temperature).
Source code in src/aragog/core/iron_table.py
210 211 212 | |
ds_dT(pressure, temperature)
(ds/dT)_P [J kg-1 K-2] of the interpolant at (pressure, temperature).
Source code in src/aragog/core/iron_table.py
206 207 208 | |
from_file(path)
classmethod
Read a Zalmoxis .dat table or its .npz cut.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |
ValueError
|
On another suffix, an |
Source code in src/aragog/core/iron_table.py
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 | |
value(field, pressure, temperature)
Interpolated field at (pressure, temperature) [Pa, K], in its table unit.
Raises:
| Type | Description |
|---|---|
ValueError
|
For a point outside the table box. |
Source code in src/aragog/core/iron_table.py
196 197 198 199 200 201 202 203 204 | |
QuadraticMeltingCurve(*, t_m0, t_m1, t_m2)
Quadratic-in-pressure melting curve, T_m0 (1 + T_m1 P + T_m2 P^2).
The parameterisation of Nimmo (2015, Treatise on Geophysics 9.08,
Eq. 6), where T_m0 already incorporates the light-element
depression; it is the form the Table 2 benchmark models are defined in,
and a configurable alternative to the PALEOS prescription wherever a
fitted curve is preferred. Valid over core pressures only; T_m0 is
not a zero-pressure melting temperature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t_m0
|
float
|
Prefactor [K], positive. |
required |
t_m1
|
float
|
Linear coefficient [Pa-1]; either sign occurs in published fits. |
required |
t_m2
|
float
|
Quadratic coefficient [Pa-2]; either sign occurs in published fits. |
required |
Notes
The fit is only meaningful over the pressure range it was constructed for; outside it a negative-coefficient curve can fall through zero. Callers own the range check.
Source code in src/aragog/core/melting.py
163 164 165 166 167 168 | |
gradient(pressure)
Melting-curve slope dT_m/dP [K/Pa] at pressure [Pa].
Source code in src/aragog/core/melting.py
180 181 182 183 | |
t_melt(pressure, light_element_fraction=None)
Melting temperature [K] at pressure [Pa].
The unused light_element_fraction keeps the call signature
interchangeable with :class:IronMeltingCurve; the depression is
already folded into t_m0 in this parameterisation.
Source code in src/aragog/core/melting.py
170 171 172 173 174 175 176 177 178 | |
TabulatedCoreProfiles(core, table, *, c_p=C_P_OVERRIDE, t_cmb_range=None, t_cmb_step=10.0, m_core=None)
Density, mass, gravity, pressure, potential and isentrope of a tabulated core.
The interface is that of :class:aragog.core.profiles.GaussianCoreProfiles that
:class:aragog.core.budget.CoreEnergyBudget reads, plus :meth:secular_capacity and
:meth:secular_heat_change, which depend on T_cmb here.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
core
|
dict
|
Core arrays from the centre to the CMB, the names of the Zalmoxis |
required |
table
|
LiquidIronTable
|
The PALEOS liquid iron table the isentrope is read from. |
required |
c_p
|
float or None
|
Constant isobaric heat capacity [J kg-1 K-1] of the secular term, or |
C_P_OVERRIDE
|
t_cmb_range
|
tuple of float
|
Lowest and highest CMB temperature [K] of the tabulated isentropes; every node must
stay inside the table box over the range. By default the whole range the table
holds: from the CMB temperature whose isentrope reaches the lowest table temperature
at the node of highest entropy there (the CMB where |
None
|
t_cmb_step
|
float
|
Spacing [K] of the CMB temperature grid. |
10.0
|
m_core
|
float
|
Core mass [kg] of the structure; when given, the last node of |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
On a missing or malformed array, core pressures outside the pressure range of the
table, a density whose integral misses the node mass by more than 1e-2 (Zalmoxis
cores miss by at most 1.1e-3, at a density jump of the inner-core boundary), an
isentrope that leaves the table between nodes, a node outside the table box on the
range, an isentrope that misses |
Source code in src/aragog/core/profiles_tabulated.py
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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
adiabat(r, t_cmb)
Temperature [K] at radius r on the isentrope through t_cmb at the CMB.
Source code in src/aragog/core/profiles_tabulated.py
382 383 384 | |
adiabat_gradient(r, t_cmb)
dT/dr [K/m] of the isentrope through t_cmb.
Source code in src/aragog/core/profiles_tabulated.py
386 387 388 389 | |
check_t_cmb(t_cmb)
Refuse CMB temperatures [K] outside the tabulated isentropes (NaN included).
Raises:
| Type | Description |
|---|---|
ValueError
|
At the first temperature outside |
Source code in src/aragog/core/profiles_tabulated.py
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | |
density(r)
Density [kg m-3] at radius r [m].
Source code in src/aragog/core/profiles_tabulated.py
342 343 344 | |
enclosed_mass(r)
Mass [kg] inside radius r [m]; the Zalmoxis mass at the nodes.
Source code in src/aragog/core/profiles_tabulated.py
346 347 348 | |
gravity(r)
Gravitational acceleration [m s-2] at radius r [m].
Source code in src/aragog/core/profiles_tabulated.py
350 351 352 | |
outside_calibration_fraction(t_cmb)
Mass fraction of the core outside the Luo et al. (2024) window at t_cmb [K].
Source code in src/aragog/core/profiles_tabulated.py
452 453 454 455 | |
potential(r)
Gravitational potential [J/kg] at radius r [m], zero at the CMB.
Source code in src/aragog/core/profiles_tabulated.py
358 359 360 | |
pressure(r)
Pressure [Pa] at radius r [m]; slopes from hydrostatic balance.
Source code in src/aragog/core/profiles_tabulated.py
354 355 356 | |
secular_capacity(t_cmb)
Secular heat capacity (c_p / T_cmb) int T_a dm [J/K] at t_cmb [K].
Source code in src/aragog/core/profiles_tabulated.py
414 415 416 417 | |
secular_heat_change(t_cmb, d_t)
Exact integral [J] of :meth:secular_capacity from t_cmb to t_cmb + d_t.
Each piece of the cubic between grid temperatures is integrated by 3-point Gauss-Legendre, exact for a cubic, so the result is the change of the antiderivative without the difference of 2 large contents.
Source code in src/aragog/core/profiles_tabulated.py
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 | |
t_cen(t_cmb)
Centre temperature [K] on the isentrope through t_cmb.
Source code in src/aragog/core/profiles_tabulated.py
391 392 393 | |
t_cmb_at_centre(t_centre)
CMB temperature [K] of the isentrope with centre temperature t_centre [K].
Raises:
| Type | Description |
|---|---|
ValueError
|
If no tabulated isentrope reaches |
Source code in src/aragog/core/profiles_tabulated.py
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | |
adiabatic_ratio(entropy, t_cmb, q_cmb)
ADR = Q_cmb / Q_k: below one the top of the core is subadiabatic.
Source code in src/aragog/core/stratification.py
67 68 69 | |
build_core_module_budget(params, *, r_cmb, p_cmb_fallback, m_core=None, p_cen=None)
Build a :class:CoreEnergyBudget from a flat config dict.
Recognised keys: profile parameters (rho_cen, length_scale,
p_cmb, alpha, c_p, pressure_mode, adiabat_mode, m_core,
p_cen, fit_profile), the melting-curve selector
melting_curve ('iron' with light_element_fraction and
depression, or 'quadratic' with t_m0/t_m1/t_m2),
and the budget parameters (ds_fusion, icn_width,
latent_heat, alpha_c, c_light, capacity_mode,
legacy_rho_core, legacy_tfac, stratification,
k_core), and the shell of a stratified core (layer_base_fraction,
layer_cells, layer_top_cell, layer_k_mix, layer_g_mix). The CMB radius comes from the caller (the solver's
mesh), never from the dict, and p_cmb falls back to the
caller's value when absent.
profile_source = 'paleos' builds a :class:TabulatedCoreProfiles instead, from the
core arrays in core_profile_file (an .npz with the names of the Zalmoxis
result['core']) on the PALEOS liquid iron table core_liquid_table, with the
secular c_p core_cp_override (840 J/kg/K by default, 'table' for the table value
at the CMB) and the CMB temperature grid step core_t_cmb_step [K] (10 by default).
The Gaussian profile keys are then unused; m_core must equal the mass of the arrays
to 1e-10 and their last radius the mesh CMB to max(1 m, 1e-9 r_cmb).
When both m_core and p_cen are provided (and fit_profile is
not False), rho_cen and length_scale are fitted to the
structure constraints via :meth:GaussianCoreProfiles.from_structure.
Raises:
| Type | Description |
|---|---|
ValueError
|
From the underlying constructors on any invalid value, or here on
an unknown melting-curve selector, an unrecognised key, a quadratic
curve without its three coefficients, a |
Source code in src/aragog/core/module.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | |
check_liquid_band(loc, width)
Refuse a transition band of the phase law that leaves [0, 1] or has no width.
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
Source code in src/aragog/core/boundary_layer.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
check_ra_crit(ra_crit)
Return the CMB critical Rayleigh number: None (eq. 16), 'phase' or a float.
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
Source code in src/aragog/core/boundary_layer.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
cmb_boundary_layer_flux(t_core, t_mantle, *, conductivity, density, heat_capacity, expansivity, viscosity, gravity, dr_half, ra_crit=RA_CRIT_CMB_DEFAULT, shell_thickness=None, shell_contrast=None, interior_viscosity=None, melt_fraction=None, liquid_band=None)
Heat flux out of the core across the CMB [W/m^2].
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t_core
|
float or Array
|
Core temperature at the CMB [K]. |
required |
t_mantle
|
float or Array
|
Mantle temperature at the CMB [K]: the bottom cell's entropy evaluated at the CMB pressure in the solver. |
required |
conductivity
|
float
|
Bottom-cell thermal conductivity [W/m/K], density [kg/m^3], heat
capacity [J/kg/K], thermal expansivity [1/K] and dynamic viscosity
[Pa s]. The thermal diffusivity is |
required |
density
|
float
|
Bottom-cell thermal conductivity [W/m/K], density [kg/m^3], heat
capacity [J/kg/K], thermal expansivity [1/K] and dynamic viscosity
[Pa s]. The thermal diffusivity is |
required |
heat_capacity
|
float
|
Bottom-cell thermal conductivity [W/m/K], density [kg/m^3], heat
capacity [J/kg/K], thermal expansivity [1/K] and dynamic viscosity
[Pa s]. The thermal diffusivity is |
required |
expansivity
|
float
|
Bottom-cell thermal conductivity [W/m/K], density [kg/m^3], heat
capacity [J/kg/K], thermal expansivity [1/K] and dynamic viscosity
[Pa s]. The thermal diffusivity is |
required |
viscosity
|
float
|
Bottom-cell thermal conductivity [W/m/K], density [kg/m^3], heat
capacity [J/kg/K], thermal expansivity [1/K] and dynamic viscosity
[Pa s]. The thermal diffusivity is |
required |
gravity
|
float
|
Gravitational acceleration at the CMB [m/s^2]. |
required |
dr_half
|
float
|
Distance from the CMB to the bottom staggered node [m], positive. |
required |
ra_crit
|
float or None
|
Critical Rayleigh number of the boundary layer; None (or NaN inside a JAX trace) selects Thiriet et al. (2019) eq. 16. |
RA_CRIT_CMB_DEFAULT
|
shell_thickness
|
float
|
Mantle thickness [m] and temperature difference across the shell [K] for the
internal Rayleigh number of eq. 16; required when |
None
|
shell_contrast
|
float
|
Mantle thickness [m] and temperature difference across the shell [K] for the
internal Rayleigh number of eq. 16; required when |
None
|
interior_viscosity
|
float
|
Viscosity of the interior at |
None
|
melt_fraction
|
float
|
Melt fraction of the bottom cell's own state at the CMB pressure; required with
|
None
|
liquid_band
|
tuple of float
|
|
None
|
Returns:
| Type | Description |
|---|---|
Array
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
Source code in src/aragog/core/boundary_layer.py
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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | |
critical_rayleigh_eq16(*, conductivity, density, heat_capacity, expansivity, viscosity, gravity, shell_thickness, shell_contrast)
Thiriet et al. (2019) eq. 16, 0.28 Ra_i^0.21, with Ra_i of their eq. 3.
shell_thickness [m] is the mantle thickness, shell_contrast [K] the
temperature difference across the shell and viscosity [Pa s] that of the interior
at T_m; the other arguments are the layer properties as in
cmb_boundary_layer_flux. A non-positive Ra_i is held at a tiny positive
value so the power stays finite (the caller conducts there).
Source code in src/aragog/core/boundary_layer.py
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 | |
crystallization_regime(budget, t_cmb)
Regime code (see REGIME_NAMES) at t_cmb.
The superheat T_a - T_m is sampled on a fixed radial grid; its
sign at the centre and the CMB plus the number of sign changes
classify the state:
- no solid anywhere:
fully_liquid - no liquid anywhere:
fully_frozen - one interface, solid centre:
bottom_up - one interface, solid top:
top_down - more than one interface:
snow(at least one interior solid or liquid shell)
The grid resolves shells wider than r_cmb / 512; a thinner shell
than that reads as its surrounding regime.
Source code in src/aragog/core/regime.py
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 | |
eutectic(el, pressure)
Eutectic temperature [K] and composition (mass fraction of el) of the Fe-el binary.
The data are taken at an effective pressure q [GPa]: q = max(P, lo) up to the
end of the data hi, q = hi + h above hi + 2h and, in between,
q = hi + 2h (z - z^4 (5/2 - 3z + z^2)) with z = (P - hi) / 2h, so that
dq/dP = 1 - b(z) with the smootherstep b = 6z^5 - 15z^4 + 10z^3 (2h =
:data:HOMOLOGOUS_FADE_GPA). The temperature keeps its ratio to the pure-iron curve at q
(homologous outside the data); inside, both follow the data, joined at the low-pressure end as
the module docstring states, each table continued along its last segment above hi.
Source code in src/aragog/core/alloy.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
liquid_weight(melt_fraction, loc, width)
Weight of the liquid law (Ra_crit = 450) in the CMB law by phase.
(1 + tanh((phi - loc) / w)) / 2 with w = (width / 2) / atanh(0.9): 1/2 at the
rheological transition loc, 0.05 and 0.95 at the band edges loc -+ width / 2,
towards 0 on the solid side and 1 on the liquid side. It is narrower than the weight of
the viscosity blend, (1 + tanh((phi - loc) / width)) / 2.
Source code in src/aragog/core/boundary_layer.py
73 74 75 76 77 78 79 80 81 | |
load_core_arrays(path)
Core arrays of a Zalmoxis structure from an .npz with the names of its
result['core']; 0-d arrays (M_ic, R_icb, P_icb) come back as floats and a
string array (w_layers, JSON) as str.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |
ValueError
|
If |
Source code in src/aragog/core/module.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | |
regime_name(code)
Human-readable name for a regime code (eager helper for logs).
Source code in src/aragog/core/regime.py
135 136 137 | |
stratification_depth(entropy, t_cmb, q_cmb)
Equilibrium thickness [m] of the stably stratified sub-CMB layer.
Solves Q_ad(r_s) = Q_cmb for the layer base r_s by fixed
bisection on the inner rising branch of Q_ad(r) = 4 pi r^2 k |dT_a/dr|,
which peaks at profiles.r_peak (D sqrt(3/2) on the small-radius adiabat) and
decreases beyond it; the thickness is r_cmb - r_s. For Earth-scale cores
the peak sits outside the CMB and the branch spans the whole core;
for larger cores the search is bracketed at the peak, and a layer
reaching the peak is reported clamped there, since the thin-layer
conductive-matching estimate has no meaning deeper. Zero when the
flow is superadiabatic at the CMB (ADR >= 1); the whole core
when the flow is non-positive (q_cmb <= 0).
Source code in src/aragog/core/stratification.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
-
S. Labrosse, J.-P. Poirier, J.-L. Le MouĂ«l, The age of the inner core, Earth and Planetary Science Letters, 190, 111-123, 2001. SciX. ↩
-
Y. Miyazaki, J. Korenaga, On the timescale of magma ocean solidification and its chemical consequences: 2. Compositional differentiation under crystal accumulation and matrix compaction, Journal of Geophysical Research: Solid Earth, 124, 3399-3419, 2019. SciX. ↩
-
F. Nimmo, Thermal and Compositional Evolution of the Core, in G. Schubert (ed.), Treatise on Geophysics, 2nd edition, Elsevier, 9, ch. 9.08, 201-219, 2015. ↩
-
S. Anzellini, A. Dewaele, M. Mezouar, P. Loubeyre, G. Morard, Melting of Iron at Earth's Inner Core Boundary Based on Fast X-ray Diffraction, Science, 340, 464-466, 2013. SciX. ↩
-
U. R. Christensen, V. Holzwarth, A. Reiners, Energy flux determines magnetic field strength of planets and stars, Nature, 457, 167-169, 2009. SciX. ↩
-
B. J. Foley, P. E. Driscoll, Whole planet coupling between climate, mantle, and core: Implications for rocky planet evolution, Geochemistry, Geophysics, Geosystems, 17, 1885-1914, 2016. SciX. ↩
-
M. Thiriet, D. Breuer, C. Michaut, A.-C. Plesa, Scaling laws of convection for cooling planets in a stagnant lid regime, Physics of the Earth and Planetary Interiors, 286, 138-153, 2019. SciX. ↩↩↩
-
D. Breuer, T. Rueckriemen, T. Spohn, Iron snow, crystal floats, and inner-core growth: modes of core solidification and implications for dynamos in terrestrial planets and moons, Progress in Earth and Planetary Science, 2, 39, 2015. SciX. ↩