proteus.interior_energetics.wrapper¶
The orchestration wrapper for the interior energetics submodule (Aragog or SPIDER).
The most relevant function for Zalmoxis coupling is equilibrate_initial_state(), which iterates CALLIOPE + Zalmoxis to a converged state before the main coupling loop starts.
For the conceptual overview, see the Zalmoxis coupling explainer.
equilibrate_initial_state(dirs, config, hf_row, outdir)
¶
Iterate CALLIOPE + Zalmoxis until structure and composition converge.
Runs volatile partitioning (CALLIOPE with optional binodal H2) followed by structure re-computation (Zalmoxis) in a loop. No SPIDER call. Convergence is checked on relative changes in R_int and P_surf.
Called from proteus.py after the initial structure solve and volatile inventory setup. The converged state provides a self-consistent starting point for SPIDER's first time step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dirs
|
dict
|
Directory paths (including spider_mesh, spider_eos_dir). |
required |
config
|
Config
|
PROTEUS configuration. |
required |
hf_row
|
dict
|
Current helpfile row with volatile masses, R_int, P_surf, T_magma, etc. |
required |
outdir
|
str
|
Output directory for Zalmoxis files. |
required |
Source code in src/proteus/interior_energetics/wrapper.py
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 | |
solve_structure(dirs, config, hf_all, hf_row, outdir, thermal_solve=True)
¶
Solve for the planet structure based on the method set in the configuration file.
If the structure is set by the radius, then this is trivial because the radius is used as an input to the interior modules anyway. If the structure is set by mass, then it is solved as an inverse problem for now.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dirs
|
dict
|
Directories dictionary. |
required |
config
|
Config
|
Model configuration. |
required |
hf_all
|
DataFrame
|
Historical helpfile dataframe. |
required |
hf_row
|
dict
|
Current step helpfile row. |
required |
outdir
|
str
|
Output directory path. |
required |
thermal_solve
|
bool
|
Whether to run an interior thermal solve or update mechanical mass and structure only (default is True). |
True
|
Source code in src/proteus/interior_energetics/wrapper.py
2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 | |