diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 46354684..a5a0e6c7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,7 @@ CHANGELOG * We have decided internally to revert the versioning schema back to SemVer, starting at ``1.0.0``, in order to improve better backward and forward compatibility support for plugins. * Fix bug related to Probabilistic History Matching result reader. The shape of result was wrong. * Add the heat transfer mechanism for fluid materials composed by a parcel of radiation and convection. +* Add the PvtModelConstantPropertiesDescription: This model is used to define the PVT properties of the fluid as a table with constant values. * Changed the constructor of result metadata objects in ``alfasim_sdk.result_reader.aggregator`` from ``attr`` to ``dataclasses.dataclass`` to make then more easily integrated into the (de)serialization engine of popular packages such as ``pyserde`` and ``pydantic``. * 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. diff --git a/tests/alfacase/test_alfacase_to_case.py b/tests/alfacase/test_alfacase_to_case.py index 817794ed..326452e6 100644 --- a/tests/alfacase/test_alfacase_to_case.py +++ b/tests/alfacase/test_alfacase_to_case.py @@ -264,6 +264,11 @@ def ensure_description_has_all_properties( schema=schema.pvt_model_correlation_description_schema, is_dict=True, ), + "PvtModelConstantPropertiesDescription": AlfacaseTestConfig( + description_expected=filled_case_descriptions.PVT_MODEL_CONST_TABLE_DEFINITION, + schema=schema.pvt_model_constant_properties_description_schema, + is_dict=True, + ), "LinearIPRDescription": AlfacaseTestConfig( description_expected=filled_case_descriptions.LINEAR_IPR_DESCRIPTION, schema=schema.linear_ipr_description_schema, diff --git a/tests/alfacase/test_case_description.py b/tests/alfacase/test_case_description.py index ed764d20..43b4d1f2 100644 --- a/tests/alfacase/test_case_description.py +++ b/tests/alfacase/test_case_description.py @@ -315,6 +315,9 @@ def default_case(tmp_path) -> case_description.CaseDescription: ph_table_parameters={ "PVT5": case_description.PvtModelPhTableParametersDescription.create_empty() }, + constant_properties={ + "PVT6": case_description.PvtModelConstantPropertiesDescription() + }, ) ) @@ -1510,6 +1513,7 @@ def test_check_fluid_references(default_well: case_description.WallDescription) "pt_table_parameters", "ph_table_parameters", "tables", + "constant_properties", } case = case_description.CaseDescription(