What If: add gas and see the mix
what_ifWhat mix you get when you add given pressures of oxygen, helium and/or air to what is in the tank (the app's What If): the pressure after each addition, the resulting mix, its MOD, EAD, END and gas density. Use for "what if" additions: "I have 50 bar of air, what do I get if I add 30 bar of O2 and top up with 120 bar of air", "what if I add 40 bar of helium", "što dobijem ako dodam 30 bara kisika", "dodam 40 bara helija, što dobijem". what_if: given additions -> the resulting mix; blend: a target mix -> how to make it. Pass only the additions and the tank's start the user gave. Answer: the start, the additions in order, the final pressure, the resulting O2 and He, and its MOD by the settings. Then ask whether to check its complete MOD or to adjust the additions for a target mix (blend).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| add_air | No | Pressure of air added, in pressure_unit. | |
| language | No | Language of the texts in the answer: en (English) or hr (Croatian). Use the user's language. | en |
| 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 |
| add_helium | No | Pressure of pure helium added, in pressure_unit. | |
| add_oxygen | No | Pressure of pure oxygen added, in pressure_unit. | |
| 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`. | |
| helium_first | No | Partial pressure: add helium before oxygen (trimix, heliox). | |
| target_depth | No | Depth for the gas density, in depth_unit. Default 30 m. | |
| 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 |
| 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`. | |
| 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 |