Class ReservoirRunner

java.lang.Object
neqsim.mcp.runners.ReservoirRunner

public class ReservoirRunner extends Object
Stateless reservoir simulation runner for MCP integration.

Supports simple reservoir material balance (tank model) with producer and injector wells. Provides production forecasting by running transient steps to simulate depletion over time.

Version:
1.0
Author:
Even Solbraa
  • Field Details

    • GSON

      private static final com.google.gson.Gson GSON
  • Constructor Details

    • ReservoirRunner

      private ReservoirRunner()
      Private constructor — all methods are static.
  • Method Details

    • run

      public static String run(String json)
      Runs a reservoir simulation from a JSON input string.
      Parameters:
      json - the JSON reservoir specification
      Returns:
      a JSON string with status and production results
    • createFluidFromInput

      private static SystemInterface createFluidFromInput(com.google.gson.JsonObject input)
      Creates a fluid system from the JSON input.
      Parameters:
      input - the JSON object
      Returns:
      the configured fluid system
    • errorJson

      private static String errorJson(String code, String message, String remediation)
      Creates a standard error JSON string.
      Parameters:
      code - the error code
      message - the error message
      remediation - the fix suggestion
      Returns:
      the error JSON string