aragog (package)
aragog
Package level variables and initialises the package logger
CFG_DATA = importlib.resources.files(f'{__package__}.cfg')
module-attribute
__version__ = '26.01.06'
module-attribute
logger = logging.getLogger(__name__)
module-attribute
Output(solver)
Stores inputs and outputs of the models.
Source code in aragog/output.py
44 45 46 47 48 49 | |
conductive_heat_flux_basic
property
Conductive heat flux
convective_heat_flux_basic
property
Convective heat flux
core_mass
property
Core mass computed with constant density
dTdr
property
dTdr
dTdrs
property
dTdrs
density_basic
property
Density
gravitational_separation_heat_flux_basic
property
Gravitational separation heat flux
heat_capacity_basic
property
Heat capacity
heating
property
Internal heat generation at staggered nodes
heating_dilatation
property
Internal heat generation from dilatation/compression at staggered nodes
heating_radio
property
Internal heat generation from radioactive decay at staggered nodes
heating_tidal
property
Internal heat generation from tidal heat dissipation at staggered nodes
liquidus_K_staggered
property
Liquidus
log10_viscosity_basic
property
Viscosity of the basic mesh
log10_viscosity_staggered
property
Viscosity of the staggered mesh
mantle_mass
property
Mantle mass computed from the AdamsWilliamsonEOS
mass_radii_km_basic
property
Mass radii of the basic mesh in km
mass_radii_km_staggered
property
Mass radii of the staggered mesh in km
mass_staggered
property
Mass of each layer on staggered mesh
melt_fraction_basic
property
Melt fraction on the basic mesh
melt_fraction_global
property
Volume-averaged melt fraction
melt_fraction_staggered
property
Melt fraction on the staggered mesh
mixing_heat_flux_basic
property
Convective mixing heat flux
pressure_GPa_basic
property
Pressure of the basic mesh in GPa
pressure_GPa_staggered
property
Pressure of the staggered mesh in GPa
radii_km_basic
property
Radii of the basic mesh in km
radii_km_staggered
property
Radii of the staggered mesh in km
rheological_front
property
Rheological front at the last solve iteration given user defined threshold. It is defined as a dimensionless distance with respect to the outer radius.
shape_basic
property
Shape of the basic data
shape_staggered
property
Shape of the staggered data
solidus_K_staggered
property
Solidus
solution_top_temperature
property
Solution (last iteration) temperature at the top of the domain (planet surface)
super_adiabatic_temperature_gradient_basic
property
Super adiabatic temperature gradient
temperature_K_basic
property
Temperature of the basic mesh in K
temperature_K_staggered
property
Temperature of the staggered mesh in K
thermal_expansivity_basic
property
Thermal expansivity
times
property
Times in years
total_heat_flux_basic
property
Conductive heat flux
plot(num_lines=11, figsize=(25, 10))
Plots the solution with labelled lines according to time.
Args: num_lines: Number of lines to plot. Defaults to 11. figsize: Size of the figure. Defaults to (25, 10).
Source code in aragog/output.py
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 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 | |
write_at_time(file_path, tidx=-1, compress=False)
Write the state of the model at a particular time to a NetCDF4 file on the disk.
Args: file_path: Path to the output file tidx: Index on the time axis at which to access the data compress: Whether to compress the data
Source code in aragog/output.py
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 390 391 392 393 394 395 396 397 398 399 400 401 402 | |
Solver(param)
Solves the interior dynamics
Args: filename: Filename of a file with configuration settings root: Root path to the flename
Attributes: filename: Filename of a file with configuration settings root: Root path to the filename. Defaults to empty parameters: Parameters evaluator: Evaluator state: State
Source code in aragog/solver.py
486 487 488 489 490 491 | |
solution
property
The solution.
temperature_basic
property
Temperature of the basic mesh in K
temperature_staggered
property
Temperature of the staggered mesh in K
dTdt(time, temperature)
dT/dt at the staggered nodes
Args: time: Time temperature: Temperature at the staggered nodes
Returns: dT/dt at the staggered nodes
Source code in aragog/solver.py
546 547 548 549 550 551 552 553 554 555 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 | |
from_file(filename, root=Path())
classmethod
Parses a configuration file
Args: filename: Filename root: Root of the filename
Returns: Parameters
Source code in aragog/solver.py
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | |
initialize()
Initializes the model.
Source code in aragog/solver.py
510 511 512 513 514 | |
make_tsurf_event()
Creates a temperature event function for use with an ODE solver to monitor changes in the surface temperature.The event triggers when the change exceeds the threshold, allowing the solver to stop integration.
Returns: The event has the attributes: - terminal = True: Integration stops when the event is triggered. - direction = -1: Only triggers when the function is decreasing through zero.
Source code in aragog/solver.py
593 594 595 596 597 598 599 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 632 | |
reset()
This function initializes the model, while keeping the previous state of the PhaseEvaluatorCollection object. This avoids multiple loads of lookup table data when running Aragog multiple times.
Source code in aragog/solver.py
516 517 518 519 520 521 522 523 524 525 526 527 | |
DownloadLookupTableData(fname='')
Download lookup table data
Inputs : - fname (optional) : folder name, i.e. "1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018" if not provided download all the folder list
Source code in aragog/data.py
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 | |
aragog_file_logger(console_level=logging.INFO, file_level=logging.DEBUG, log_dir=os.getcwd())
Sets up console logging and file logging according to arguments.
Returns: A logger
Source code in aragog/__init__.py
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 | |
complex_formatter()
Complex formatter for logging
Returns: Formatter for logging
Source code in aragog/__init__.py
36 37 38 39 40 41 42 43 44 45 46 47 | |
debug_logger()
Sets up debug logging to the console.
Returns: A logger
Source code in aragog/__init__.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
simple_formatter()
Simple formatter for logging
Returns: Formatter for logging
Source code in aragog/__init__.py
50 51 52 53 54 55 56 57 58 59 60 | |