You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a text file named export_completions.py with content displayed below. Adjust file paths and well names according to your model.
############################################################################
# This script will export completions for a well path for all cases in the project
#
############################################################################
import os
import rips
# Load instance
resinsight = rips.Instance.find()
cases = resinsight.project.cases()
for case in cases:
print("Case name: ", case.name)
print("Case id: ", case.id)
file_path = "f:/scratch/2023-11-02/" + case.name + ".txt"
case.export_well_path_completions(
time_step=0,
well_path_names=["Well-1"],
file_split="UNIFIED_FILE",
include_perforations=True,
custom_file_name=file_path,
)
Make the script available in the Scripts tab, and execute the script.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Task description
Import multiple grid models and export completion data from all cases based on a user defined well path using Python.
References to relevant documentation
https://api.resinsight.org/en/main/Installation.html#usage-from-within-resinsight
https://api.resinsight.org/en/main/PythonExamples.html#export-well-path-completions
https://resinsight.org/wells-and-completions/createnewwellpaths/
https://resinsight.org/wells-and-completions/completions/
https://resinsight.org/import/eclipsecases/
Suggested Workflow
Create a text file named
export_completions.py
with content displayed below. Adjust file paths and well names according to your model.Make the script available in the
Scripts
tab, and execute the script.Example output displayed in
Process Monitor
Example completions files created by the script
Example
COMPDAT
Beta Was this translation helpful? Give feedback.
All reactions