proteus.outgas.common¶
The species-to-element split and the list of helpfile keys that each outgassing module writes.
For how this part works, see Outgassing, rock vapour and volatile trapping.
common
¶
element_masses_from_species(species_kg)
¶
Split per-species masses [kg] into per-element masses [kg].
Each species mass is apportioned across its constituent elements by their
share of the formula mass, so the element masses sum back to the species
mass. A species absent from VOLATILE_ELEMENT_STOICH (a noble gas, a rock
vapour) is carried through under its own symbol, which is how those species
already appear in element_list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
species_kg
|
dict
|
Mass per gas species [kg]. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Mass per element [kg], covering only the elements the input touches. |
Source code in src/proteus/outgas/common.py
35 36 37 38 39 40 41 42 43 44 45 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 | |
expected_keys()
¶
Helpfile keys that an outgassing module writes on every call.
The pressures [bar], mixing ratios, masses [kg] and moles of each gas per
reservoir, the element reservoirs, the atmospheric element mass ratios and
the bulk columns. {e}_kg_total is left out for every element except O,
since escape owns those totals.
Source code in src/proteus/outgas/common.py
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 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 | |