ResSimpy.Nexus.DataModels.Network.NexusNodeConnection.NexusNodeConnection
- class ResSimpy.Nexus.DataModels.Network.NexusNodeConnection.NexusNodeConnection(properties_dict: dict[str, None | int | str | float])[source]
Bases:
NodeConnectionAttributes hyd_method: hydraulic lift correlation method used (METHOD) pvt_method: pvt method number (IPVT) water_method: water method number (IWAT) bat_method: bat method number (IBAT) elevation_profile: elevation profile as a string (ELEVPR) measured_depth_in: measured depth of the input node (MDIN) measured_depth_out: measured depth of the output node (MDOUT) diameter: diameter of the connecting pipe (DIAMETER) inner_diameter: outer diameter of the pipe (INNERDIAM) roughness: roughness of the pipe (ROUGHNESS) heat_transfer_coeff: the heat transfer coefficient of the pipe (HTC) temperature_profile: temperature profile used for the connection. (TEMPPR) length: length of the connection (LENGTH) delta_depth: change in depth between node_in and node_out (DDEPTH) connection_number: used in place of name as a numbered connection (NUMBER) seawater_profile: seawater profile used. (SEAWPR) rate_mult: multiplier to the rate (RATEMULT) polymer: whether polymer is a stream here (POLYMER) dp_add: Additional delta pressure (DPADD).
Public Data Attributes:
hyd_methodpvt_methodbat_methodwater_methodelevation_profilemeasured_depth_inmeasured_depth_outdiameterinner_diameterroughnessheat_transfer_coefftemperature_profilelengthdelta_depthconnection_numberseawater_profilerate_multpolymerunit_systemdp_adddt_addInherited from
NodeConnectionnamedatenode_innode_outcon_typedepthInherited from
DataObjectMixinidUnique identifier for each object.
Methods:
__init__(properties_dict)Gets the mapping of nexus keywords to attribute definitions.
__repr__()Return repr(self).
__eq__(other)Return self==value.
Inherited from
NodeConnection__init__([_DataObjectMixin__id, name, date, ...])__repr__()Return repr(self).
__eq__(other)Return self==value.
Inherited from
DataObjectMixin__init__(properties_dict)to_dict([keys_in_keyword_style, add_date, ...])Returns a dictionary of the attributes of the object.
to_table_line(headers)Takes a generic Nexus object and returns the attribute values as a string in the order of headers provided.
get_keyword_mapping()Gets the mapping of keywords to attribute definitions.
__repr__()Return repr(self).
__eq__(other)Return self==value.
- static get_keyword_mapping() dict[str, tuple[str, type]][source]
Gets the mapping of nexus keywords to attribute definitions.
- property id: UUID
Unique identifier for each object.
- to_dict(keys_in_keyword_style: bool = False, add_date: bool = True, add_units: bool = True, include_nones: bool = True) dict[str, None | str | int | float]
Returns a dictionary of the attributes of the object.
- Parameters:
include_nones (bool) –
keys_in_keyword_style (bool) – if True returns the key values as simulator keywords, otherwise returns the attribute name as stored by ressimpy.
- Returns:
a dictionary keyed by attributes and values as the value of the attribute
- to_table_line(headers: list[str]) str
Takes a generic Nexus object and returns the attribute values as a string in the order of headers provided. Requires an implemented to_dict method and get_keyword_mapping() method.
- Parameters:
headers (list[str]) – list of header values in keyword format
- Returns:
string of the values in the order of the headers provided.