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
1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 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 | |
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
2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 | |