2019-06-03 21:11:27 +02:00
|
|
|
import rips
|
2019-05-30 18:52:38 +02:00
|
|
|
|
2019-06-03 21:11:27 +02:00
|
|
|
resInsight = rips.Instance.find()
|
|
|
|
|
case = resInsight.project.case(id=0)
|
2019-05-30 18:52:38 +02:00
|
|
|
|
2019-08-07 23:33:08 +02:00
|
|
|
porvResults = case.properties.activeCellProperty('STATIC_NATIVE', 'PORV', 0)
|
2019-06-03 14:33:16 +02:00
|
|
|
timeStepInfo = case.timeSteps()
|
2019-05-30 18:52:38 +02:00
|
|
|
|
2019-06-06 09:13:23 +02:00
|
|
|
for i in range (0, len(timeStepInfo)):
|
2019-08-07 23:33:08 +02:00
|
|
|
soilResults = case.properties.activeCellProperty('DYNAMIC_NATIVE', 'SOIL', i)
|
2019-05-30 18:52:38 +02:00
|
|
|
results = []
|
|
|
|
|
for (soil, porv) in zip(soilResults, porvResults):
|
|
|
|
|
results.append(soil * porv)
|
|
|
|
|
|
2019-06-03 14:33:16 +02:00
|
|
|
case.properties.setActiveCellProperty(results, 'GENERATED', 'SOILPORVSync', i)
|
2019-05-30 18:52:38 +02:00
|
|
|
print("Transferred all results back")
|