mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Summary Data : Update example
This commit is contained in:
parent
1849c9cc76
commit
8e8d1d7fe3
@ -1,18 +1,18 @@
|
|||||||
# Load ResInsight Processing Server Client Library
|
|
||||||
import rips
|
import rips
|
||||||
# Connect to ResInsight instance
|
|
||||||
resinsight = rips.Instance.find()
|
resinsight = rips.Instance.find()
|
||||||
# Example code
|
|
||||||
print("ResInsight version: " + resinsight.version_string())
|
|
||||||
|
|
||||||
project = resinsight.project
|
project = resinsight.project
|
||||||
|
|
||||||
summary_cases = project.descendants(rips.SummaryCase)
|
summary_cases = project.descendants(rips.SummaryCase)
|
||||||
|
|
||||||
|
# Assumes at least one summery case loaded
|
||||||
firstCase = summary_cases[0]
|
firstCase = summary_cases[0]
|
||||||
|
|
||||||
vector_name = "FOPT"
|
vector_name = "FOPT"
|
||||||
summary_data = firstCase.summary_vector_values(vector_name)
|
summary_data = firstCase.summary_vector_values(vector_name)
|
||||||
|
|
||||||
print("Data for summary vector " + vector_name)
|
print("Data for summary vector " + vector_name)
|
||||||
print(summary_data.double_values)
|
print(summary_data.values)
|
||||||
|
|
||||||
|
time_steps = firstCase.available_time_steps()
|
||||||
|
print(time_steps.values)
|
||||||
|
Loading…
Reference in New Issue
Block a user