{
  "version": 1,
  "topic": "FA08",
  "title": "Explore gas slip and its effect on a thermal pressure profile",
  "createdAt": "2026-10-24",
  "case": {
    "title": "Slip-Aware Hydrocarbon Thermal Pressure Profile Calculator",
    "premise": "Fixed controls: Inlet absolute pressure = 5 MPa(a); Inlet equilibrium temperature = 330 K; Pipe inside diameter = 0.1 m; Total mass flow rate = 1 kg/s; Distance along flow = 50 m; Prescribed inside-area heat-transfer coefficient = 100 W/(m2.K); Constant surrounding absolute temperature = 300 K; Prescribed Darcy friction factor = 0.02 dimensionless; Prescribed vertical drift distribution coefficient = 1.2 dimensionless; Methane feed mole fraction = 0.5 dimensionless; Ethane feed mole fraction = 0.15 dimensionless; Propane feed mole fraction = 0.15 dimensionless; n-Butane feed mole fraction = 0.1 dimensionless; n-Pentane feed mole fraction = 0.05 dimensionless; n-Hexane feed mole fraction = 0.05 dimensionless.",
    "formula": "G=mass rate/pipe area; wg is local PR equilibrium vapor mass fraction, not molar beta. jg=G*wg/rhog and jl=G*(1-wg)/rhol. alpha=jg/[C0*(jg+jl)+vd], ug=jg/alpha, ul=jl/(1-alpha). HEM fixes C0=1, vd=0. Holdup density=alpha*rhog+(1-alpha)*rhol. Momentum flux M=G*(wg*ug+(1-wg)*ul), total specific static/kinetic energy E=h+0.5*(wg*ug^2+(1-wg)*ul^2).; Implicit trapezoidal balance: d(p+M)/ds=-fD*G^2/(2*D*holdup_density)-holdup_density*g*sin(theta). dE/ds=pi*D*U/mass_rate*(Te-T)-g*sin(theta). Slip profile is vertical upward only. Solve both for p and T using SciPy bounded least squares, then repeat at 10 and 20 steps and audit integrated heat, friction, elevation and flux changes.",
    "variables": "Prescribed upward gas drift speed is varied within the supported input range. Six components C1-C6, normal C4-C6, classical PR and all kij=0. No water, isomers, sour gas, heavy fractions, reactions, solids or volume translation. Use the expanded-mixture tools for their explicitly supported alternatives, not by inserting a new species in these fixed feed slots.",
    "steps": [
      {
        "label": "Define the baseline",
        "calculation": "Prescribed upward gas drift speed (m/s) = 0.2",
        "explanation": "Fixed controls: Inlet absolute pressure = 5 MPa(a); Inlet equilibrium temperature = 330 K; Pipe inside diameter = 0.1 m; Total mass flow rate = 1 kg/s; Distance along flow = 50 m; Prescribed inside-area heat-transfer coefficient = 100 W/(m2.K); Constant surrounding absolute temperature = 300 K; Prescribed Darcy friction factor = 0.02 dimensionless; Prescribed vertical drift distribution coefficient = 1.2 dimensionless; Methane feed mole fraction = 0.5 dimensionless; Ethane feed mole fraction = 0.15 dimensionless; Propane feed mole fraction = 0.15 dimensionless; n-Butane feed mole fraction = 0.1 dimensionless; n-Pentane feed mole fraction = 0.05 dimensionless; n-Hexane feed mole fraction = 0.05 dimensionless."
      },
      {
        "label": "Select the relation",
        "calculation": "G=mass rate/pipe area; wg is local PR equilibrium vapor mass fraction, not molar beta. jg=G*wg/rhog and jl=G*(1-wg)/rhol. alpha=jg/[C0*(jg+jl)+vd], ug=jg/alpha, ul=jl/(1-alpha). HEM fixes C0=1, vd=0. Holdup density=alpha*rhog+(1-alpha)*rhol. Momentum flux M=G*(wg*ug+(1-wg)*ul), total specific static/kinetic energy E=h+0.5*(wg*ug^2+(1-wg)*ul^2).; Implicit trapezoidal balance: d(p+M)/ds=-fD*G^2/(2*D*holdup_density)-holdup_density*g*sin(theta). dE/ds=pi*D*U/mass_rate*(Te-T)-g*sin(theta). Slip profile is vertical upward only. Solve both for p and T using SciPy bounded least squares, then repeat at 10 and 20 steps and audit integrated heat, friction, elevation and flux changes.",
        "explanation": "Prescribed upward gas drift speed is varied within the supported input range. Six components C1-C6, normal C4-C6, classical PR and all kij=0. No water, isomers, sour gas, heavy fractions, reactions, solids or volume translation. Use the expanded-mixture tools for their explicitly supported alternatives, not by inserting a new species in these fixed feed slots."
      },
      {
        "label": "Substitute the values",
        "calculation": "v_d = 0.2 m/s; with the fixed controls above, the workflow evaluates Outlet absolute pressure = 4.89813048 MPa(a); Outlet equilibrium temperature = 319.951783 K",
        "explanation": "Retain intermediate precision. The displayed values are rounded only after evaluation."
      },
      {
        "label": "Read the result",
        "calculation": "Outlet absolute pressure (MPa(a)) = 4.89813048; Outlet equilibrium temperature (K) = 319.951783",
        "explanation": "Every flash trial must remain at 180-450 K and 0.1-10 MPa absolute, with consistent mole fractions summing to one. Near-critical, vanishing-phase or failed closure states are rejected. Single-phase states are not given an invented vapor quality. Independent engine agreement is not experimental validation. Instantaneous equilibrium and the documented steady balance only. No machinery efficiency, transient behavior, separator sizing, phase residence time, mechanical safety approval or claimed field calibration. A rejected or unbracketed root is not extrapolated into an unsupported range. Short uniform interval 0.1-500 m, interior 0.101-9.99 MPa(a), 181-449 K, phase speed <=100 m/s and acceleration determinant >=0.5. Vertical upward only, C0=1-1.5 and vd=0-3 m/s supplied by the user; no regime-dependent fit or countercurrent flow. A failed trial or refinement rejects the entire profile. Constant prescribed U, Darcy factor and surroundings; no transient formation/wall thermal history, changing area, fittings, reactions, water, heavy ends, metastable phase delay or two-way reservoir coupling. Slip calculations require vapor/liquid coexistence with mass quality strictly between 0.001 and 0.999 at every trial; constant C0/drift parameters cannot be extended through a disappearing phase. HEM alone permits single-phase continuation. Numerical closure does not establish a field-valid physical correlation."
      }
    ],
    "result": "Outlet absolute pressure (MPa(a)) = 4.89813048; Outlet equilibrium temperature (K) = 319.951783",
    "interpretation": "Every flash trial must remain at 180-450 K and 0.1-10 MPa absolute, with consistent mole fractions summing to one. Near-critical, vanishing-phase or failed closure states are rejected. Single-phase states are not given an invented vapor quality. Independent engine agreement is not experimental validation. Instantaneous equilibrium and the documented steady balance only. No machinery efficiency, transient behavior, separator sizing, phase residence time, mechanical safety approval or claimed field calibration. A rejected or unbracketed root is not extrapolated into an unsupported range. Short uniform interval 0.1-500 m, interior 0.101-9.99 MPa(a), 181-449 K, phase speed <=100 m/s and acceleration determinant >=0.5. Vertical upward only, C0=1-1.5 and vd=0-3 m/s supplied by the user; no regime-dependent fit or countercurrent flow. A failed trial or refinement rejects the entire profile. Constant prescribed U, Darcy factor and surroundings; no transient formation/wall thermal history, changing area, fittings, reactions, water, heavy ends, metastable phase delay or two-way reservoir coupling. Slip calculations require vapor/liquid coexistence with mass quality strictly between 0.001 and 0.999 at every trial; constant C0/drift parameters cannot be extended through a disappearing phase. HEM alone permits single-phase continuation. Numerical closure does not establish a field-valid physical correlation.",
    "control": "Prescribed upward gas drift speed (m/s)",
    "columns": [
      "Prescribed upward gas drift speed (m/s)",
      "Outlet absolute pressure (MPa(a))",
      "Outlet equilibrium temperature (K)"
    ],
    "rows": [
      [
        0,
        4.917123614880913,
        320.0224640333165
      ],
      [
        0.1,
        4.907038344189558,
        319.98496159402396
      ],
      [
        0.2,
        4.898130482021152,
        319.95178320658385
      ],
      [
        0.3,
        4.890204317134573,
        319.92221750387483
      ],
      [
        0.4,
        4.883105031320047,
        319.8957011848083
      ]
    ],
    "baseline": 2,
    "rowNotes": [
      "Prescribed upward gas drift speed (m/s) = 0. Outlet absolute pressure (MPa(a)): 4.91712361; Outlet equilibrium temperature (K): 320.022464.",
      "Prescribed upward gas drift speed (m/s) = 0.1. Outlet absolute pressure (MPa(a)): 4.90703834; Outlet equilibrium temperature (K): 319.984962.",
      "Prescribed upward gas drift speed (m/s) = 0.2. Outlet absolute pressure (MPa(a)): 4.89813048; Outlet equilibrium temperature (K): 319.951783.",
      "Prescribed upward gas drift speed (m/s) = 0.3. Outlet absolute pressure (MPa(a)): 4.89020432; Outlet equilibrium temperature (K): 319.922218.",
      "Prescribed upward gas drift speed (m/s) = 0.4. Outlet absolute pressure (MPa(a)): 4.88310503; Outlet equilibrium temperature (K): 319.895701."
    ],
    "provenance": "Original recorded synthetic cases solved with the site's hydrocarbon-slip-thermal-profile engine. The full inputs, outputs and diagnostic rows are in the downloadable JSON. These are discrete solved states; the lesson does not interpolate a new solve.",
    "questions": [
      {
        "question": "Reproduce the baseline Outlet absolute pressure (MPa(a)) without rounding intermediate values.",
        "answer": "v_d = 0.2 m/s; with the fixed controls above, the workflow evaluates Outlet absolute pressure = 4.89813048 MPa(a); Outlet equilibrium temperature = 319.951783 K. Outlet absolute pressure (MPa(a)) = 4.89813048. Every flash trial must remain at 180-450 K and 0.1-10 MPa absolute, with consistent mole fractions summing to one. Near-critical, vanishing-phase or failed closure states are rejected. Single-phase states are not given an invented vapor quality. Independent engine agreement is not experimental validation. Instantaneous equilibrium and the documented steady balance only. No machinery efficiency, transient behavior, separator sizing, phase residence time, mechanical safety approval or claimed field calibration. A rejected or unbracketed root is not extrapolated into an unsupported range. Short uniform interval 0.1-500 m, interior 0.101-9.99 MPa(a), 181-449 K, phase speed <=100 m/s and acceleration determinant >=0.5. Vertical upward only, C0=1-1.5 and vd=0-3 m/s supplied by the user; no regime-dependent fit or countercurrent flow. A failed trial or refinement rejects the entire profile. Constant prescribed U, Darcy factor and surroundings; no transient formation/wall thermal history, changing area, fittings, reactions, water, heavy ends, metastable phase delay or two-way reservoir coupling. Slip calculations require vapor/liquid coexistence with mass quality strictly between 0.001 and 0.999 at every trial; constant C0/drift parameters cannot be extended through a disappearing phase. HEM alone permits single-phase continuation. Numerical closure does not establish a field-valid physical correlation."
      },
      {
        "question": "Compare the first and last recorded scenarios. Which input changes?",
        "answer": "Prescribed upward gas drift speed (m/s) changes from 0 to 0.4. Other controls remain as stated in the premise. Outlet absolute pressure (MPa(a)) changes from 4.91712361 to 4.88310503."
      },
      {
        "question": "What would be needed to apply this example to a different physical system?",
        "answer": "Replace the synthetic controls with compatible documented inputs and check the relation's assumptions. Prescribed upward gas drift speed is varied within the supported input range. Six components C1-C6, normal C4-C6, classical PR and all kij=0. No water, isomers, sour gas, heavy fractions, reactions, solids or volume translation. Use the expanded-mixture tools for their explicitly supported alternatives, not by inserting a new species in these fixed feed slots. Every flash trial must remain at 180-450 K and 0.1-10 MPa absolute, with consistent mole fractions summing to one. Near-critical, vanishing-phase or failed closure states are rejected. Single-phase states are not given an invented vapor quality. Independent engine agreement is not experimental validation. Instantaneous equilibrium and the documented steady balance only. No machinery efficiency, transient behavior, separator sizing, phase residence time, mechanical safety approval or claimed field calibration. A rejected or unbracketed root is not extrapolated into an unsupported range. Short uniform interval 0.1-500 m, interior 0.101-9.99 MPa(a), 181-449 K, phase speed <=100 m/s and acceleration determinant >=0.5. Vertical upward only, C0=1-1.5 and vd=0-3 m/s supplied by the user; no regime-dependent fit or countercurrent flow. A failed trial or refinement rejects the entire profile. Constant prescribed U, Darcy factor and surroundings; no transient formation/wall thermal history, changing area, fittings, reactions, water, heavy ends, metastable phase delay or two-way reservoir coupling. Slip calculations require vapor/liquid coexistence with mass quality strictly between 0.001 and 0.999 at every trial; constant C0/drift parameters cannot be extended through a disappearing phase. HEM alone permits single-phase continuation. Numerical closure does not establish a field-valid physical correlation."
      }
    ]
  },
  "recorded": {
    "kind": "workflow",
    "workflow": "hydrocarbon-slip-thermal-profile",
    "parameter": "v_d",
    "runs": [
      {
        "inputs": {
          "p_in": 5,
          "T_in": 330,
          "D": 0.1,
          "m": 1,
          "L": 50,
          "U": 100,
          "Te": 300,
          "f_D": 0.02,
          "C_0": 1.2,
          "v_d": 0,
          "z1": 0.5,
          "z2": 0.15,
          "z3": 0.15,
          "z4": 0.1,
          "z5": 0.05,
          "z6": 0.05
        },
        "result": {
          "outputs": [
            {
              "label": "Outlet absolute pressure",
              "value": 4.917123614880913,
              "unit": "MPa(a)"
            },
            {
              "label": "Outlet equilibrium temperature",
              "value": 320.0224640333165,
              "unit": "K"
            },
            {
              "label": "Net heat into fluid",
              "value": -38.8248925831455,
              "unit": "kJ/kg"
            },
            {
              "label": "Maximum pressure refinement difference",
              "value": 5.962223266209321e-7,
              "unit": "MPa difference"
            },
            {
              "label": "Maximum temperature refinement difference",
              "value": 0.0007066332809699816,
              "unit": "K difference"
            },
            {
              "label": "Integrated energy residual",
              "value": 7.203198038041592e-10,
              "unit": "J/kg"
            },
            {
              "label": "Integrated momentum residual",
              "value": 1.5279510989785194e-9,
              "unit": "Pa"
            }
          ],
          "columns": [
            "Distance (m)",
            "Pressure (MPa(a))",
            "Temperature (K)",
            "Momentum flux (Pa)",
            "Static enthalpy plus kinetic energy (J/kg)",
            "Holdup density (kg/m3)",
            "Friction gradient (Pa/m)",
            "Heat input gradient (J/(kg.m))",
            "Gas void fraction (-1 = unassigned single phase)",
            "Maximum phase speed (m/s)",
            "Static enthalpy (J/kg)"
          ],
          "rows": [
            [
              0,
              5,
              330,
              137.70844657779912,
              -128843.7949913199,
              164.39524138157864,
              9.861227883808208,
              -942.4777960769379,
              0.7610095534444118,
              1.564352304086811,
              -128844.52668261106
            ],
            [
              2.5,
              4.995940862053926,
              329.41318695477275,
              136.8250370654661,
              -131201.46201211296,
              164.80167586300453,
              9.836908088392354,
              -924.0425205577723,
              0.7601234628701742,
              1.5581551743911846,
              -131202.1842542004
            ],
            [
              5,
              4.991871871650936,
              328.83643976416266,
              135.96913299883508,
              -133513.43612929512,
              165.2016428487954,
              9.813092111687952,
              -905.92347318778,
              0.7592538098423904,
              1.5521038191310035,
              -133514.1492475932
            ],
            [
              7.5,
              4.987793187151035,
              328.2696318393117,
              135.1397587508759,
              -135780.5029421057,
              165.5951362075048,
              9.789773875036882,
              -888.1166770606984,
              0.7584003797783252,
              1.546195626301367,
              -135781.20724933225
            ],
            [
              10,
              4.983704966436492,
              327.7126022458767,
              134.33604332604142,
              -138003.43675877544,
              165.98219399489128,
              9.766944870769096,
              -870.6170762750231,
              0.7575631180835558,
              1.5404283684519753,
              -138004.1325562598
            ],
            [
              12.5,
              4.979607366941201,
              327.1652237893092,
              133.5570986221995,
              -140183.00057273955,
              166.36281762208318,
              9.744598952153192,
              -853.4206748961649,
              0.7567418264146997,
              1.5347995610863643,
              -140183.68815028248
            ],
            [
              15,
              4.975500545930676,
              326.62736320566046,
              132.8020816805687,
              -142319.94714925168,
              166.7370170182801,
              9.72272964496943,
              -836.5232863137006,
              0.7559363267913294,
              1.5293067539398053,
              -142320.62678571587
            ],
            [
              17.5,
              4.971384660310201,
              326.09888489041896,
              132.07019359398404,
              -144415.01869512637,
              167.1048093932705,
              9.701330226002995,
              -819.9206503862586,
              0.7551464621753183,
              1.5239476055590202,
              -144415.69065902208
            ],
            [
              20,
              4.967259866491932,
              325.5796525283788,
              131.36067282799343,
              -146468.9467389156,
              167.46621609376055,
              9.680393909239372,
              -803.6084846453442,
              0.7543720851654113,
              1.5187198397992139,
              -146469.61128890121
            ],
            [
              22.5,
              4.963126320422767,
              325.06953574683854,
              130.67277777552698,
              -148482.45233636186,
              167.8212534386931,
              9.659914373536864,
              -787.5826933117467,
              0.7536130169997044,
              1.5136211113028275,
              -148483.10972153003
            ],
            [
              25,
              4.958984177440519,
              324.5683961638116,
              130.00581844393008,
              -150456.24598923555,
              168.16995194140512,
              9.639884649799104,
              -771.8389289871418,
              0.7528691344956806,
              1.5086492923137143,
              -150456.89644978446
            ],
            [
              27.5,
              4.954833592294633,
              324.0761066977881,
              129.35910945784093,
              -152391.0277745797,
              168.51233004228047,
              9.620298632572784,
              -756.3731992881503,
              0.7521402504210661,
              1.5038020786383017,
              -152391.67154190966
            ],
            [
              30,
              4.950674719147983,
              323.592536074877,
              128.73200512619323,
              -154287.48762384453,
              168.84841519588267,
              9.601149862121629,
              -741.1813801238573,
              0.7514262095712528,
              1.4990773062306904,
              -154288.12492108071
            ],
            [
              32.5,
              4.946507711468358,
              323.117554581129,
              128.12388452701822,
              -156146.30521951217,
              169.17823593747315,
              9.58243197946906,
              -726.2593964103597,
              0.7507268530909235,
              1.4944728321836889,
              -156146.93626184357
            ],
            [
              35,
              4.942332721997607,
              322.65103380021753,
              127.53415092240616,
              -157968.15010731216,
              169.50182226843458,
              9.564138701176077,
              -711.603213829775,
              0.7500420202009145,
              1.4899865402324595,
              -157968.77510232182
            ],
            [
              37.5,
              4.938149902571762,
              322.1928380662692,
              126.96225025791543,
              -159753.68146249081,
              169.81921593187076,
              9.546263238712537,
              -697.2085703129919,
              0.7493716032088671,
              1.4856165232211422,
              -159754.30061070723
            ],
            [
              40,
              4.933959404354501,
              321.7428552594043,
              126.40760077455715,
              -161503.54872976983,
              170.13043351876667,
              9.528800372442362,
              -683.0719435101068,
              0.7487153537983725,
              1.4813604479557811,
              -161504.16222436872
            ],
            [
              42.5,
              4.929761377586885,
              321.30094497349165,
              125.86970695894105,
              -163218.3914371978,
              170.43552792379205,
              9.511742991767976,
              -669.188922432418,
              0.7480732060457133,
              1.4772166054528904,
              -163218.9994650741
            ],
            [
              45,
              4.925555971570802,
              320.86699106268134,
              125.34804317773798,
              -164898.83903805143,
              170.73452661476625,
              9.495085560141165,
              -655.5558582504356,
              0.747444950870542,
              1.4731828555764663,
              -164899.44177948954
            ],
            [
              47.5,
              4.921343334856505,
              320.44087590849983,
              124.84210993821357,
              -166545.51180570314,
              171.02746245293915,
              9.478822377566912,
              -642.1690558708367,
              0.7468303967254754,
              1.4692571540389576,
              -166546.10943472455
            ],
            [
              50,
              4.917123614880913,
              320.0224640333165,
              124.35146531153161,
              -168159.02007446467,
              171.3143899752795,
              9.46294668247853,
              -629.0242591383301,
              0.7462294662922747,
              1.4654378428802006,
              -168159.61275954472
            ]
          ],
          "chart": {
            "xLabel": "Distance along flow (m)",
            "yLabel": "Pressure (MPa(a))",
            "includeZero": false,
            "series": [
              {
                "name": "Pressure",
                "x": [
                  0,
                  2.5,
                  5,
                  7.5,
                  10,
                  12.5,
                  15,
                  17.5,
                  20,
                  22.5,
                  25,
                  27.5,
                  30,
                  32.5,
                  35,
                  37.5,
                  40,
                  42.5,
                  45,
                  47.5,
                  50
                ],
                "y": [
                  5,
                  4.995940862053926,
                  4.991871871650936,
                  4.987793187151035,
                  4.983704966436492,
                  4.979607366941201,
                  4.975500545930676,
                  4.971384660310201,
                  4.967259866491932,
                  4.963126320422767,
                  4.958984177440519,
                  4.954833592294633,
                  4.950674719147983,
                  4.946507711468358,
                  4.942332721997607,
                  4.938149902571762,
                  4.933959404354501,
                  4.929761377586885,
                  4.925555971570802,
                  4.921343334856505,
                  4.917123614880913
                ]
              }
            ]
          },
          "warnings": [
            "C1-C6 PR, zero kij, instantaneous local phase equilibrium. Constant inside-area U, surroundings and prescribed Darcy factor; no automatic boiling/friction/formation-history closure. Slip option uses supplied constant C0 and drift speed only for vertical upward co-current flow; it is not a calibrated regime map. No transient slugging, capillarity or nonequilibrium mass transfer. Both pressure and total energy include changing phase velocities; friction is not added as an external heat source. A 10/20-step refinement and integrated balance audit are numerical checks, not field validation."
          ]
        }
      },
      {
        "inputs": {
          "p_in": 5,
          "T_in": 330,
          "D": 0.1,
          "m": 1,
          "L": 50,
          "U": 100,
          "Te": 300,
          "f_D": 0.02,
          "C_0": 1.2,
          "v_d": 0.1,
          "z1": 0.5,
          "z2": 0.15,
          "z3": 0.15,
          "z4": 0.1,
          "z5": 0.05,
          "z6": 0.05
        },
        "result": {
          "outputs": [
            {
              "label": "Outlet absolute pressure",
              "value": 4.907038344189558,
              "unit": "MPa(a)"
            },
            {
              "label": "Outlet equilibrium temperature",
              "value": 319.98496159402396,
              "unit": "K"
            },
            {
              "label": "Net heat into fluid",
              "value": -38.7937145277007,
              "unit": "kJ/kg"
            },
            {
              "label": "Maximum pressure refinement difference",
              "value": 7.323178889961923e-7,
              "unit": "MPa difference"
            },
            {
              "label": "Maximum temperature refinement difference",
              "value": 0.0007085386965286489,
              "unit": "K difference"
            },
            {
              "label": "Integrated energy residual",
              "value": 5.093170329928398e-10,
              "unit": "J/kg"
            },
            {
              "label": "Integrated momentum residual",
              "value": 8.440110832452774e-10,
              "unit": "Pa"
            }
          ],
          "columns": [
            "Distance (m)",
            "Pressure (MPa(a))",
            "Temperature (K)",
            "Momentum flux (Pa)",
            "Static enthalpy plus kinetic energy (J/kg)",
            "Holdup density (kg/m3)",
            "Friction gradient (Pa/m)",
            "Heat input gradient (J/(kg.m))",
            "Gas void fraction (-1 = unassigned single phase)",
            "Maximum phase speed (m/s)",
            "Static enthalpy (J/kg)"
          ],
          "rows": [
            [
              0,
              5,
              330,
              140.5222868706165,
              -128843.71964760766,
              184.4409457428464,
              8.789474223026644,
              -942.4777960769379,
              0.7152854869967158,
              1.6643523040868111,
              -128844.52668261106
            ],
            [
              2.5,
              4.995451295373672,
              329.4109828327829,
              139.5458847309326,
              -131201.3001127333,
              184.91950055491276,
              8.766727864895996,
              -923.973276023263,
              0.7142976597300237,
              1.6583316450859658,
              -131202.09661294977
            ],
            [
              5,
              4.990890981452861,
              328.83206941091885,
              138.59965469130572,
              -133513.01605087615,
              185.39012811405007,
              8.744472830182719,
              -905.7861744913365,
              0.7133288924514798,
              1.6524570360341257,
              -133513.8023744465
            ],
            [
              7.5,
              4.9863192525482365,
              328.26313495461005,
              137.68254587289456,
              -135779.65610825023,
              185.85281773223647,
              8.722703040279034,
              -887.9125714081983,
              0.7123789399531468,
              1.646725820291017,
              -135780.43259961266
            ],
            [
              10,
              4.981736302138597,
              327.7040126391275,
              136.7936547117933,
              -138001.99747978608,
              186.30763753887243,
              8.7014089153439,
              -870.3472258204168,
              0.7114477723058151,
              1.6411359259048646,
              -138002.7644714856
            ],
            [
              12.5,
              4.977142322974248,
              327.15457770072027,
              135.93201919961064,
              -140180.80590976047,
              186.75458519539174,
              8.68058439679695,
              -853.0862181591601,
              0.7105351555704402,
              1.6356848103122419,
              -140181.56372183934
            ],
            [
              15,
              4.972537507610204,
              326.6146966416245,
              135.09673467518502,
              -142316.8370005452,
              187.1936755922713,
              8.660222804794035,
              -836.1253544684848,
              0.709640892048695,
              1.6303700264392038,
              -142317.58594128236
            ],
            [
              17.5,
              4.967922048073006,
              326.0842333976677,
              134.2869446176139,
              -144410.83576883838,
              187.6249344174039,
              8.640317148204312,
              -819.460360166343,
              0.7087648080283846,
              1.625189249880589,
              -144411.57613539163
            ],
            [
              20,
              4.963296135651369,
              325.5630504428986,
              133.5018338635811,
              -146463.53648748106,
              188.04839423756587,
              8.620860310188995,
              -803.0869147475555,
              0.707906743655747,
              1.6201402360611534,
              -146464.26856644126
            ],
            [
              22.5,
              4.958659960966435,
              325.0510175224179,
              132.7406016789604,
              -148475.66291358267,
              188.46407715101594,
              8.601845841307934,
              -787.0009261337729,
              0.7070664966806586,
              1.6152206388732846,
              -148476.3869812015
            ],
            [
              25,
              4.954013713775118,
              324.54799503193505,
              132.00250869527662,
              -150447.92820690846,
              188.8720279576493,
              8.583266436049025,
              -771.1980085268588,
              0.7062439311989831,
              1.610428363689362,
              -150448.6445298894
            ],
            [
              27.5,
              4.949357583001289,
              324.05385572406544,
              131.28681284800368,
              -152381.035047982,
              189.2722714127758,
              8.565115883995135,
              -755.6741643323279,
              0.7054388366063596,
              1.6057611102844895,
              -152381.74388349795
            ],
            [
              30,
              4.944691756771578,
              323.56846784057194,
              130.59281657740937,
              -154275.6759462016,
              189.66484547771788,
              8.547387546670363,
              -740.4252542430811,
              0.7046510374504621,
              1.6012167289352468,
              -154276.37754247888
            ],
            [
              32.5,
              4.940016422253916,
              323.09170094194815,
              129.9198485802728,
              -156132.53311448166,
              190.04978960043712,
              8.530074890825745,
              -725.4471803811681,
              0.7038803552995433,
              1.5967930948155629,
              -156133.22771116125
            ],
            [
              35,
              4.935331765477034,
              322.6234199452571,
              129.26727893884356,
              -157952.27833869666,
              190.42715525989885,
              8.513171013161651,
              -710.7356989909658,
              0.7031266475140805,
              1.5924882306413448,
              -157952.9661673735
            ],
            [
              37.5,
              4.930637971566921,
              322.1635072641204,
              128.63445888404124,
              -159735.57348241966,
              190.7969674281841,
              8.496670361847341,
              -696.2871159874475,
              0.7023896678160071,
              1.5882998718759282,
              -159736.25476646394
            ],
            [
              40,
              4.925935224661294,
              321.71183200436013,
              128.02080076601578,
              -161483.07065141486,
              191.15927800696085,
              8.480566338079456,
              -682.0973192087355,
              0.701669257476087,
              1.584226056540017,
              -161483.74560674117
            ],
            [
              42.5,
              4.921223707451225,
              321.268258195736,
              127.42575693802344,
              -163195.4114717054,
              191.51415122938425,
              8.464851959350515,
              -668.1620370237512,
              0.7009653004626973,
              1.5802649974055685,
              -163196.08030728833
            ],
            [
              45,
              4.916503601484042,
              320.8326704660307,
              126.84874923871882,
              -164873.22769911928,
              191.86161992146688,
              8.449521790449657,
              -654.4776449073917,
              0.7002775542613783,
              1.5764145388701631,
              -164873.89061667022
            ],
            [
              47.5,
              4.911775087361879,
              320.40495048454983,
              126.2892320414231,
              -166517.14191199283,
              192.20172684813275,
              8.434570099145567,
              -641.0404253912524,
              0.6996058039853128,
              1.57267265245456,
              -166517.79910638617
            ],
            [
              50,
              4.907038344189558,
              319.98496159402396,
              125.74672834005146,
              -168127.76667530785,
              192.53454709222567,
              8.41998988109321,
              -627.8460852605982,
              0.6989499552530672,
              1.5690377093240786,
              -168128.418335425
            ]
          ],
          "chart": {
            "xLabel": "Distance along flow (m)",
            "yLabel": "Pressure (MPa(a))",
            "includeZero": false,
            "series": [
              {
                "name": "Pressure",
                "x": [
                  0,
                  2.5,
                  5,
                  7.5,
                  10,
                  12.5,
                  15,
                  17.5,
                  20,
                  22.5,
                  25,
                  27.5,
                  30,
                  32.5,
                  35,
                  37.5,
                  40,
                  42.5,
                  45,
                  47.5,
                  50
                ],
                "y": [
                  5,
                  4.995451295373672,
                  4.990890981452861,
                  4.9863192525482365,
                  4.981736302138597,
                  4.977142322974248,
                  4.972537507610204,
                  4.967922048073006,
                  4.963296135651369,
                  4.958659960966435,
                  4.954013713775118,
                  4.949357583001289,
                  4.944691756771578,
                  4.940016422253916,
                  4.935331765477034,
                  4.930637971566921,
                  4.925935224661294,
                  4.921223707451225,
                  4.916503601484042,
                  4.911775087361879,
                  4.907038344189558
                ]
              }
            ]
          },
          "warnings": [
            "C1-C6 PR, zero kij, instantaneous local phase equilibrium. Constant inside-area U, surroundings and prescribed Darcy factor; no automatic boiling/friction/formation-history closure. Slip option uses supplied constant C0 and drift speed only for vertical upward co-current flow; it is not a calibrated regime map. No transient slugging, capillarity or nonequilibrium mass transfer. Both pressure and total energy include changing phase velocities; friction is not added as an external heat source. A 10/20-step refinement and integrated balance audit are numerical checks, not field validation."
          ]
        }
      },
      {
        "inputs": {
          "p_in": 5,
          "T_in": 330,
          "D": 0.1,
          "m": 1,
          "L": 50,
          "U": 100,
          "Te": 300,
          "f_D": 0.02,
          "C_0": 1.2,
          "v_d": 0.2,
          "z1": 0.5,
          "z2": 0.15,
          "z3": 0.15,
          "z4": 0.1,
          "z5": 0.05,
          "z6": 0.05
        },
        "result": {
          "outputs": [
            {
              "label": "Outlet absolute pressure",
              "value": 4.898130482021152,
              "unit": "MPa(a)"
            },
            {
              "label": "Outlet equilibrium temperature",
              "value": 319.95178320658385,
              "unit": "K"
            },
            {
              "label": "Net heat into fluid",
              "value": -38.76610171803861,
              "unit": "kJ/kg"
            },
            {
              "label": "Maximum pressure refinement difference",
              "value": 8.468480006129653e-7,
              "unit": "MPa difference"
            },
            {
              "label": "Maximum temperature refinement difference",
              "value": 0.000710246013682081,
              "unit": "K difference"
            },
            {
              "label": "Integrated energy residual",
              "value": 5.456968210637569e-10,
              "unit": "J/kg"
            },
            {
              "label": "Integrated momentum residual",
              "value": 2.2264430299401283e-9,
              "unit": "Pa"
            }
          ],
          "columns": [
            "Distance (m)",
            "Pressure (MPa(a))",
            "Temperature (K)",
            "Momentum flux (Pa)",
            "Static enthalpy plus kinetic energy (J/kg)",
            "Holdup density (kg/m3)",
            "Friction gradient (Pa/m)",
            "Heat input gradient (J/(kg.m))",
            "Gas void fraction (-1 = unassigned single phase)",
            "Maximum phase speed (m/s)",
            "Static enthalpy (J/kg)"
          ],
          "rows": [
            [
              0,
              5,
              330,
              144.82912259914778,
              -128843.6322478445,
              202.21434832914144,
              8.016933277349336,
              -942.4777960769379,
              0.6747445199041526,
              1.7643523040868108,
              -128844.52668261106
            ],
            [
              2.5,
              4.995016885090458,
              329.4090268794867,
              143.7779487074174,
              -131201.13590286326,
              202.7475995036576,
              7.995847754775309,
              -923.9118279382019,
              0.6736908240434875,
              1.7584882641929123,
              -131202.01879104745
            ],
            [
              5,
              4.9900208287994365,
              328.82819181113314,
              142.7591376322357,
              -133512.62275791256,
              203.27168347410174,
              7.975232509371867,
              -905.6643561013329,
              0.6726583259505348,
              1.7527704978107546,
              -133513.49448891263
            ],
            [
              7.5,
              4.985012055786313,
              328.2573664341165,
              141.77159219420295,
              -135778.88401302972,
              203.78660179865997,
              7.95508106994728,
              -887.7313479921513,
              0.671646785313079,
              1.74719644224283,
              -135779.74496176819
            ],
            [
              10,
              4.979990789694673,
              327.6963892092232,
              140.81434566666715,
              -138000.6994839035,
              204.2924267230427,
              7.935384410872788,
              -870.1077287065917,
              0.6706561115349147,
              1.7417638940189994,
              -138001.55001242473
            ],
            [
              12.5,
              4.974957253404043,
              327.1451372232471,
              139.88637303801298,
              -140178.83781580263,
              204.7891546035603,
              7.916136679286924,
              -852.7896368123994,
              0.6696860367065929,
              1.7364702785181585,
              -140179.67827269676
            ],
            [
              15,
              4.969911669114139,
              326.6034663617105,
              138.986755207774,
              -142314.0571678432,
              205.27683729442066,
              7.897330062389198,
              -835.772544819729,
              0.6687364146853605,
              1.7313134025603354,
              -142314.88788958327
            ],
            [
              17.5,
              4.964854258154269,
              326.07124524165397,
              138.11456841278346,
              -144407.1048803816,
              205.75549577847522,
              7.878958139824312,
              -819.0523252111796,
              0.6678070154211494,
              1.7262908327168498,
              -144407.92619132943
            ],
            [
              20,
              4.959785240995631,
              325.5483356206812,
              137.26895203691726,
              -146458.7177056126,
              206.2251753094473,
              7.861013747932737,
              -802.6246349737849,
              0.6668976613394048,
              1.7214003472699253,
              -146459.52991885043
            ],
            [
              22.5,
              4.954704837193097,
              325.0346069507711,
              136.44905649233664,
              -148469.6218403553,
              206.6859058670437,
              7.843490495768231,
              -786.4853728205044,
              0.6660081273806265,
              1.716639607650754,
              -148470.42525788036
            ],
            [
              25,
              4.949613265141395,
              324.52991877326525,
              135.65410119866573,
              -150440.53283902147,
              207.13774788649542,
              7.826381018517853,
              -770.6301261124446,
              0.6651382608441108,
              1.7120065462264304,
              -150441.32775263963
            ],
            [
              27.5,
              4.944510742123582,
              324.03414359681864,
              134.88329676547963,
              -152372.15573365052,
              207.5807337130538,
              7.809679199411454,
              -755.054889590876,
              0.6642878271368273,
              1.707498868521892,
              -152372.9424249265
            ],
            [
              30,
              4.939397484382481,
              323.54714911360463,
              134.13590287173142,
              -154265.1853539925,
              208.0149131553377,
              7.793378434683666,
              -739.7555066828372,
              0.6634566299798894,
              1.703114441020599,
              -154265.96409489756
            ],
            [
              32.5,
              4.934273706913214,
              323.0688043875061,
              133.41120615942663,
              -156120.30619223203,
              208.44033732306877,
              7.7774722450422145,
              -724.7278639088908,
              0.6626444693394924,
              1.6988511533042716,
              -156121.07724552092
            ],
            [
              35,
              4.929139623234511,
              322.59897353450765,
              132.70853898394256,
              -157938.19226255166,
              208.85707318177265,
              7.761953730274164,
              -709.9676923467939,
              0.6618511836056684,
              1.6947070503125414,
              -157938.9558823609
            ],
            [
              37.5,
              4.9239954457192345,
              322.13753911211904,
              132.02720627396553,
              -159719.5076310251,
              209.26515073046366,
              7.746817530862811,
              -695.471302431899,
              0.6610764988192391,
              1.690679865654692,
              -159720.26406259727
            ],
            [
              40,
              4.918841385290164,
              321.6843623197415,
              131.36660538729413,
              -161464.90630108363,
              209.66465199739005,
              7.732056514216734,
              -681.234333614793,
              0.6603202825543619,
              1.6867678007902889,
              -161465.6557819157
            ],
            [
              42.5,
              4.913677651481864,
              321.23932766544345,
              130.72609143852893,
              -163175.03229011397,
              210.05561291198808,
              7.7176654115719865,
              -667.2531576094361,
              0.6595822626435079,
              1.6829686679239966,
              -163175.7750495036
            ],
            [
              45,
              4.908504452264696,
              320.80229832595455,
              130.10510795150975,
              -164850.51970710847,
              210.43811918215366,
              7.7036372715066825,
              -653.5234759860207,
              0.6588623065975768,
              1.6792807346022658,
              -164851.25596724584
            ],
            [
              47.5,
              4.903321994172461,
              320.37316286204884,
              129.50304930758048,
              -166491.99291181332,
              210.8122075186397,
              7.689967091370009,
              -640.0417877780105,
              0.658160129451987,
              1.675701840768368,
              -166492.72288724358
            ],
            [
              50,
              4.898130482021152,
              319.95178320658385,
              128.91941155936982,
              -168100.06646588366,
              211.17797427867026,
              7.676647831360247,
              -626.8037554782004,
              0.6574756216969947,
              1.672230392109163,
              -168100.79036474976
            ]
          ],
          "chart": {
            "xLabel": "Distance along flow (m)",
            "yLabel": "Pressure (MPa(a))",
            "includeZero": false,
            "series": [
              {
                "name": "Pressure",
                "x": [
                  0,
                  2.5,
                  5,
                  7.5,
                  10,
                  12.5,
                  15,
                  17.5,
                  20,
                  22.5,
                  25,
                  27.5,
                  30,
                  32.5,
                  35,
                  37.5,
                  40,
                  42.5,
                  45,
                  47.5,
                  50
                ],
                "y": [
                  5,
                  4.995016885090458,
                  4.9900208287994365,
                  4.985012055786313,
                  4.979990789694673,
                  4.974957253404043,
                  4.969911669114139,
                  4.964854258154269,
                  4.959785240995631,
                  4.954704837193097,
                  4.949613265141395,
                  4.944510742123582,
                  4.939397484382481,
                  4.934273706913214,
                  4.929139623234511,
                  4.9239954457192345,
                  4.918841385290164,
                  4.913677651481864,
                  4.908504452264696,
                  4.903321994172461,
                  4.898130482021152
                ]
              }
            ]
          },
          "warnings": [
            "C1-C6 PR, zero kij, instantaneous local phase equilibrium. Constant inside-area U, surroundings and prescribed Darcy factor; no automatic boiling/friction/formation-history closure. Slip option uses supplied constant C0 and drift speed only for vertical upward co-current flow; it is not a calibrated regime map. No transient slugging, capillarity or nonequilibrium mass transfer. Both pressure and total energy include changing phase velocities; friction is not added as an external heat source. A 10/20-step refinement and integrated balance audit are numerical checks, not field validation."
          ]
        }
      },
      {
        "inputs": {
          "p_in": 5,
          "T_in": 330,
          "D": 0.1,
          "m": 1,
          "L": 50,
          "U": 100,
          "Te": 300,
          "f_D": 0.02,
          "C_0": 1.2,
          "v_d": 0.3,
          "z1": 0.5,
          "z2": 0.15,
          "z3": 0.15,
          "z4": 0.1,
          "z5": 0.05,
          "z6": 0.05
        },
        "result": {
          "outputs": [
            {
              "label": "Outlet absolute pressure",
              "value": 4.890204317134573,
              "unit": "MPa(a)"
            },
            {
              "label": "Outlet equilibrium temperature",
              "value": 319.92221750387483,
              "unit": "K"
            },
            {
              "label": "Net heat into fluid",
              "value": -38.74147737718019,
              "unit": "kJ/kg"
            },
            {
              "label": "Maximum pressure refinement difference",
              "value": 9.427334983769242e-7,
              "unit": "MPa difference"
            },
            {
              "label": "Maximum temperature refinement difference",
              "value": 0.0007119161626292225,
              "unit": "K difference"
            },
            {
              "label": "Integrated energy residual",
              "value": 1.3096723705530167e-9,
              "unit": "J/kg"
            },
            {
              "label": "Integrated momentum residual",
              "value": 8.003553375601768e-10,
              "unit": "Pa"
            }
          ],
          "columns": [
            "Distance (m)",
            "Pressure (MPa(a))",
            "Temperature (K)",
            "Momentum flux (Pa)",
            "Static enthalpy plus kinetic energy (J/kg)",
            "Holdup density (kg/m3)",
            "Friction gradient (Pa/m)",
            "Heat input gradient (J/(kg.m))",
            "Gas void fraction (-1 = unassigned single phase)",
            "Maximum phase speed (m/s)",
            "Static enthalpy (J/kg)"
          ],
          "rows": [
            [
              0,
              5,
              330,
              149.96428285639846,
              -128843.53619926616,
              218.08109383701478,
              7.433651903309784,
              -942.4777960769379,
              0.6385526199920459,
              1.864352304086811,
              -128844.52668261106
            ],
            [
              2.5,
              4.994628893014531,
              329.4072798157393,
              148.84784880746014,
              -131200.9712472521,
              218.65632290070374,
              7.414095859526533,
              -923.8569423118595,
              0.6374583231174388,
              1.8586281722551574,
              -131201.94918631506
            ],
            [
              5,
              4.989243822578108,
              328.8247288120342,
              147.76570471538238,
              -133512.2535036116,
              219.22133987353828,
              7.394986907810101,
              -905.5555627760472,
              0.6363869377107951,
              1.8530505014918452,
              -133513.21931896234
            ],
            [
              7.5,
              4.983845039080249,
              328.25221990228926,
              146.71669530408374,
              -135778.17666323972,
              219.77614652925163,
              7.376318876633115,
              -887.5696649263526,
              0.6353381921389992,
              1.84761670173734,
              -135779.13075996452
            ],
            [
              10,
              4.978432791434744,
              327.689586830401,
              145.69983247674276,
              -137999.5229014891,
              220.32084943865925,
              7.358082280491365,
              -869.8940256732454,
              0.634312006534248,
              1.842324691109641,
              -138000.46567125645
            ],
            [
              12.5,
              4.9730073275153295,
              327.13670966332944,
              144.7140264899064,
              -140177.0631550916,
              220.85543667538232,
              7.34027182070318,
              -852.5248772091492,
              0.6333080675748972,
              1.8371718203248564,
              -140177.9949750514
            ],
            [
              15,
              4.967568894326298,
              326.5934422183996,
              143.7583238921161,
              -142311.55791044037,
              221.3799813247854,
              7.322879551150742,
              -835.4576270698889,
              0.6323262233899614,
              1.8321559604548803,
              -142312.4791449587
            ],
            [
              17.5,
              4.962117737700841,
              326.05965354756756,
              142.8317517768351,
              -144403.75677102958,
              221.89450886311667,
              7.305899305860967,
              -818.6881614013345,
              0.6313662156219614,
              1.8272746641647628,
              -144404.6677715143
            ],
            [
              20,
              4.956654102377454,
              325.53520460606353,
              141.9334099712543,
              -146454.39873776032,
              222.3990785351363,
              7.289323988908904,
              -802.2121119832143,
              0.6304278496966151,
              1.8225257355773403,
              -146455.29984362898
            ],
            [
              22.5,
              4.951178231913017,
              325.01996466450225,
              141.06240505309987,
              -148464.2122175279,
              222.89372829548395,
              7.273147390348758,
              -786.0253718307649,
              0.6295108774421815,
              1.8179068414424744,
              -148465.10375635646
            ],
            [
              25,
              4.9456903683899,
              324.513792229688,
              140.21792124698683,
              -150433.9149270714,
              223.37853552104536,
              7.257362192369958,
              -770.1234958041445,
              0.6286151309338941,
              1.8134159458088854,
              -150434.79721561066
            ],
            [
              27.5,
              4.940190752493361,
              324.0165598322097,
              139.39912621216035,
              -152364.21402099382,
              223.85353950638543,
              7.241962498570013,
              -754.5024793336964,
              0.6277403507892911,
              1.8090507545316608,
              -152365.0873650278
            ],
            [
              30,
              4.934679623625774,
              323.5281345431213,
              138.60524238379256,
              -154255.80642807725,
              224.3188024039992,
              7.226941838596863,
              -739.158146333422,
              0.626886321389665,
              1.8048091523162593,
              -154256.67112315365
            ],
            [
              32.5,
              4.929157219649817,
              323.04838504138985,
              137.83551912353656,
              -156109.37870003303,
              224.77438677238058,
              7.212293898588466,
              -724.0863712313923,
              0.626052821602502,
              1.8006890413682897,
              -156110.23503184837
            ],
            [
              35,
              4.923623776613737,
              322.5771746077195,
              137.0892562227527,
              -157925.60686265278,
              225.22037529219685,
              7.198011885799266,
              -709.2828588642556,
              0.6252396722512115,
              1.7966884901861362,
              -157926.4551077192
            ],
            [
              37.5,
              4.918079529177586,
              322.11438588500823,
              136.365717536654,
              -159705.15696417083,
              225.65680267174278,
              7.18409070359662,
              -694.7439223499168,
              0.6244465741424796,
              1.7928052317142884,
              -159705.9973894377
            ],
            [
              40,
              4.912524710258185,
              321.65987919395036,
              135.66427157416052,
              -161448.68495902536,
              226.08376911058113,
              7.170523318215204,
              -680.4651735335686,
              0.6236733777940022,
              1.7890374923108041,
              -161449.51782319281
            ],
            [
              42.5,
              4.906959551099786,
              321.21353892702444,
              134.98423516604126,
              -163156.83677656442,
              226.50131629739138,
              7.157304711416704,
              -666.4429804978109,
              0.6229197874863183,
              1.7853830884080093,
              -163157.66232951405
            ],
            [
              45,
              4.9013842810818415,
              320.7752274915792,
              134.3250244171931,
              -164830.24840298947,
              226.90954777869524,
              7.144428051385922,
              -652.6730206420189,
              0.6221856528965679,
              1.7818403094877038,
              -164831.0668870232
            ],
            [
              47.5,
              4.895799127885296,
              320.3448336169308,
              133.68599570611798,
              -166469.54605165974,
              227.30850461731617,
              7.131888624258307,
              -639.1517982945654,
              0.6214706636743309,
              1.7784069935278237,
              -166470.35770083146
            ],
            [
              50,
              4.890204317134573,
              319.92221750387483,
              133.06662376498068,
              -168075.34607644504,
              227.6983050556351,
              7.1196794279224,
              -625.8749215339117,
              0.6207746991316303,
              1.7750815877716388,
              -168076.15111802216
            ]
          ],
          "chart": {
            "xLabel": "Distance along flow (m)",
            "yLabel": "Pressure (MPa(a))",
            "includeZero": false,
            "series": [
              {
                "name": "Pressure",
                "x": [
                  0,
                  2.5,
                  5,
                  7.5,
                  10,
                  12.5,
                  15,
                  17.5,
                  20,
                  22.5,
                  25,
                  27.5,
                  30,
                  32.5,
                  35,
                  37.5,
                  40,
                  42.5,
                  45,
                  47.5,
                  50
                ],
                "y": [
                  5,
                  4.994628893014531,
                  4.989243822578108,
                  4.983845039080249,
                  4.978432791434744,
                  4.9730073275153295,
                  4.967568894326298,
                  4.962117737700841,
                  4.956654102377454,
                  4.951178231913017,
                  4.9456903683899,
                  4.940190752493361,
                  4.934679623625774,
                  4.929157219649817,
                  4.923623776613737,
                  4.918079529177586,
                  4.912524710258185,
                  4.906959551099786,
                  4.9013842810818415,
                  4.895799127885296,
                  4.890204317134573
                ]
              }
            ]
          },
          "warnings": [
            "C1-C6 PR, zero kij, instantaneous local phase equilibrium. Constant inside-area U, surroundings and prescribed Darcy factor; no automatic boiling/friction/formation-history closure. Slip option uses supplied constant C0 and drift speed only for vertical upward co-current flow; it is not a calibrated regime map. No transient slugging, capillarity or nonequilibrium mass transfer. Both pressure and total energy include changing phase velocities; friction is not added as an external heat source. A 10/20-step refinement and integrated balance audit are numerical checks, not field validation."
          ]
        }
      },
      {
        "inputs": {
          "p_in": 5,
          "T_in": 330,
          "D": 0.1,
          "m": 1,
          "L": 50,
          "U": 100,
          "Te": 300,
          "f_D": 0.02,
          "C_0": 1.2,
          "v_d": 0.4,
          "z1": 0.5,
          "z2": 0.15,
          "z3": 0.15,
          "z4": 0.1,
          "z5": 0.05,
          "z6": 0.05
        },
        "result": {
          "outputs": [
            {
              "label": "Outlet absolute pressure",
              "value": 4.883105031320047,
              "unit": "MPa(a)"
            },
            {
              "label": "Outlet equilibrium temperature",
              "value": 319.8957011848083,
              "unit": "K"
            },
            {
              "label": "Net heat into fluid",
              "value": -38.719378281684484,
              "unit": "kJ/kg"
            },
            {
              "label": "Maximum pressure refinement difference",
              "value": 0.0000010239110146414987,
              "unit": "MPa difference"
            },
            {
              "label": "Maximum temperature refinement difference",
              "value": 0.0007137352919244222,
              "unit": "K difference"
            },
            {
              "label": "Integrated energy residual",
              "value": 2.1100277081131935e-9,
              "unit": "J/kg"
            },
            {
              "label": "Integrated momentum residual",
              "value": 1.1350493878126144e-9,
              "unit": "Pa"
            }
          ],
          "columns": [
            "Distance (m)",
            "Pressure (MPa(a))",
            "Temperature (K)",
            "Momentum flux (Pa)",
            "Static enthalpy plus kinetic energy (J/kg)",
            "Holdup density (kg/m3)",
            "Friction gradient (Pa/m)",
            "Heat input gradient (J/(kg.m))",
            "Gas void fraction (-1 = unassigned single phase)",
            "Maximum phase speed (m/s)",
            "Static enthalpy (J/kg)"
          ],
          "rows": [
            [
              0,
              5,
              330,
              155.6066557216849,
              -128843.4329131358,
              232.33237093070775,
              6.977671392855122,
              -942.4777960769379,
              0.6060455886075257,
              1.9643523040868112,
              -128844.52668261106
            ],
            [
              2.5,
              4.994280298862125,
              329.40571007382965,
              154.43043320999257,
              -131200.80631750135,
              232.94014836631789,
              6.959465552189946,
              -923.8076274153461,
              0.6049286556903183,
              1.9587538932409636,
              -131201.88653458134
            ],
            [
              5,
              4.988545841927149,
              328.82161764725106,
              153.2902686283069,
              -133511.9047550853,
              233.53683715276304,
              6.94168405311138,
              -905.4578226517787,
              0.603835987698672,
              1.9533021054358137,
              -133512.9718720016
            ],
            [
              7.5,
              4.98279690095623,
              328.24759251859854,
              152.18497076523042,
              -135777.5240226254,
              234.1224563277877,
              6.924320561576961,
              -887.4242913802717,
              0.6027673140993048,
              1.947994429768368,
              -135778.57847532516
            ],
            [
              10,
              4.97703374626818,
              327.6834772596339,
              151.11347599059206,
              -137998.44862165945,
              234.6970955933307,
              6.907366851639351,
              -869.7020878468593,
              0.6017224682379917,
              1.942828579903936,
              -137999.49083139896
            ],
            [
              12.5,
              4.97125664642373,
              327.12913557343046,
              150.07471635538803,
              -140175.45151916466,
              235.26081057231724,
              6.890815917592359,
              -852.2869301573065,
              0.6007012324902908,
              1.9378022986124221,
              -140176.48189263605
            ],
            [
              15,
              4.965465869205104,
              326.5844407029924,
              149.0676148447618,
              -142309.2953520155,
              235.81361116287195,
              6.874662282143309,
              -835.1748361231447,
              0.5997032940127461,
              1.9329130028129184,
              -142310.3142812798
            ],
            [
              17.5,
              4.959661680986962,
              326.0492454182739,
              148.09122445959375,
              -144400.73199763958,
              236.35559304001268,
              6.8588981433706175,
              -818.3611803760695,
              0.5987284882435303,
              1.9281586321263708,
              -144401.7398618361
            ],
            [
              20,
              4.953844346368071,
              325.5234154010868,
              147.14458544208378,
              -146450.50227709208,
              236.88680788256573,
              6.843517175009035,
              -801.8417431857495,
              0.5977765652569752,
              1.9235368855578887,
              -146451.49944235067
            ],
            [
              22.5,
              4.948014128758479,
              325.0068200435003,
              146.22676262160346,
              -148459.3366078031,
              237.40730023020222,
              6.828513431160143,
              -785.6124213830249,
              0.5968472533110712,
              1.9190454285028518,
              -148460.32342762384
            ],
            [
              25,
              4.942171289770581,
              324.49931639961767,
              145.33691029659232,
              -150427.95466476935,
              237.91716623832895,
              6.813879653616333,
              -769.668724190108,
              0.5959403736765695,
              1.9146822667497387,
              -150428.9314812093
            ],
            [
              27.5,
              4.936316089341131,
              324.0007774304129,
              144.474154686958,
              -152357.06552070484,
              238.41645004664008,
              6.799610253236595,
              -754.0066605582882,
              0.5950556413602509,
              1.9104450974706229,
              -152358.0326640921
            ],
            [
              30,
              4.930448785903677,
              323.51106951483104,
              143.6376846547916,
              -154247.3680122257,
              238.90522624492883,
              6.7856989307357845,
              -738.6220326583212,
              0.5941928239029475,
              1.9063318256568087,
              -154248.32580200498
            ],
            [
              32.5,
              4.924569636067881,
              323.03006100480235,
              142.8267152420353,
              -156099.5505588537,
              239.38356815993563,
              6.772139586432674,
              -723.5107046441183,
              0.5933516808133983,
              1.9023403651892874,
              -156100.49930397156
            ],
            [
              35,
              4.91867889429895,
              322.55761426258886,
              142.04051724400614,
              -157914.2910052822,
              239.85157415507157,
              6.7589255729849285,
              -708.6683524986149,
              0.5925320179675518,
              1.8984688103651473,
              -157915.23100493435
            ],
            [
              37.5,
              4.912776813446172,
              322.0936121061253,
              141.27831621737818,
              -159692.2571894542,
              240.3092825471951,
              6.746052092095209,
              -694.0912948386577,
              0.5917335131351575,
              1.8947148916593148,
              -159693.18873258785
            ],
            [
              40,
              4.90686364434682,
              321.63791408435526,
              140.53945446015868,
              -161434.1068320829,
              240.7568108212321,
              6.733512263880004,
              -679.7751192641759,
              0.5909560012525734,
              1.891076858834622,
              -161435.03019888545
            ],
            [
              42.5,
              4.900939635897966,
              321.1904044073135,
              139.82321389275089,
              -163140.487591321,
              241.19420588038244,
              6.721301336241012,
              -665.7161881261289,
              0.5901991665034633,
              1.8875525340093624,
              -163141.40305253575
            ],
            [
              45,
              4.895005034850671,
              320.75094476434447,
              139.12898584978163,
              -164812.03714681295,
              241.6215881257918,
              6.709412643349631,
              -651.9101562671216,
              0.589462842766609,
              1.884140228089754,
              -164812.94496512672
            ],
            [
              47.5,
              4.8890600857251485,
              320.3194165526125,
              138.4561184694152,
              -166449.38308923354,
              242.03902385802292,
              6.697841168076864,
              -638.3532976691826,
              0.588746745923819,
              1.8808379245514386,
              -166450.28351879865
            ],
            [
              50,
              4.883105031320047,
              319.8957011848083,
              137.80398705465305,
              -168053.14369482239,
              242.4465860301222,
              6.686581835703761,
              -625.0418868021142,
              0.5880506002528841,
              1.8776436676646153,
              -168054.03698163817
            ]
          ],
          "chart": {
            "xLabel": "Distance along flow (m)",
            "yLabel": "Pressure (MPa(a))",
            "includeZero": false,
            "series": [
              {
                "name": "Pressure",
                "x": [
                  0,
                  2.5,
                  5,
                  7.5,
                  10,
                  12.5,
                  15,
                  17.5,
                  20,
                  22.5,
                  25,
                  27.5,
                  30,
                  32.5,
                  35,
                  37.5,
                  40,
                  42.5,
                  45,
                  47.5,
                  50
                ],
                "y": [
                  5,
                  4.994280298862125,
                  4.988545841927149,
                  4.98279690095623,
                  4.97703374626818,
                  4.97125664642373,
                  4.965465869205104,
                  4.959661680986962,
                  4.953844346368071,
                  4.948014128758479,
                  4.942171289770581,
                  4.936316089341131,
                  4.930448785903677,
                  4.924569636067881,
                  4.91867889429895,
                  4.912776813446172,
                  4.90686364434682,
                  4.900939635897966,
                  4.895005034850671,
                  4.8890600857251485,
                  4.883105031320047
                ]
              }
            ]
          },
          "warnings": [
            "C1-C6 PR, zero kij, instantaneous local phase equilibrium. Constant inside-area U, surroundings and prescribed Darcy factor; no automatic boiling/friction/formation-history closure. Slip option uses supplied constant C0 and drift speed only for vertical upward co-current flow; it is not a calibrated regime map. No transient slugging, capillarity or nonequilibrium mass transfer. Both pressure and total energy include changing phase velocities; friction is not added as an external heat source. A 10/20-step refinement and integrated balance audit are numerical checks, not field validation."
          ]
        }
      }
    ]
  }
}
