Beispiel #1
0
 def exportWellPathCompletions(self, caseId, timeStep, wellPathNames, fileSplit,
                               compdatExport, includePerforations, includeFishbones,
                               excludeMainBoreForFishbones, combinationMode):
     if (isinstance(wellPathNames, str)):
         wellPathNames = [wellPathNames]
     return self.__execute(exportWellPathCompletions=Cmd.ExportWellPathCompRequest(caseId=caseId,
                                                                                 timeStep=timeStep,
                                                                                 wellPathNames=wellPathNames,
                                                                                 fileSplit=fileSplit,
                                                                                 compdatExport=compdatExport,
                                                                                 includePerforations=includePerforations,
                                                                                 includeFishbones=includeFishbones,
                                                                                 excludeMainBoreForFishbones=excludeMainBoreForFishbones,
                                                                                 combinationMode=combinationMode))
def export_well_path_completions(
    self,
    time_step,
    well_path_names,
    file_split,
    compdat_export="TRANSMISSIBILITIES",
    include_perforations=True,
    include_fishbones=True,
    fishbones_exclude_main_bore=True,
    combination_mode="INDIVIDUALLY",
    export_welspec=True,
    export_comments=True,
    custom_file_name="",
):
    """
    Export well path completions for the current case to file

    **Parameters**::

        Parameter                   | Description                                      | Type
        ----------------------------| ------------------------------------------------ | -----
        time_step                   | Time step to export for                          | Integer
        well_path_names             | List of well path names                          | List
        file_split                  | Controls how export data is split into files     | String enum
        compdat_export              | Compdat export type                              | String enum
        include_perforations        | Export perforations?                             | bool
        include_fishbones           | Export fishbones?                                | bool
        fishbones_exclude_main_bore | Exclude main bore when exporting fishbones?      | bool
        combination_mode            | Settings for multiple completions in same cell   | String Enum
        export_welspec              | Export WELSPEC keyword                           | bool
        export_comments             | Export completion data source as comment         | bool
        custom_file_name            | Custom filename when file_split is "UNIFIED_FILE"| String

    **Enum file_split**::

        Option                              | Description
        ----------------------------------- | ------------
        "UNIFIED_FILE"                      | A single file with all combined transmissibilities
        "SPLIT_ON_WELL"                     | One file for each well with combined transmissibilities
        "SPLIT_ON_WELL_AND_COMPLETION_TYPE" | One file for each completion type for each well

    **Enum compdat_export**::

        Option                                      | Description
        ------------------------------------------- | ------------
        "TRANSMISSIBILITIES"                        | Direct export of transmissibilities
        "WPIMULT_AND_DEFAULT_CONNECTION_FACTORS"    | Include WPIMULT in addition to transmissibilities

    **Enum combination_mode**::

        Option              | Description
        ------------------- | ------------
        "INDIVIDUALLY"      | Exports the different completion types into separate sections
        "COMBINED"          | Export one combined transmissibility for each cell

    """
    if isinstance(well_path_names, str):
        well_path_names = [well_path_names]
    return self._execute_command(
        exportWellPathCompletions=Cmd.ExportWellPathCompRequest(
            caseId=self.id,
            timeStep=time_step,
            wellPathNames=well_path_names,
            fileSplit=file_split,
            compdatExport=compdat_export,
            includePerforations=include_perforations,
            includeFishbones=include_fishbones,
            excludeMainBoreForFishbones=fishbones_exclude_main_bore,
            combinationMode=combination_mode,
            exportWelspec=export_welspec,
            exportComments=export_comments,
            customFileName=custom_file_name,
        ))