ResSimpy.Nexus.DataModels.Network.NexusWellConnections.NexusWellConnections

class ResSimpy.Nexus.DataModels.Network.NexusWellConnections.NexusWellConnections(parent_network: 'NexusNetwork')[source]

Bases: WellConnections

Public Data Attributes:

table_header

table_footer

Inherited from NetworkOperationsMixIn

table_header

table_footer

Methods:

__init__(parent_network)

get_all()

Returns a list of well connections loaded from the simulator.

get_by_name(name)

Returns a single well connection with the provided name loaded from the simulator.

get_df()

Creates a dataframe representing all processed well connections data in a surface file :returns: DataFrame -- of the properties of the well connections through time with each row representing a single well connection.

get_overview()

load(surface_file, start_date, default_units)

remove(obj_to_remove)

Remove a wellbore from the network based on the properties matching a dictionary or id.

add(obj_to_remove)

Adds a well connection to a network, taking a dictionary with properties for the new well connection.

modify(obj_to_modify, new_properties)

Modifies an existing well connection based on a matching dictionary of properties.

__repr__()

Return repr(self).

__eq__(other)

Return self==value.

Inherited from NetworkOperationsMixIn

__init__(parent_network)

get_all()

get_by_name(name)

get_df()

get_overview()

load(file, start_date, default_units)

remove(obj_to_remove)

add(obj_to_add)

modify(obj_to_modify, new_properties)


__init__(parent_network: NexusNetwork) None[source]
get_all() list[ResSimpy.Nexus.DataModels.Network.NexusWellConnection.NexusWellConnection][source]

Returns a list of well connections loaded from the simulator.

get_by_name(name: str) NexusWellConnection | None[source]

Returns a single well connection with the provided name loaded from the simulator.

Parameters:

name (str) – name of the requested well connection

Returns:

NexusWellConnection – which has the same name as requested

get_df() pandas.DataFrame[source]

Creates a dataframe representing all processed well connections data in a surface file :returns: DataFrame – of the properties of the well connections through time with each row representing a single well connection.

remove(obj_to_remove: dict[str, None | str | float | int] | UUID) None[source]

Remove a wellbore from the network based on the properties matching a dictionary or id.

Parameters:

obj_to_remove (UUID | dict[str, None | str | float | int]) – UUID of the wellbore to remove or a dictionary with sufficient matching parameters to uniquely identify a wellbore

add(obj_to_remove: dict[str, None | str | float | int]) None[source]

Adds a well connection to a network, taking a dictionary with properties for the new well connection.

Parameters:
  • obj_to_remove (dict[str, None | str | float | int]) – dictionary taking all the properties for the new

  • connection. (well) –

  • name. (Requires date and a) –

modify(obj_to_modify: dict[str, None | str | float | int], new_properties: dict[str, None | str | float | int]) None[source]

Modifies an existing well connection based on a matching dictionary of properties. (partial matches allowed if precisely 1 matching node is found). Updates the properties with properties in the new_properties dictionary.

Parameters:
  • obj_to_modify (dict[str, None | str | float | int]) – dictionary containing attributes to match in the

  • connections. (existing well) –

  • new_properties (dict[str, None | str | float | int]) – properties to switch to in the new well connection