#6833: Set eclipse case and time step in fracture model.

This commit is contained in:
Kristian Bendiksen
2020-10-23 15:29:02 +02:00
parent 5bc5f5ddb7
commit a9930e5fe0
13 changed files with 128 additions and 66 deletions

View File

@@ -56,10 +56,7 @@ well_path = project.well_path_by_name("B-2 H")
print("well path:", well_path)
fracture_model_collection = project.descendants(rips.FractureModelCollection)[0]
# Create fracture model at a give measured depth
measured_depth = 3200.0
fracture_model = fracture_model_collection.new_fracture_model(well_path=well_path, measured_depth=measured_depth, fracture_model_template=fracture_model_template)
# Find a case
cases = resinsight.project.cases()
case = cases[0]
@@ -67,9 +64,17 @@ case = cases[0]
time_steps = case.time_steps()
time_step = time_steps[len(time_steps) - 1]
# Create fracture model at a give measured depth
measured_depth = 3200.0
fracture_model = fracture_model_collection.new_fracture_model(eclipse_case=case,
time_step=time_step,
well_path=well_path,
measured_depth=measured_depth,
fracture_model_template=fracture_model_template)
# Create a fracture mode plot
fracture_model_plot_collection = project.descendants(rips.FractureModelPlotCollection)[0]
fracture_model_plot = fracture_model_plot_collection.new_fracture_model_plot(eclipse_case=case, fracture_model=fracture_model, time_step=time_step)
fracture_model_plot = fracture_model_plot_collection.new_fracture_model_plot(fracture_model=fracture_model)
export_folder = tempfile.gettempdir()