5.1.2.2. gemini_model.fluid.pvt_sim

Tabulated PVT (PVTsim .tab) loader and interpolator.

Reads PVT tables exported from PVTsim (KEY format) and provides 2D interpolators over pressure and temperature for common properties.

Classes

PVT()

PVT table model with interpolation over P and T.

class gemini_model.fluid.pvt_sim.PVT[source]

Bases: object

PVT table model with interpolation over P and T.

Initialize PVT simulation model.

create_fit_fuction()[source]

Create 2D interpolants for each PVT property.

get_pvt(P, T)[source]

Interpolate PVT properties at pressure P (Pa) and temperature T (K).

Parameters:
  • P (float) – Pressure (Pa).

  • T (float) – Temperature (K).

Returns:

  • rho_g (float) – Gas density (kg/m3).

  • rho_l (float) – Liquid density (kg/m3).

  • gmf (float) – Gas mass fraction (-).

  • eta_g (float) – Viscosity gas (Pa.s).

  • eta_l (float) – Viscosity liquid (Pa.s).

  • cp_g (float) – Heat capacity gas (J/Kg/K).

  • cp_l (float) – Heat capacity liquid (J/Kg/K).

  • K_g (float) – Thermal conductivity gas (W/m/K).

  • K_l (float) – Thermal conductivity liquid (W/m/K).

  • sigma (float) – Surface tension (N/m).

load_pvt_tables(pvt_file)[source]

Load a PVTsim .tab file generated using the table format KEY.

update_parameters(parameters)[source]

Update model parameters.

Parameters:

parameters (dict) – Parameters dict as defined by the model.