On a Numerical Method for Solving the Problem of Water Displacement by Gas (Proceedings of the Latvian Academy of Sciences. Section B: Natural, Exact and Applied Sciences, 2026)