ResSimpy.Nexus.DataModels.Network.NexusWellbores.NexusWellbores

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

Bases: Wellbores

Public Data Attributes:

table_header

table_footer

Inherited from NetworkOperationsMixIn

table_header

table_footer

Methods:

__init__(parent_network)

get_all()

Returns a list of wellbores loaded from the simulator.

get_by_name(name)

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

get_df()

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 wellbore to a network, taking a dictionary with properties for the new wellbore.

modify(obj_to_modify, new_properties)

Modifies an existing wellbore based on a matching dictionary of properties.

__repr__()

Return repr(self).

__eq__(other)

Return self==value.

Inherited from Wellbores

__init__(*[, _Wellbores__connections])

__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.NexusWellbore.NexusWellbore][source]

Returns a list of wellbores loaded from the simulator.

get_by_name(name: str) NexusWellbore | 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:

NexusWellbore – which has the same name as requested

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 wellbore to a network, taking a dictionary with properties for the new wellbore.

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

  • wellbore.

  • 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 wellbore 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

  • wellbores. (existing) –

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