kappa_sdk.pvt.PVT#

class kappa_sdk.pvt.PVT(field_id, well_id, id, name, technical_object_id, labels, tech_objects_api, pvt_dto_converter)[source]#

Attributes

PVT.field_id

Gets the id of the field that contains this PVT.

PVT.fluid_type

PVT.id

Gets the unique id of this PVT.

PVT.labels

Gets the labels associated with this PVT.

PVT.name

Gets the name of this PVT.

PVT.properties

PVT.reference_pressure

PVT.reference_temperature

PVT.technical_object_id

Gets the technical object id associated with this PVT.

PVT.type

Gets the type of this PVT.

PVT.well_id

Gets the id of the well associated with this PVT.

Methods

PVT.compute_pseudo_pressures(temperature, ...)

PVT.convert_rates(field_pressures, ...)

PVT.flash_black_oil_process(temperature, ...)

Compute a flash on black oil PVT

PVT.flash_eos_process(temperature, pressure, ...)

Compute a flash on EoS PVT

Parameters:
  • field_id (str)

  • well_id (str | None)

  • id (str)

  • name (str)

  • technical_object_id (str)

  • labels (List[str] | None)

  • tech_objects_api (TechObjectsAPI)

  • pvt_dto_converter (PVTDtoConverter)

__init__(field_id, well_id, id, name, technical_object_id, labels, tech_objects_api, pvt_dto_converter)[source]#
Parameters:
  • field_id (str)

  • well_id (str | None)

  • id (str)

  • name (str)

  • technical_object_id (str)

  • labels (List[str] | None)

  • tech_objects_api (TechObjectsAPI)

  • pvt_dto_converter (PVTDtoConverter)

Return type:

None

property field_id: str#

Gets the id of the field that contains this PVT.

property well_id: str | None#

Gets the id of the well associated with this PVT.

property id: str#

Gets the unique id of this PVT.

property name: str#

Gets the name of this PVT.

property technical_object_id: str#

Gets the technical object id associated with this PVT.

property labels: List[str] | None#

Gets the labels associated with this PVT.

property type: PVTTypeEnum#

Gets the type of this PVT.

property properties: List[BlackOilPvtProperty]#
property fluid_type: PVTFluidTypeEnum#
property reference_pressure: float#
property reference_temperature: float#
flash_black_oil_process(temperature, pressure, pb_imposed, gor_or_pb=None)[source]#

Compute a flash on black oil PVT

Parameters:
  • temperature (float)

  • pressure (float)

  • pb_imposed (bool)

  • gor_or_pb (float | None)

Return type:

BlackOilFlashResults

flash_eos_process(temperature, pressure, extended, water_molar_fraction=None, salinity=None)[source]#

Compute a flash on EoS PVT

Parameters:
  • temperature (float)

  • pressure (float)

  • extended (bool)

  • water_molar_fraction (float | None)

  • salinity (float | None)

Return type:

EosFlashResults

compute_pseudo_pressures(temperature, rock_compressibility, pressure_range_min, pressure_range_max, pressure_range_steps, sw=None)[source]#
Parameters:
  • temperature (float)

  • rock_compressibility (float)

  • pressure_range_min (float)

  • pressure_range_max (float)

  • pressure_range_steps (int)

  • sw (float | None)

Return type:

PseudoPressuresResults

convert_rates(field_pressures, field_temperatures, surface_pressures, surface_temperatures, standard_oil_rates, standard_gas_rates)[source]#
Parameters:
  • field_pressures (List[List[float]])

  • field_temperatures (List[List[float]])

  • surface_pressures (List[List[float]])

  • surface_temperatures (List[List[float]])

  • standard_oil_rates (List[float])

  • standard_gas_rates (List[float])

Return type:

RateConversionResults