mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
20 lines
578 B
Python
20 lines
578 B
Python
######################################################################################
|
|
# This example prints information about the grids of all cases in the current project
|
|
######################################################################################
|
|
|
|
import rips
|
|
|
|
resinsight = rips.Instance.find()
|
|
|
|
cases = resinsight.project.cases()
|
|
print("Number of cases found: ", len(cases))
|
|
for case in cases:
|
|
print(case.name)
|
|
grids = case.grids()
|
|
print("Number of grids: ", len(grids))
|
|
for grid in grids:
|
|
print("Grid dimensions: ", grid.dimensions())
|
|
|
|
|
|
|