Beispiel #1
0
def active_cell_centers_async(self, porosity_model="MATRIX_MODEL"):
    """Get a cell centers for all active cells. Async, so returns an iterator

        Arguments:
            porosity_model(str): string enum. See available()

        Returns:
            An iterator to a chunk object containing an array of Vec3d values.
            Loop through the chunks and then the values within the chunk to get all values.
    """
    porosity_model_enum = Case_pb2.PorosityModelType.Value(porosity_model)
    request = Case_pb2.CellInfoRequest(case_request=self.__request(),
                                       porosity_model=porosity_model_enum)
    return self.__case_stub.GetCellCenterForActiveCells(request)
Beispiel #2
0
def cell_info_for_active_cells_async(self, porosity_model="MATRIX_MODEL"):
    """Get Stream of cell info objects for current case

    Arguments:
        porosity_model(str): String representing an enum.
            must be 'MATRIX_MODEL' or 'FRACTURE_MODEL'.

    Returns:
        Stream of **CellInfo** objects

    See cell_info_for_active_cells() for detalis on the **CellInfo** class.
    """
    porosity_model_enum = Case_pb2.PorosityModelType.Value(porosity_model)
    request = Case_pb2.CellInfoRequest(case_request=self.__request(),
                                       porosity_model=porosity_model_enum)
    return self.__case_stub.GetCellInfoForActiveCells(request)
Beispiel #3
0
def cell_count(self, porosity_model="MATRIX_MODEL"):
    """Get a cell count object containing number of active cells and
    total number of cells

    Arguments:
        porosity_model (str): String representing an enum.
            must be 'MATRIX_MODEL' or 'FRACTURE_MODEL'.
    Returns:
        Cell Count object with the following integer attributes:
            active_cell_count: number of active cells
            reservoir_cell_count: total number of reservoir cells
    """
    porosity_model_enum = Case_pb2.PorosityModelType.Value(porosity_model)
    request = Case_pb2.CellInfoRequest(case_request=self.__request(),
                                       porosity_model=porosity_model_enum)
    return self.__case_stub.GetCellCount(request)