Gas usage and banks for one fill
gas_usageFor one blend: the litres of each gas it takes from the banks, each bank's pressure afterwards, and whether a bank can still decant (or needs boosting, or runs short). Same inputs as blend, plus the banks. Use for "how much helium will this fill use", "is my O2 bank enough for this fill", "koliko helija trošim za ovu mješavinu", "koliko plina ostaje u bankama". Banks not given come from the settings. Answer: the oxygen, helium and other gas used, each bank's pressure before and after, whether the fill works, and whether decanting is enough or a booster is needed; keep the litres of gas and the bank pressure drop apart. Then ask whether to calculate how many such fills the banks give (fills_from_bank).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| how | No | partial_pressure: add pure He and O2 to the tank, then top up with air. continuous: He / O2 go into the compressor intake (a premix stream). | partial_pressure |
| banks | No | Source banks (storage cylinders). Any bank not given is taken from the In Da Mix settings and listed in `assumed`. | |
| method | No | Calculation method (equation of state), as in the app. Default from the In Da Mix settings (see list_methods for the current default); listed in `assumed`. IDEAL_GAS_DALTON is the simple ideal-gas method; DIVESOFT_REAL_GAS also plans the decant from the banks. | |
| language | No | Language of the texts in the answer: en (English) or hr (Croatian). Use the user's language. | en |
| mix_type | Yes | nitrox (O2 + air), trimix (He + O2 + air), heliair (He + air), heliox (He + O2). | |
| dive_mode | No | Open circuit (OC) or closed-circuit rebreather (CCR). Sets which defaults apply (from the In Da Mix settings: ppO2, END, density, O2 narcotic). The values used are listed in `assumed`. | OC |
| depth_unit | No | Unit of every depth in the question and the answer. | m |
| temperature | No | Fill-site (ambient) temperature, in temperature_unit. Default from the In Da Mix settings; listed in `assumed`. | |
| use_booster | No | A gas booster is available: banks that can't decant high enough are boosted. With DIVESOFT_REAL_GAS it changes the plan; with other methods it only plans the gas. | |
| helium_first | No | Partial pressure: add helium before oxygen (trimix, heliox). | |
| include_steps | No | Also return the app's ƒx steps ("How this was calculated"): every formula with its numbers. Long: only when the user asks how it was calculated. | |
| pressure_unit | No | Unit of every pressure in the question and the answer. | bar |
| tank_volume_l | No | Water volume of the tank being filled, litres (a twin 12 = 24). Used for gas litres and bank use. | |
| start_pressure | No | Pressure already in the tank, in pressure_unit. 0 = empty. This changes the result a lot: if the user did not give it, ask before calling. If you call without it, the tool assumes an empty tank and lists that in `assumed`. | |
| heat_correction | No | Correct for the heating of the gas while filling. | |
| target_pressure | Yes | Fill pressure wanted, in pressure_unit (e.g. 200 or 232 bar, 3000 psi). | |
| start_he_percent | No | He percent of the gas already in the tank. | |
| start_o2_percent | No | O2 percent of the gas already in the tank (21 for air). | |
| temperature_unit | No | Unit of the fill temperature. | C |
| target_he_percent | No | He percent of the mix wanted (trimix, heliair, heliox). | |
| target_o2_percent | No | O2 percent of the mix wanted (nitrox, trimix, heliox). |