Skip to content

Commit

Permalink
Add water specific enthalpy for constant PVT
Browse files Browse the repository at this point in the history
  • Loading branch information
BeneBr committed Feb 3, 2025
1 parent 4b8ea14 commit 8186410
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CHANGELOG
* Changed function ``read_global_sensitivity_coefficients`` and ``read_uncertainty_propagation_results`` to accept multiple keys so it can perform bulk reads without having to open the result file every time.
* Added ``GlobalSensitivityAnalysisResults``, ``HistoryMatchingDeterministicResults``, ``HistoryMatchingProbabilisticResults`` and ``UncertaintyPropagationResults``, which are objects to read and interact with the Uncertainty Quantification analyses results in a more user-friendly way.
* Plugins can now define tables that contain references to other objects.
* Add the ``water_specific_enthalpy`` property for ``PvtModelConstantPropertiesDescription``.

2024.2 (2024-09-10)
===================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
oil_water_surface_tension: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.07197, 'N/m', 'force per length')
gas_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(2260000.0, 'J/kg', 'specific energy')
oil_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(104860.0, 'J/kg', 'specific energy')
water_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(104860.0, 'J/kg', 'specific energy')
has_water: bool = False

.. tab:: Schema
Expand Down Expand Up @@ -79,4 +80,7 @@
oil_specific_enthalpy: # optional
value: number
unit: string
water_specific_enthalpy: # optional
value: number
unit: string
has_water: boolean # optional
1 change: 1 addition & 0 deletions src/alfasim_sdk/_internal/alfacase/case_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -2441,6 +2441,7 @@ class PvtModelConstantPropertiesDescription:
oil_water_surface_tension = attrib_scalar(default=Scalar(7.197e-2, "N/m"))
gas_specific_enthalpy = attrib_scalar(default=Scalar(2.260e6, "J/kg"))
oil_specific_enthalpy = attrib_scalar(default=Scalar(104.86e3, "J/kg"))
water_specific_enthalpy = attrib_scalar(default=Scalar(104.86e3, "J/kg"))

has_water: bool = attr.ib(default=False)

Expand Down
3 changes: 2 additions & 1 deletion src/alfasim_sdk/_internal/alfacase/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@
Optional("oil_water_surface_tension"): Map({"value": Float(), "unit": Str()}),
Optional("gas_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("oil_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("water_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("has_water"): Bool(),
}
)
Expand Down Expand Up @@ -1222,4 +1223,4 @@
Optional("walls"): Seq(wall_description_schema),
}
)
# [[[end]]] (checksum: 6e754d44887f59fc28d5c6908f85925c)
# [[[end]]] (checksum: 49050950df5c59efe7f6ce262b78efd1)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
oil_water_surface_tension: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(0.07197, 'N/m', 'force per length')
gas_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(2260000.0, 'J/kg', 'specific energy')
oil_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(104860.0, 'J/kg', 'specific energy')
water_specific_enthalpy: \ :class:`Scalar <barril.units.Scalar>`\ = Scalar(104860.0, 'J/kg', 'specific energy')
has_water: bool = False

.. tab:: Schema
Expand Down Expand Up @@ -79,4 +80,7 @@
oil_specific_enthalpy: # optional
value: number
unit: string
water_specific_enthalpy: # optional
value: number
unit: string
has_water: boolean # optional
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ pvt_model_constant_properties_description_schema = Map(
Optional("oil_water_surface_tension"): Map({"value": Float(), "unit": Str()}),
Optional("gas_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("oil_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("water_specific_enthalpy"): Map({"value": Float(), "unit": Str()}),
Optional("has_water"): Bool(),
}
)
Expand Down

0 comments on commit 8186410

Please sign in to comment.