Thermal Fracture: add api for changing time step from python

This commit is contained in:
Kristian Bendiksen
2022-10-21 19:30:10 +02:00
parent fa83d17818
commit 737eb9693a
11 changed files with 95 additions and 33 deletions

View File

@@ -34,3 +34,11 @@ fracture = well_path.add_thermal_fracture(
fracture_template=fracture_template,
place_using_template_data=True,
)
time_steps = fracture_template.time_steps().values
for time_step_index, time_stamp in enumerate(time_steps):
print("Time step #{}: {}".format(time_step_index, time_stamp))
fracture_template.active_time_step_index = time_step_index
fracture_template.conductivity_result_name = "Conductivity"
fracture_template.update()