#6232 Add python api for creating fracture model plot.

This commit is contained in:
Kristian Bendiksen
2020-08-10 07:20:24 +02:00
parent ef36bbd04a
commit 8dfe9bd4b5
4 changed files with 151 additions and 0 deletions

View File

@@ -12,3 +12,23 @@ fracture_model_collection = project.descendants(rips.FractureModelCollection)[0]
measured_depth = 4100.0
fracture_model = fracture_model_collection.new_fracture_model(well_path=well_path, measured_depth=measured_depth)
elastic_properties = rips.ElasticProperties()
elastic_properties.file_path = "/home/resinsight/stimplan/complete_dataset_2020-06-22/Elastic_Template_CSV_file-with-biot.csv"
elastic_properties.update()
fracture_model.elastic_properties = elastic_properties
cases = resinsight.project.cases()
case = cases[0]
# Use the last time step
time_steps = case.time_steps()
time_step = time_steps[len(time_steps) - 1]
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)