Get rid of Python class_keyword attribute and fix parameter sending for WBS

This commit is contained in:
Gaute Lindkvist
2020-03-03 14:58:36 +01:00
parent 554f9a1758
commit 76019e7776
5 changed files with 50 additions and 34 deletions

View File

@@ -17,6 +17,11 @@ if len(well_paths) < 1:
print("No well paths in project")
exit(1)
# Create a set of WbsParameters
params = rips.WbsParameters()
params.user_poisson_ratio = 0.23456
params.user_ucs = 123
# Loop through all cases
for case in cases:
assert(isinstance(case, rips.GeoMechCase))
@@ -35,4 +40,4 @@ for case in cases:
for well_path in well_paths[0:4]: # Loop through the first five well paths
# Create plot with parameters
wbsplot = case.create_well_bore_stability_plot(well_path=well_path.name, time_step=0)
wbsplot = case.create_well_bore_stability_plot(well_path=well_path.name, time_step=0, parameters=params)