aragog.rheology
The aragog.rheology module provides the homologous-temperature Arrhenius diffusion-creep viscosity kernel, the Byerlee plastic yield-stress criterion, the viscosity-contrast-dependent mixing-length factor, and the SolidRheologyParams configuration dataclass. All kernels accept an xp array namespace (numpy or jax.numpy) and run at 64-bit precision.
| Name | Role |
|---|---|
SolidRheologyParams |
Validated configuration dataclass for solid-state Arrhenius creep, Byerlee yielding, stagnant-lid diagnostics, and mixing-length calibration. |
merge_rheology |
Return a SolidRheologyParams instance with keyword field overrides applied. |
delegate_rheology |
Class decorator exposing SolidRheologyParams fields as read-only properties reading self.rheology. |
compute_arrhenius_enthalpy |
Pressure-dependent homologous activation enthalpy \(H(P) = g_\mathrm{hom} R T_\mathrm{sol}(P)\) (J/mol). |
compute_arrhenius_viscosity |
Homologous-temperature Arrhenius diffusion-creep viscosity \(\eta_\mathrm{diff}(T, P)\) (Pa s), clipped in \(\log_{10}\) space after applying water_prefactor. |
compute_yield_stress |
Byerlee frictional yield stress \(\tau_y(P) = \max(0, \min(c + \mu P, \tau_\mathrm{max}))\) (Pa). |
compute_strain_rate_local |
Second invariant of the local convective strain-rate tensor $\dot{\epsilon}_\mathrm{local} = |
compute_mlt_top_slope |
Viscosity-contrast-dependent upper mixing-length slope \(s_\mathrm{top}(\theta) = s_{\mathrm{top},\infty} + (1 - s_{\mathrm{top},\infty}) \exp(-c_\theta \max(\theta, 0))\). |
viscous_mixing_length_factor |
Fourth-power mixing-length scaling factor \((l_v / l)^4\) for the viscous branch of mixing-length theory. |
For the physical derivations and asymptotic regimes, see Solid-state convection and lithospheric rheology.
rheology
Solid-state mantle rheology formulations.
Provides temperature- and pressure-dependent Arrhenius diffusion creep viscosity, Byerlee yield stress, boundary-layer stress closure, effective viscosity capping, and viscosity-contrast-dependent mixing-length scaling for solid-state convection.
SolidRheologyParams(enabled=False, g_homologous=25.0, t_sol_0=1400.0, dt_sol_dp=2.4e-08, arrhenius_t_ref=1600.0, viscosity_max_log10=40.0, water_prefactor=1.0, yield_stress_c=50000000.0, yield_stress_mu=0.6, yield_stress_max=500000000.0, stress_closure_mode='lid', interior_flux_fraction=0.05, lid_base_mode='rheological', lid_base_temperature=1400.0, lid_contrast_coeff=2.2, lid_mask_width_cells=1.0, phi_visc_single=0.5, mlt_bottom_slope=1.0, s_top_inf=0.22, c_theta=0.15)
dataclass
Parameters for solid-state mantle rheology and stagnant lid scaling.
This class is the single source of truth for rheology parameter defaults and bounds validation across Aragog and PROTEUS.
Notes
At the default g_homologous = 25.0 and t_sol_0 = 1400.0 K, the
zero-pressure activation enthalpy is :math:H(0) = 291 kJ/mol, close to a
standard olivine diffusion-creep activation energy :math:E_a = 300 kJ/mol
(Karato & Wu 1993). The linear solidus fallback defaults t_sol_0 = 1400.0 K
and dt_sol_dp = 2.4e-8 K/Pa (24 K/GPa) provide a single-slope benchmark
form (comparable to the 21.1 K/GPa whole-mantle secant of the Wolf & Bower
2018 solidus curve wolf_bower_2018/r15728072/solidus.dat, 1380.6 K at
0 GPa to 4232.1 K at 135 GPa). Because the physical solidus is concave
downward overall (steep below about 25 GPa, about 16 K/GPa above), the
linear form is 1.4 % high at 0 GPa (1400 K versus 1380.6 K), 19 % low at
25 GPa (2000 K versus 2475.9 K), and 9.6 % high at 135 GPa (4640 K versus
4232.1 K), crossing the table curve below 1 GPa and at 84.3 GPa,
and serves table-free constant-property benchmarks only.
compute_arrhenius_enthalpy(pressure, g_homologous=None, solidus_temperature=None, t_sol_0=None, dt_sol_dp=None, r_gas=R_GAS, xp=np)
Compute homologous-temperature activation enthalpy H(P) [J/mol].
.. math:: H(P) = g_\mathrm{hom} R T_\mathrm{sol}(P)
When solidus_temperature is not provided, the linear fallback
:math:T_\mathrm{sol}(P) = T_{\mathrm{sol},0} + (dT_\mathrm{sol}/dP) P is
used; it serves table-free benchmarks only (see SolidRheologyParams).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pressure
|
float or array - like
|
Pressure P [Pa] (must be non-negative; callers clamp negative round-off excursions at zero). |
required |
g_homologous
|
float
|
Dimensionless homologous activation parameter g_hom [-]. Defaults to
|
None
|
solidus_temperature
|
float or array - like
|
Local solidus temperature T_sol(P) [K]. |
None
|
t_sol_0
|
float
|
Zero-pressure solidus T_sol(0) [K] for the linear fallback
( |
None
|
dt_sol_dp
|
float
|
Linear solidus slope dT_sol/dP [K/Pa] for the linear fallback. Defaults to
|
None
|
r_gas
|
float
|
Universal gas constant R [J/(mol K)]. |
8.314462618
|
xp
|
array module
|
Array namespace module (numpy or jax.numpy). |
np
|
Returns:
| Type | Description |
|---|---|
float or array - like
|
Activation enthalpy H(P) [J/mol]. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/aragog/rheology.py
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 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | |
compute_arrhenius_viscosity(temperature, pressure, viscosity_solid=None, g_homologous=None, solidus_temperature=None, t_sol_0=None, dt_sol_dp=None, arrhenius_t_ref=None, r_gas=R_GAS, viscosity_max_log10=None, water_prefactor=None, xp=np)
Compute temperature- and pressure-dependent homologous Arrhenius viscosity.
.. math:: \eta_\mathrm{diff}(T, P) = \eta_0 f_\mathrm{water} \exp\left[ g_\mathrm{hom} \left( \frac{T_\mathrm{sol}(P)}{T} - \frac{T_\mathrm{sol}(0)}{T_\mathrm{ref}} \right) \right]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
temperature
|
float or array - like
|
Temperature T [K]. |
required |
pressure
|
float or array - like
|
Pressure P [Pa] (must be non-negative; callers clamp negative round-off excursions at zero). |
required |
viscosity_solid
|
float
|
Reference solid-state dynamic viscosity eta_0 [Pa s] at (T_ref, P=0).
Defaults to |
None
|
g_homologous
|
float
|
Dimensionless homologous activation parameter g_hom [-]. Defaults to
|
None
|
solidus_temperature
|
float or array - like
|
Local solidus temperature T_sol(P) [K]. When None, uses the linear fallback
|
None
|
t_sol_0
|
float
|
Zero-pressure reference solidus temperature T_sol(0) [K]. Required when
|
None
|
dt_sol_dp
|
float
|
Linear solidus slope dT_sol/dP [K/Pa] for the linear fallback. Defaults to
|
None
|
arrhenius_t_ref
|
float
|
Reference temperature T_ref [K]. Defaults to
|
None
|
r_gas
|
float
|
Universal gas constant R [J/(mol K)]. |
8.314462618
|
viscosity_max_log10
|
float
|
Upper bound on log10 dynamic viscosity [log10(Pa s)]. Defaults to
|
None
|
water_prefactor
|
float or array - like
|
Multiplicative prefactor for hydration weakening. Defaults to
|
None
|
xp
|
array module
|
Array namespace module (numpy or jax.numpy). |
np
|
Returns:
| Type | Description |
|---|---|
float or array - like
|
Dynamic diffusion creep viscosity eta_diff [Pa s]. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/aragog/rheology.py
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 442 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 475 476 477 478 479 480 481 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 541 542 543 544 545 546 547 548 549 550 551 552 553 | |
compute_mlt_top_slope(theta, s_top_inf=None, c_theta=None, xp=np)
Evaluate viscosity-contrast-dependent upper mixing-length slope.
.. math:: s_\mathrm{top}(\theta) = s_{\mathrm{top},\infty} + (1 - s_{\mathrm{top},\infty}) \exp(-c_\theta \max(\theta, 0))
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
theta
|
float or array - like
|
Frank-Kamenetskii viscosity contrast parameter [-]. |
required |
s_top_inf
|
float
|
Asymptotic upper mixing-length slope in the stagnant-lid limit [-].
Defaults to |
None
|
c_theta
|
float
|
Exponential decay rate with respect to theta [-].
Defaults to |
None
|
xp
|
module
|
Array namespace (numpy or jax.numpy). |
np
|
Returns:
| Type | Description |
|---|---|
float or array - like
|
Upper mixing-length slope s_top(theta) [-]. |
Source code in src/aragog/rheology.py
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 | |
compute_strain_rate_local(viscous_velocity, mixing_length, eps=1e-15, xp=np)
Compute local convective strain rate from MLT state variables.
.. math:: \dot{\epsilon}\mathrm{local} = \frac{|v|}{2 \max(l\mathrm{mix}, \epsilon)}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
viscous_velocity
|
float or array - like
|
Convective / viscous velocity v [m/s]. |
required |
mixing_length
|
float or array - like
|
Mixing length l_mix [m]. |
required |
eps
|
float
|
Denominator floor to prevent division by zero. |
1.0e-15
|
xp
|
array module
|
Array namespace module (numpy or jax.numpy). |
np
|
Returns:
| Type | Description |
|---|---|
float or array - like
|
Local strain rate [1/s]. |
Source code in src/aragog/rheology.py
600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 | |
compute_yield_stress(pressure, yield_stress_c=None, yield_stress_mu=None, yield_stress_max=None, xp=np)
Compute Byerlee frictional yield stress.
.. math:: \tau_y(P) = \max(0, \min(c + \mu P, \tau_\mathrm{max}))
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pressure
|
float or array - like
|
Pressure P [Pa]. |
required |
yield_stress_c
|
float
|
Cohesion c [Pa]. Defaults to |
None
|
yield_stress_mu
|
float
|
Friction coefficient mu [-]. Defaults to
|
None
|
yield_stress_max
|
float
|
Maximum yield stress ceiling [Pa]. Defaults to
|
None
|
xp
|
array module
|
Array namespace module (numpy or jax.numpy). |
np
|
Returns:
| Type | Description |
|---|---|
float or array - like
|
Yield stress tau_y [Pa]. |
Source code in src/aragog/rheology.py
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 | |
delegate_rheology(cls)
Expose SolidRheologyParams fields as read-only properties reading self.rheology.
Source code in src/aragog/rheology.py
142 143 144 145 146 | |
merge_rheology(rheology, overrides)
Return rheology (default parameters when None) with field overrides applied.
Source code in src/aragog/rheology.py
129 130 131 132 133 134 135 136 137 138 139 | |
viscous_mixing_length_factor(radii, r_in, r_out, mixing_length, s_top_inf=None, bottom_slope=None, theta=None, c_theta=None, *, xp=np)
Factor on the viscous MLT velocity replacing the Abe length by the calibrated one.
The viscous eddy diffusivity scales as l^4, so with
l_v = min(bottom_slope (r - r_in), s_top(theta) (r_out - r)) (Wagner et al.
2019, eq. 11, written with the two boundary slopes) it is multiplied by
(l_v / l)^4; the inviscid branch keeps l. When theta is provided,
the upper slope is evaluated via :func:compute_mlt_top_slope.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
radii
|
array
|
Basic-node radii [m]. |
required |
r_in
|
float
|
Inner and outer radius of the mantle [m]. |
required |
r_out
|
float
|
Inner and outer radius of the mantle [m]. |
required |
mixing_length
|
array
|
Abe mixing length |
required |
s_top_inf
|
float
|
Upper mixing-length slope at the surface when |
None
|
bottom_slope
|
float
|
Lower mixing-length slope at the CMB [-]. Defaults to
|
None
|
theta
|
float or array - like
|
Frank-Kamenetskii viscosity contrast parameter [-]. When provided, evaluates
the upper slope via :func: |
None
|
c_theta
|
float
|
Exponential decay rate with respect to |
None
|
xp
|
module
|
Array namespace (keyword-only). |
np
|
Returns:
| Type | Description |
|---|---|
array
|
|
Source code in src/aragog/rheology.py
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 | |