ResSimpy.Nexus.DataModels.NexusPVTMethod.NexusPVTMethod
- class ResSimpy.Nexus.DataModels.NexusPVTMethod.NexusPVTMethod(file: NexusFile, input_number: int, pvt_type: str | None = None, eos_nhc: int | None = None, eos_temp: float | None = None, eos_components: list[str] | None = None, eos_options: dict[str, Union[str, int, float, pandas.DataFrame, list[str], dict[str, float], tuple[str, dict[str, float]], dict[str, pandas.DataFrame]]] | None = None, properties: dict[str, Union[str, int, float, enum.Enum, list[str], pandas.DataFrame, dict[str, Union[float, pandas.DataFrame]]]] | None = None)[source]
Bases:
DynamicPropertyClass to hold Nexus PVT properties.
- input_number
PVT method number in Nexus fcs file
- Type:
int
- pvt_type
Type of PVT method, e.g., BLACKOIL, GASWATER or EOS. Defaults to None
- Type:
Optional[str]
- eos_nhc
Number of hydrocarbon components. Defaults to None
- Type:
Optional[int]
- eos_temp
Default temperature for EOS method. Defaults to None
- Type:
Optional[float]
- eos_components
Specifies component names
- Type:
Optional[list[str]]
- eos_options (dict[str, Union[str, int, float, pd.DataFrame, list[str], dict[str, float],
tuple[str, dict[str, float]], dict[str, pd.DataFrame]]]): Dictionary containing various EOS options as specified in the PVT file. Defaults to empty dictionary.
- properties (dict[str, Union[str, int, float, Enum, list[str], pd.DataFrame,
dict[str, Union[float, pd.DataFrame]]]]):
Dictionary holding all properties for a specific PVT method. Defaults to empty dictionary.
Public Data Attributes:
eos_optionspropertiesInherited from
DynamicPropertyinput_numberfileMethods:
__init__(file, input_number[, pvt_type, ...])Create string with PVT data in Nexus file format.
Read Nexus PVT file contents and populate the NexusPVTMethod object.
__eq__(other)Return self==value.
Inherited from
DynamicProperty__init__(input_number, file)__repr__()Pretty printing dynamic property data.
to_string()Write dynamic property data to string.
write_to_file([overwrite_existing, ...])Write dynamic property data to file.
__eq__(other)Return self==value.
- __init__(file: NexusFile, input_number: int, pvt_type: str | None = None, eos_nhc: int | None = None, eos_temp: float | None = None, eos_components: list[str] | None = None, eos_options: dict[str, Union[str, int, float, pandas.DataFrame, list[str], dict[str, float], tuple[str, dict[str, float]], dict[str, pandas.DataFrame]]] | None = None, properties: dict[str, Union[str, int, float, enum.Enum, list[str], pandas.DataFrame, dict[str, Union[float, pandas.DataFrame]]]] | None = None) None[source]
- write_to_file(overwrite_existing: bool = False, new_file_location: str | None = None) None
Write dynamic property data to file.